Add .gitignore for all generated files
[lartc.git] / Makefile
blobd4d0f9fd85f16b4395bb208177273a3a143fdd83
1 # $Id$
3 HOWTODOCS := howto/ html.tar.gz lartc.txt lartc.dvi lartc.pdf lartc.pdf.gz lartc.ps lartc.ps.gz lartc.html
5 all: $(HOWTODOCS) contriblist
7 contriblist: lartc.txt
8 ./makecontriblist > contriblist
10 clean:
11 rm -rf $(HOWTODOCS) contriblist lartc.aux lartc.log lartc.out
13 %.pdf.gz: %.pdf
14 gzip < $< > $@
16 %.ps.gz: %.ps
17 gzip < $< > $@
20 howto/: lartc.db
21 docbook2html -V "%use-id-as-filename%" -o howto/ lartc.db
23 html.tar.gz: howto/
24 tar czf html.tar.gz howto/
26 %.txt: %.db
27 docbook2txt $<
29 %.pdf: %.db
30 docbook2pdf -p /usr/bin/openjade $<
32 %.ps: %.db
33 docbook2ps $<
35 %.dvi: %.db
36 docbook2dvi $<
38 lartc.html: lartc.db
39 docbook2html --nochunks lartc.db
41 publish:
42 # Print a list of files which should be synced.
43 # Note that autoloadbalance.php3, index.php3 and manpages/index.php3
44 # are not in this list because they are not rebuilt by this Makefile.
45 echo $(HOWTODOCS) contriblist LARTC-zh_CN.GB2312.pdf wondershaper/ autoloadbalance.php3 index.php3 manpages/