-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
-BYHAND_FILES =policy.text.gz libc6-migration.text\
- virtual-package-names-list.text
+
+SGML_FILES = policy menu-policy mime-policy policy-process perl-policy
+DESC_FILES = debian-policy debian-menu-policy debian-perl-policy \
+ debian-mime-policy debian-policy-process debconf-spec
+
+# While we have two versions of the FHS installed in the source package,
+# we need to modify this to handle it. This is the easiest way to do it.
+# 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_HTML =fhs-2.1.html.tar.gz
+FHS_FILES =fhs/fhs.ps fhs/fhs.txt fhs/fhs.pdf
+FHS_BYHAND =fhs-2.1.html.tar.gz fhs/fhs.txt
+# FSSTND_FILES =FSSTND-FAQ fsstnd-1.2.dvi.gz fsstnd-1.2.ps.gz fsstnd-1.2.txt.gz
+POLICY_FILES = $(SGML_FILES:=.sgml) $(SGML_FILES:=.txt.gz) \
+ virtual-package-names-list.txt \
+ upgrading-checklist.txt libc6-migration.txt version.ent \
+ debconf_spec/debconf_specification.html \
+ debconf_spec/debconf_specification.txt.gz
+BYHAND_FILES = $(SGML_FILES:=.txt.gz) $(SGML_FILES:=.html.tar.gz) \
+ debconf_spec/debconf_specification.txt.gz \
+ debconf_spec/debconf_specification.html \
+ libc6-migration.txt virtual-package-names-list.txt \
+ policy.ps.gz policy.pdf.gz \
+ $(FHS_BYHAND)
+
+FILES_TO_CLEAN = debian/files debian/buildinfo debian/substvars \
+ debian/postinst debian/prerm \
+ version.ent upgrading-checklist.txt \
+ $(SGML_FILES:=.txt.gz) $(SGML_FILES:=.html.tar.gz) \
+ policy.pdf.gz policy.ps.gz \
+ debconf_specification.xml.tar.gz
+
+STAMPS_TO_CLEAN = stamp-policy stamp-build stamp-configure
+DIRS_TO_CLEAN = debian/tmp fhs $(SGML_FILES:=.html)
+