3 policy.sgml: version.ent
4 menu-policy.sgml: version.ent
5 mime-policy.sgml: version.ent
10 %.html/index.html: %.sgml
11 LANG=C debiandoc2html $<
13 %.html.tar.gz: %.html/index.html
14 tar -czf $(<:/index.html=.tar.gz) $(<:/index.html=)
17 LANG=C debiandoc2text $<
23 LANG=C debiandoc2latexps $<
29 LANG=C debiandoc2latexpdf $<
34 # convenience aliases :)
35 html: policy.html/index.html
39 policy: html txt ps pdf
41 leavealone := $(FHS_HTML) $(FHS_FILES) $(FHS_ARCHIVE) \
43 upgrading-checklist.html virtual-package-names-list.txt
47 rm -rf $(filter-out $(leavealone),$(wildcard *.html))
48 rm -f $(filter-out $(leavealone),$(wildcard *.txt *.txt.gz *.html.tar.gz *.pdf *.ps))
49 rm -f *.lout* lout.li *.sasp* *.tex *.aux *.toc *.idx *.log *.out *.dvi *.tpt
50 rm -f `find . -name "*~" -o -name "*.bak" -o -name ".#*" -o -name core`
54 # if a rule bombs out, delete the target
56 # no default suffixes work here, don't waste time on them