projects
/
debian
/
tar
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lintian cleanups
[debian/tar]
/
debian
/
rules
diff --git
a/debian/rules
b/debian/rules
index c738c9f03fdf4404afea10fbd92810d8fd7376dd..2dbe218722f84549e986bf226bc4d14aaf40bc07 100755
(executable)
--- a/
debian/rules
+++ b/
debian/rules
@@
-11,29
+11,41
@@
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
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
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
dh_testdir
-
RSH="/usr/bin/rsh" CFLAGS="-O2 -g -Wall -fno-gnu89-inline" $(MAKE)
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))
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
(cd tests ; $(MAKE) clean)
$(MAKE) check
+endif
endif
endif
+ perl debian/tarman > debian/tar.1
touch build-stamp
clean:
dh_testdir
dh_testroot
touch build-stamp
clean:
dh_testdir
dh_testroot
- rm -f build-stamp configure-stamp
-
+ rm -f build-stamp configure-stamp debian/tar.1
[ ! -f Makefile ] || $(MAKE) distclean
[ ! -f Makefile ] || $(MAKE) distclean
-
dh_clean
install: build
dh_clean
install: build