dh_testdir
cp -f /usr/share/misc/config.sub build-aux/config.sub
cp -f /usr/share/misc/config.guess build-aux/config.guess
- RSH="/usr/bin/rsh" CFLAGS="-O2 -g -Wall" \
- ./configure --prefix=/usr --libexecdir=/usr/sbin $(CONFARGS)
+ RSH="/usr/bin/rsh" CFLAGS="-O2 -g -Wall" ./configure \
+ --prefix=/usr \
+ --libexecdir=/usr/sbin \
+ --with-lzma=xz \
+ $(CONFARGS)
touch configure-stamp
-build: configure-stamp build-stamp
-build-stamp:
+build: build-arch build-indep
+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)
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
+ @runas=`whoami` ; \
+ if test $$runas = "root" ; \
+ then \
+ echo "Sorry, but the test suite is not designed to be run as root."; \
+ exit 1 ;\
+ fi
(cd tests ; $(MAKE) clean)
$(MAKE) check
+endif
endif
perl debian/tarman > debian/tar.1