]> git.donarmstrong.com Git - debian/debian-policy.git/blob - Makefile
gzipped ps and pdf (hm, there should probably be a way to make the .gz rules more...
[debian/debian-policy.git] / Makefile
1 include debian/rules
2
3 policy.sgml: version.ent
4 menu-policy.sgml: version.ent
5 mime-policy.sgml: version.ent
6
7 %.validate: %
8         nsgmls -wall -gues $<
9
10 %.html/index.html: %.sgml
11         debiandoc2html $<
12
13 %.html.tar.gz: %.html/index.html
14         tar -czf $(<:/index.html=.tar.gz) $(<:/index.html=)
15
16 %.txt: %.sgml
17         debiandoc2text $<
18
19 %.txt.gz: %.txt
20         gzip -cf9 $< > $@
21
22 %.ps: %.sgml
23         debiandoc2latexps $<
24
25 %.ps.gz: %.ps
26         gzip -cf9 $< > $@
27
28 %.pdf: %.sgml
29         debiandoc2latexpdf $<
30
31 %.pdf.gz: %.pdf
32         gzip -cf9 $< > $@
33
34 # convenience aliases :)
35 html: policy.html/index.html
36 txt text: policy.txt
37 ps: policy.ps
38 pdf: policy.pdf
39 policy: html txt ps pdf
40
41 leavealone :=   $(FHS_HTML) $(FHS_FILES) $(FHS_ARCHIVE) \
42                 fhs-2.0.tar.gz fhs-changes-2.1.html \
43                 fsstnd-1.2.txt.gz libc6-migration.txt \
44                 upgrading-checklist.html virtual-package-names-list.txt
45               
46 .PHONY: distclean
47 distclean:
48         rm -rf $(filter-out $(leavealone),$(wildcard *.html))
49         rm -f $(filter-out $(leavealone),$(wildcard *.txt *.txt.gz *.html.tar.gz *.pdf *.ps))
50         rm -f *.lout* lout.li *.sasp* *.tex *.aux *.toc *.idx *.log *.out *.dvi
51         rm -f `find . -name "*~" -o -name "*.bak" -o -name ".#*" -o -name core`
52         rm -f version.ent
53         rm -f *.rej *.orig
54
55 # if a rule bombs out, delete the target
56 .DELETE_ON_ERROR:
57 # no default suffixes work here, don't waste time on them
58 .SUFFIXES: