-all build: stamp-build
-stamp-build:
- $(checkdir)
- -test -f stamp-configure || $(MAKE) -f debian/rules configure
- for file in $(SGML_FILES); do \
- nsgmls -gues $$file.sgml; \
- debiandoc2html $$file.sgml; \
- debiandoc2text $$file.sgml; \
- if [ -f $$file.txt ]; then mv $$file.txt $$file.text; fi; \
- gzip -9f $$file.text; \
- done
- tar zfx $(FHS_ARCHIVE)
- lynx -dump upgrading-checklist.html > upgrading-checklist.text
+POLICY_FILES = $(SGML_FILES:=.sgml) $(SGML_FILES:=.txt.gz) \
+ virtual-package-names-list.txt \
+ libc6-migration.txt version.ent \
+ copyright-format/copyright-format-1.0.html \
+ copyright-format/copyright-format-1.0.txt.gz \
+ debconf_spec/debconf_specification.html \
+ debconf_spec/debconf_specification.txt.gz \
+ policy.ps.gz policy.pdf.gz README.txt README.html \
+ Process.txt Process.html
+
+FILES_FROM_ORG := Process.html Process.txt README.txt README.html
+
+# policy.{pdf,ps,tpt,txt} are generated files
+FILES_TO_CLEAN = copyright-format-1.0.xml.tar.gz \
+ debian/files debian/buildinfo debian/substvars \
+ debian/postinst debian/prerm \
+ version.ent \
+ $(SGML_FILES:=.txt.gz) $(SGML_FILES:=.html.tar.gz) \
+ $(SGML_FILES:=-1.html) \
+ policy.pdf.gz policy.ps.gz \
+ debconf_specification.xml.tar.gz \
+ policy.pdf policy.ps policy.txt policy. \
+ body.tmp head.tmp policy.tpt \
+ $(FILES_FROM_ORG)
+
+STAMPS_TO_CLEAN := stamp-policy stamp-build
+DIRS_TO_CLEAN := debian/tmp fhs $(SGML_FILES:=.html)
+
+
+install_file := install -p -o root -g root -m 644
+install_program := install -p -o root -g root -m 755
+make_directory := install -p -d -o root -g root -m 755
+
+
+all build build-indep: stamp-build
+build-arch:
+stamp-build: version.ent $(sanitycheck)
+ $(MAKE) $(SGML_FILES:=.sgml.validate) \
+ $(SGML_FILES:=.html.tar.gz) \
+ $(SGML_FILES:=-1.html) \
+ $(SGML_FILES:=.txt.gz) \
+ policy.ps.gz policy.pdf.gz
+ $(MAKE) $(FILES_FROM_ORG)
+ $(MAKE) -C copyright-format all
+ $(MAKE) -C debconf_spec all