3 policy.sgml: version.ent
4 menu-policy.sgml: version.ent
5 mime-policy.sgml: version.ent
6 perl-policy.sgml: version.ent
9 $(EMACS) --batch -Q -l ./README-css.el -l org -l org-ascii --visit $^ \
10 --funcall org-export-as-ascii >/dev/null 2>&1
11 test "$@" != "README.txt" || \
12 perl -pli -e 's,./Process.org,Process.txt,g' $@
14 $(EMACS) --batch -Q -l ./README-css.el -l org --visit $^ \
15 --funcall org-export-as-html-batch >/dev/null 2>&1
20 %.html/index.html: %.sgml
21 LANG=C debiandoc2html $<
24 LANG=C debiandoc2html -1 -b $*-1d $< && \
25 mv $*-1d.html/index.html $*-1.html && \
28 %.html.tar.gz: %.html/index.html
29 tar -czf $(<:/index.html=.tar.gz) $(<:/index.html=)
32 LANG=C debiandoc2text $<
38 LANG=C debiandoc2latexps $<
44 LANG=C debiandoc2latexpdf $<
49 # convenience aliases :)
50 html: policy.html/index.html
55 policy: html txt ps pdf
57 leavealone := $(FHS_HTML) $(FHS_FILES) $(FHS_ARCHIVE) \
62 rm -rf $(filter-out $(leavealone),$(wildcard *.html))
63 rm -f $(filter-out $(leavealone),$(wildcard *.txt *.txt.gz *.html.tar.gz *.pdf *.ps))
64 rm -f *.lout* lout.li *.sasp* *.tex *.aux *.toc *.idx *.log *.out *.dvi *.tpt
65 rm -f `find . -name "*~" -o -name "*.bak" -o -name ".#*" -o -name core`
69 # if a rule bombs out, delete the target
71 # no default suffixes work here, don't waste time on them