X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=debian%2Frules;h=98ee7e5b339bb92f0d7fc7736d2fc39902de1716;hb=5704aeb8a496b8562f4e9c37b064758913311a7e;hp=5ab1d39a84da58d0ab4e8e756b425635cfa0f41b;hpb=cda8f3799ea20b0d39223fbeb16e3b9a074a4ae6;p=debian%2Ftar diff --git a/debian/rules b/debian/rules index 5ab1d39a..98ee7e5b 100755 --- a/debian/rules +++ b/debian/rules @@ -11,16 +11,25 @@ CFLAGS += -Wall LDFLAGS += `dpkg-buildflags --get LDFLAGS` CPPFLAGS = `dpkg-buildflags --get CPPFLAGS` +export BUILD_DATE = $(shell dpkg-parsechangelog | sed -n -e 's/^Date: //p') + +ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + MAKEFLAGS += -j$(NUMJOBS) +endif + configure: configure-stamp configure-stamp: dh_testdir cp -f /usr/share/misc/config.sub build-aux/config.sub cp -f /usr/share/misc/config.guess build-aux/config.guess + autoreconf --force -v --install RSH="/usr/bin/rsh" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure \ --prefix=/usr \ --libexecdir=/usr/lib/tar \ --enable-backup-scripts \ --with-lzma=xz \ + --disable-silent-rules \ $(CONFARGS) touch configure-stamp @@ -29,7 +38,8 @@ build-arch: build-stamp build-indep: build-stamp build-stamp: configure-stamp dh_testdir - RSH="/usr/bin/rsh" CFLAGS="-O2 -g -Wall -fno-gnu89-inline" $(MAKE) + RSH="/usr/bin/rsh" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" \ + LDFLAGS="$(LDFLAGS)" $(MAKE) $(MAKEFLAGS) ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))