]> git.donarmstrong.com Git - debian/debian-policy.git/blob - Makefile
* Also provide documents in single-file HTML format.
[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         LANG=C debiandoc2html $<
12
13 %-1.html: %.sgml
14         LANG=C debiandoc2html -1 -b $*-1d $< && \
15         mv $*-1d.html/index.html $*-1.html && \
16         rmdir $*-1d.html
17
18 %.html.tar.gz: %.html/index.html
19         tar -czf $(<:/index.html=.tar.gz) $(<:/index.html=)
20
21 %.txt: %.sgml
22         LANG=C debiandoc2text $<
23
24 %.txt.gz: %.txt
25         gzip -cf9 $< > $@
26
27 %.ps: %.sgml
28         LANG=C debiandoc2latexps $<
29
30 %.ps.gz: %.ps
31         gzip -cf9 $< > $@
32
33 %.pdf: %.sgml
34         LANG=C debiandoc2latexpdf $<
35
36 %.pdf.gz: %.pdf
37         gzip -cf9 $< > $@
38
39 # convenience aliases :)
40 html: policy.html/index.html
41 html-1: policy-1.html
42 txt text: policy.txt
43 ps: policy.ps
44 pdf: policy.pdf
45 policy: html txt ps pdf
46
47 leavealone :=   $(FHS_HTML) $(FHS_FILES) $(FHS_ARCHIVE) \
48                 libc6-migration.txt \
49                 upgrading-checklist.html virtual-package-names-list.txt
50               
51 .PHONY: distclean
52 distclean:
53         rm -rf $(filter-out $(leavealone),$(wildcard *.html))
54         rm -f $(filter-out $(leavealone),$(wildcard *.txt *.txt.gz *.html.tar.gz *.pdf *.ps))
55         rm -f *.lout* lout.li *.sasp* *.tex *.aux *.toc *.idx *.log *.out *.dvi *.tpt
56         rm -f `find . -name "*~" -o -name "*.bak" -o -name ".#*" -o -name core`
57         rm -f version.ent
58         rm -f *.rej *.orig
59
60 # if a rule bombs out, delete the target
61 .DELETE_ON_ERROR:
62 # no default suffixes work here, don't waste time on them
63 .SUFFIXES: