From: Axel Beckert Date: Sun, 16 Sep 2012 15:28:01 +0000 (+0200) Subject: Replace $(checkdir) with dh_testdir X-Git-Tag: debian/1.01b-16~33 X-Git-Url: https://git.deb.at/w?p=pkg%2Fmmv.git;a=commitdiff_plain;h=76fc98d534527fc55864a08439baca850d55ff29 Replace $(checkdir) with dh_testdir --- 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