X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Makefile;h=10b0f5ad104db2e2f443df42bda9e1d84a830eb0;hb=8923e883eaadc169a6b12dd84c1d64927201f237;hp=20433d734b6ab97ea85148164dcd29c386dcb080;hpb=8b71985394e4525245fc308ab862d3c8cc902f39;p=debian%2Fdebian-policy.git diff --git a/Makefile b/Makefile index 20433d7..10b0f5a 100644 --- a/Makefile +++ b/Makefile @@ -2,21 +2,19 @@ include debian/rules policy.sgml: version.ent menu-policy.sgml: version.ent -mime-policy.sgml: version.ent +perl-policy.sgml: version.ent -ifneq (,$(strip $(HAVE_ORG_EMACS))) %.txt: %.org - $(EMACS) --batch -Q -l ./README-css.el -l org -l org-ascii --visit $^ \ - --funcall org-export-as-ascii >/dev/null 2>&1 + $(EMACS) --batch -Q -l ./README-css.el -l org --visit $^ \ + --funcall org-ascii-export-to-ascii test "$@" != "README.txt" || \ perl -pli -e 's,./Process.org,Process.txt,g' $@ %.html: %.org $(EMACS) --batch -Q -l ./README-css.el -l org --visit $^ \ - --funcall org-export-as-html-batch >/dev/null 2>&1 -endif + --funcall org-html-export-to-html %.validate: % - nsgmls -wall -gues $< + onsgmls -wall -gues $< %.html/index.html: %.sgml LANG=C debiandoc2html $< @@ -27,25 +25,35 @@ endif rmdir $*-1d.html %.html.tar.gz: %.html/index.html - tar -czf $(<:/index.html=.tar.gz) $(<:/index.html=) + GZIP=-n9 tar -czf $(<:/index.html=.tar.gz) $(<:/index.html=) %.txt: %.sgml LANG=C debiandoc2text $< %.txt.gz: %.txt - gzip -cf9 $< > $@ + gzip -ncf9 $< > $@ %.ps: %.sgml LANG=C debiandoc2latexps $< %.ps.gz: %.ps - gzip -cf9 $< > $@ + gzip -ncf9 $< > $@ %.pdf: %.sgml LANG=C debiandoc2latexpdf $< %.pdf.gz: %.pdf - gzip -cf9 $< > $@ + gzip -ncf9 $< > $@ + +# This is a temporary hack to fold the upgrading-checklist into the Policy +# HTML directory so that it can be deployed alongside Policy on +# www.debian.org in a way that lets the cross-document links work properly. +# The correct solution is to make upgrading-checklist an appendix of Policy, +# which will probably be done as part of a general conversion to DocBook. +policy.html.tar.gz:: policy.html/upgrading-checklist.html +policy.html/upgrading-checklist.html: upgrading-checklist-1.html \ + policy.html/index.html + cp -p $< $@ # convenience aliases :) html: policy.html/index.html