+Sun May 19 04:41:07 CDT 2002 Adam Heath <doogie@debian.org>
+
+ * debian/rules: All the hard-coded calls to scripts/dpkg-gencontrol.pl
+ are now down thru a variable, GENCONTROL.
+
Sun May 19 04:26:58 CDT 2002 Adam Heath <doogie@debian.org>
* debian/rules: Remove all calls to $(shell pwd), and use $(CURDIR).
DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE 2> /dev/null || true)
arch := $(shell dpkg-architecture -qDEB_HOST_ARCH)
+GENCONTROL := perl -I $(CURDIR)/scripts scripts/dpkg-gencontrol.pl -isp
+
ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
config_arg := --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
else
`test -z "$(static)" && echo $(TMP_DPKG)/usr/bin/dpkg $(TMP_DPKG)/usr/bin/md5sum $(TMP_DPKG)/usr/bin/dpkg-deb`
binary-dpkg binary-dpkg-static: %: %-most
- perl -I $(CURDIR)/scripts scripts/dpkg-gencontrol.pl -isp \
- -Tdebian/dpkg$(static).substvars -pdpkg$(static) -P$(TMP_DPKG)
+ $(GENCONTROL) -Tdebian/dpkg$(static).substvars -pdpkg$(static) -P$(TMP_DPKG)
dpkg --build $(TMP_DPKG) ..
binary-dpkg-dev: stamp-binary
install -p -m 755 -o root -g root debian/dpkg-dev.prerm $(TMP_DPKG_DEV)/DEBIAN/prerm
install -p -m 755 -o root -g root debian/dpkg-dev.postinst $(TMP_DPKG_DEV)/DEBIAN/postinst
- perl -I $(CURDIR)/scripts scripts/dpkg-gencontrol.pl -isp \
- -Tdebian/dpkg-dev.substvars -pdpkg-dev -P$(TMP_DPKG_DEV)
+ $(GENCONTROL) -Tdebian/dpkg-dev.substvars -pdpkg-dev -P$(TMP_DPKG_DEV)
dpkg --build $(TMP_DPKG_DEV) ..
binary-dselect: stamp-binary
dpkg-shlibdeps -Tdebian/dselect.substvars \
$(TMP_DSELECT)/usr/bin/dselect
- perl -I $(CURDIR)/scripts scripts/dpkg-gencontrol.pl -isp \
- -Tdebian/dselect.substvars -pdselect -P$(TMP_DSELECT)
+ $(GENCONTROL) -Tdebian/dselect.substvars -pdselect -P$(TMP_DSELECT)
dpkg --build $(TMP_DSELECT) ..
binary-dpkg-doc: stamp-binary
install -p -m 755 -o root -g root debian/dpkg-doc.prerm $(TMP_DPKG_DOC)/DEBIAN/prerm
install -p -m 755 -o root -g root debian/dpkg-doc.postinst $(TMP_DPKG_DOC)/DEBIAN/postinst
- perl -I $(CURDIR)/scripts scripts/dpkg-gencontrol.pl -isp \
- -Tdebian/dpkg-doc.substvars -pdpkg-doc -P$(TMP_DPKG_DOC)
+ $(GENCONTROL) -Tdebian/dpkg-doc.substvars -pdpkg-doc -P$(TMP_DPKG_DOC)
dpkg --build $(TMP_DPKG_DOC) ..
binary-arch-static: binary-dpkg-static