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
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
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