- echo "debian-policy:Version=$(version)" > debian/substvars
- $(install_file) $(POLICY_FILES) $(DOCDIR)/
- $(install_file) $(FSSTND_FILES) $(DOCDIR)/fsstnd/
- $(install_file) debian/changelog $(DOCDIR)/
- gzip -fq9 $(DOCDIR)
- $(install_file) debian-policy.desc $(LIBDIR)/
- $(install_file) debian/copyright $(DOCDIR)/
- (tar cf - policy.html) | (cd $(DOCDIR); tar xf -)
- $(install_program) debian/{postinst,prerm} debian/tmp/DEBIAN/
- dpkg-gencontrol -isp
- chown -R root.root debian/tmp
- chmod -R go=rX debian/tmp
- dpkg --build debian/tmp ..
- debiandoc2ps -pa4 -1 -O policy.sgml | gzip -9v > ../policy.ps.gz
- GZIP=-9v tar zcf ../policy.html.tar.gz policy.html
- dpkg-distaddfile -fdebian/files policy.ps.gz byhand -
- dpkg-distaddfile -fdebian/files policy.html.tar.gz byhand -
- for i in $(BYHAND_FILES); do \
- $(install_file) $$i .. ; \
- dpkg-distaddfile -fdebian/files $$i byhand - ; \
- done
- touch stamp-binary
-
-define checkdir
- test -f debian/rules -a -f
-endef
-
-source diff:
- @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
-
-.PHONY: binary binary-arch binary-indep clean checkroot
+ echo "debian-policy:Version=$(version)" > debian/substvars
+ $(install_file) $(POLICY_FILES) $(DOCDIR)/
+ $(install_file) debian/changelog $(DOCDIR)/
+ # Be more specific with file compression
+ gzip -f9 $(DOCDIR)/*.txt $(DOCDIR)/*.sgml \
+ $(DOCDIR)/changelog
+# These are allready compressed
+ #$(install_file) $(FHS_NEW_FILES) $(DOCDIR)/fhs/
+ $(install_file) $(FHS_FILES) $(DOCDIR)/fhs/
+ $(install_file) debian/copyright $(DOCDIR)/
+ GZIP=-9 cd copyright-format && \
+ tar -zcf ../copyright-format.xml.tar.gz *
+ $(install_file) copyright-format.xml.tar.gz $(DOCDIR)/
+ @set -ex; \
+ GZIP=-9 cd debconf_spec && \
+ tar -zcf ../debconf_specification.xml.tar.gz *
+ $(install_file) debconf_specification.xml.tar.gz $(DOCDIR)/
+ @set -ex; \
+ for file in $(DESC_FILES); do \
+ $(install_file) $$file.desc $(LIBDIR)/$$file; \
+ done
+ @set -ex; \
+ for file in $(SGML_FILES); do \
+ tar -C $(DOCDIR) -zxf $$file.html.tar.gz; \
+ done
+ for file in $(SGML_FILES); do \
+ $(install_file) $${file}-1.html $(DOCDIR); \
+ done
+ $(install_file) $(FHS_HTML) $(DOCDIR)/fhs
+ @set -ex; \
+ cd debian/tmp; \
+ find . -path "./DEBIAN" -prune -o -type f -printf '%P\0' \
+ | xargs -r0 md5sum > DEBIAN/md5sums
+ dpkg-gencontrol -p$(package) -Pdebian/tmp -isp
+ chown -R root:root debian/tmp
+ chmod -R go=rX debian/tmp
+ dpkg --build debian/tmp ..
+ touch stamp-policy
+
+
+.PHONY: configure build binary binary-arch binary-indep clean checkroot