1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
include debian/rules
policy.sgml: version.ent
menu-policy.sgml: version.ent
mime-policy.sgml: version.ent
%.validate: %
nsgmls -wall -gues $<
%.html/index.html: %.sgml
LANG=C debiandoc2html $<
%.html.tar.gz: %.html/index.html
tar -czf $(<:/index.html=.tar.gz) $(<:/index.html=)
%.txt: %.sgml
LANG=C debiandoc2text $<
%.txt.gz: %.txt
gzip -cf9 $< > $@
%.ps: %.sgml
LANG=C debiandoc2latexps $<
%.ps.gz: %.ps
gzip -cf9 $< > $@
%.pdf: %.sgml
LANG=C debiandoc2latexpdf $<
%.pdf.gz: %.pdf
gzip -cf9 $< > $@
# convenience aliases :)
html: policy.html/index.html
txt text: policy.txt
ps: policy.ps
pdf: policy.pdf
policy: html txt ps pdf
leavealone := $(FHS_HTML) $(FHS_FILES) $(FHS_ARCHIVE) \
libc6-migration.txt \
upgrading-checklist.html virtual-package-names-list.txt
.PHONY: distclean
distclean:
rm -rf $(filter-out $(leavealone),$(wildcard *.html))
rm -f $(filter-out $(leavealone),$(wildcard *.txt *.txt.gz *.html.tar.gz *.pdf *.ps))
rm -f *.lout* lout.li *.sasp* *.tex *.aux *.toc *.idx *.log *.out *.dvi *.tpt
rm -f `find . -name "*~" -o -name "*.bak" -o -name ".#*" -o -name core`
rm -f version.ent
rm -f *.rej *.orig
# if a rule bombs out, delete the target
.DELETE_ON_ERROR:
# no default suffixes work here, don't waste time on them
.SUFFIXES:
|