Remove editor backup files in "clean"
[jigdo.git] / doc / Makefile.in
1 # Project: Jigdo (Jigsaw download)
2 #  __   _
3 #  |_) /|  Copyright (C) 2001-2003  |  richard@
4 #  | \/¯|  Richard Atterer          |  atterer.org
5 #  ¯ '` ¯
6 srcdir =        @srcdir@
7 VPATH =         @srcdir@
8
9 AWK =           @AWK@
10 DOCBOOK2MAN =   docbook2man
11 DOCBOOK2HTML =  docbook2html
12 #______________________________
13
14 .SUFFIXES:
15 .SUFFIXES: .1 .sgml .html
16
17 .sgml.1:
18                 mkdir -p tmp && cp "$<" tmp \
19                     && cd tmp && $(DOCBOOK2MAN) "`echo $< | sed 's%.*/%%'`"
20                 sed -e 's/   */ /g' <"`ls tmp/*.1`" >"$@"
21                 rm -rf tmp
22 #               sed -e 's%\\%\\\\%g;' <"$<" | tr -s '[:space:]' ' ' \
23 #                   | $(DOCBOOKTOMAN) - >"$@"
24 .sgml.html:
25                 rm -f "$@"
26                 $(DOCBOOK2HTML) "$<" --nochunks
27                 mv "$@" "$@~"
28                 $(AWK) -f "$(srcdir)/../scripts/html-beautify.awk" \
29                     "$@~" >"$@"
30 #______________________________________________________________________
31
32 .PHONY:         all clean distclean mostlyclean maintainer-clean \
33                 dep depend doc check
34 all:            jigdo-file.1 jigdo-file.html jigdo-lite.1 jigdo-lite.html \
35                 jigdo-mirror.1 jigdo-mirror.html jigdo.1 jigdo.html \
36                 debian-jigdo-mini-howto.html
37 doc mostlyclean dep depend check: ;
38
39 clean:          Makefile
40                 rm -rf tmp *~
41 distclean:      Makefile
42                 rm -rf tmp
43                 rm -f *~ \#*\# *.bak
44                 rm -f Makefile
45 maintainer-clean: Makefile distclean
46                 rm -f *.html *.1
47
48 Makefile:       Makefile.in
49                 cd .. && sh config.status # update Makefile from Makefile.in