-# FHS_ARCHIVE =$(shell ls -1 fhs*.tar.gz)
-# And with version 2.1, we have to build the text and dvi versions
-# ourselves :-(
-FHS_ARCHIVE =fhs-2.1-source.tar.gz
-FHS_FILES =fhs/fhs.dvi fhs/fhs.ps fhs/fhs.txt fhs/fhs.pdf
-FSSTND_FILES =FSSTND-FAQ fsstnd-1.2.dvi.gz fsstnd-1.2.ps.gz fsstnd-1.2.txt.gz
-POLICY_FILES =policy.text.gz policy.sgml virtual-package-names-list.text \
- upgrading-checklist.text libc6-migration.text \
- version.ent proposal.sgml proposal.text.gz \
- menu-policy.sgml menu-policy.text.gz \
- mime-policy.sgml mime-policy.text.gz \
- policy-process.text.gz policy-process.sgml
-BYHAND_FILES =policy.text.gz libc6-migration.text \
- virtual-package-names-list.text menu-policy.text.gz \
- mime-policy.text.gz
-
-
-install_file = /usr/bin/install -p -o root -g root -m 644
-install_program= /usr/bin/install -p -o root -g root -m 755
-make_directory = /usr/bin/install -p -d -o root -g root -m 755
-
-GROFF_VERSION := $(shell dpkg -s groff | sed -n -e 's/Version: //p')
-
-
-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)
- # Need to use a patched tmac.m macro file if we're using a pre-1.16
- # groff; version 1.16 is apparently fixed
- if dpkg --compare-versions $(GROFF_VERSION) lt 1.16; then \
- cp /usr/share/groff/tmac/tmac.m fhs && \
- cd fhs && patch -p1 < ../mm1.32-patch; \
- fi
- # The extra '.' in the tmac path doesn't matter if
- GROFF_TMAC_PATH=. cd fhs && $(MAKE) all
- lynx -dump fhs-changes-2.1.html > fhs/fhs-changes-2.1.text
- lynx -dump upgrading-checklist.html > upgrading-checklist.text
+# FHS_ARCHIVE := $(wildcard fhs*.tar.gz)
+FHS_ARCHIVE := fhs-2.3-source.tar.gz
+FHS_HTML := fhs-2.3.html
+FHS_FILES := fhs-2.3.ps.gz fhs-2.3.txt.gz fhs-2.3.pdf.gz
+FHS_NEW_ARCHIVE :=
+FHS_NEW_HTML :=
+FHS_NEW_FILES :=
+
+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