lintian cleanups
[debian/tar] / debian / rules
index 3d6913c625fa3bedbbf5594d54d497de1341374a..2dbe218722f84549e986bf226bc4d14aaf40bc07 100755 (executable)
@@ -18,13 +18,21 @@ configure-stamp:
                $(CONFARGS) 
        touch configure-stamp
 
-build: 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