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 $<
14 LANG=C debiandoc2html -1 -b $*-1d $< && \
15 mv $*-1d.html/index.html $*-1.html && \
18 %.html.tar.gz: %.html/index.html
19 tar -czf $(<:/index.html=.tar.gz) $(<:/index.html=)
22 LANG=C debiandoc2text $<
28 LANG=C debiandoc2latexps $<
34 LANG=C debiandoc2latexpdf $<
39 # convenience aliases :)
40 html: policy.html/index.html
45 policy: html txt ps pdf
47 leavealone := $(FHS_HTML) $(FHS_FILES) $(FHS_ARCHIVE) \
49 upgrading-checklist.html virtual-package-names-list.txt
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`
60 # if a rule bombs out, delete the target
62 # no default suffixes work here, don't waste time on them