3 policy.sgml: version.ent
4 menu-policy.sgml: version.ent
5 mime-policy.sgml: version.ent
7 ifneq (,$(strip $(HAVE_ORG_EMACS)))
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
21 %.html/index.html: %.sgml
22 LANG=C debiandoc2html $<
25 LANG=C debiandoc2html -1 -b $*-1d $< && \
26 mv $*-1d.html/index.html $*-1.html && \
29 %.html.tar.gz: %.html/index.html
30 tar -czf $(<:/index.html=.tar.gz) $(<:/index.html=)
33 LANG=C debiandoc2text $<
39 LANG=C debiandoc2latexps $<
45 LANG=C debiandoc2latexpdf $<
50 # convenience aliases :)
51 html: policy.html/index.html
56 policy: html txt ps pdf
58 leavealone := $(FHS_HTML) $(FHS_FILES) $(FHS_ARCHIVE) \
63 rm -rf $(filter-out $(leavealone),$(wildcard *.html))
64 rm -f $(filter-out $(leavealone),$(wildcard *.txt *.txt.gz *.html.tar.gz *.pdf *.ps))
65 rm -f *.lout* lout.li *.sasp* *.tex *.aux *.toc *.idx *.log *.out *.dvi *.tpt
66 rm -f `find . -name "*~" -o -name "*.bak" -o -name ".#*" -o -name core`
70 # if a rule bombs out, delete the target
72 # no default suffixes work here, don't waste time on them