From 76fc98d534527fc55864a08439baca850d55ff29 Mon Sep 17 00:00:00 2001 From: Axel Beckert Date: Sun, 16 Sep 2012 17:28:01 +0200 Subject: [PATCH] Replace $(checkdir) with dh_testdir --- debian/rules | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/debian/rules b/debian/rules index f6a401a..daa79e6 100755 --- a/debian/rules +++ b/debian/rules @@ -35,13 +35,13 @@ dir = `pwd` build: # Builds the binary package. - $(checkdir) + dh_testdir $(MAKE) CC="$(CC)" LDFLAGS="$(LDFLAGS)" CFLAGS="$(CFLAGS)" touch build clean: # Undoes the effect of `make -f debian/rules build'. - $(checkdir) + dh_testdir [ ! -f Makefile ] || $(MAKE) clean -rm -f debian/files* debian/substvars* debian/*~ core */core *~ rm -rf debian/tmp @@ -50,10 +50,10 @@ clean: binary: binary-arch binary-indep binary-indep: - $(checkdir) + dh_testdir binary-arch: build - $(checkdir) + dh_testdir test -f build || $(MAKE) -f debian/rules build # Makes a binary package. /bin/rm -rf debian/tmp @@ -95,7 +95,3 @@ binary-arch: build cd debian/tmp && find * -type f ! -regex '^DEBIAN/.*' -print0 | \ xargs -r0 md5sum > DEBIAN/md5sums dpkg --build debian/tmp && dpkg-name -o -s .. debian/tmp.deb - -define checkdir - test -f mmv.1 -endef -- 2.39.2