DESTDIR=$(CURDIR)/debian/$(shell dh_listpackages|head -n 1)
+build-arch: build
+build-indep: build
+
build: build-stamp
build-stamp:
dh_testdir
install: build test
dh_testdir
dh_testroot
- dh_clean -k
+ dh_prep
dh_installdirs
$(MAKE) install PREFIX=$(DESTDIR)/usr
[ ! -d $(DESTDIR)/usr/lib/perl5 ] || \
- rmdir -p --ignore-fail-on-non-empty$(DESTDIR)/usr/lib/perl5
+ rmdir -p --ignore-fail-on-non-empty $(DESTDIR)/usr/lib/perl5
# Build architecture-independent files here.
-binary-indep: install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
-binary-arch: build install
+binary-indep: build install
dh_testdir
dh_testroot
dh_installchangelogs
dh_md5sums
dh_builddeb
+# Build architecture-dependent files here.
+binary-arch:
+
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install