* Set Standards-Version to 3.7.3 (no changes required).
[debian/mailtextbody.git] / debian / rules
index 0b47532a872ec98d63d51946ba862723e2de720d..31bdb5040a926932cf0d07cdda64b37b27417eb6 100755 (executable)
@@ -30,16 +30,14 @@ config.status: configure
 
 
 build: build-stamp
-
 build-stamp:  config.status
        dh_testdir
        $(MAKE)
-       touch build-stamp
+       touch $@
 
 clean:
        dh_testdir
        dh_testroot
-       rm -f build-stamp 
 
        [ ! -f Makefile ] || $(MAKE) distclean
 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
@@ -49,15 +47,15 @@ ifneq "$(wildcard /usr/share/misc/config.guess)" ""
        cp -f /usr/share/misc/config.guess config.guess
 endif
 
+       dh_clean build-stamp install-stamp
 
-       dh_clean 
-
-install: build
+install: install-stamp
+install-stamp: build-stamp
        dh_testdir
        dh_testroot
        dh_clean -k 
        $(MAKE) install DESTDIR=$(CURDIR)/debian/mailtextbody
-
+       touch $@
 
 # Build architecture-independent files here.
 binary-indep: build install
@@ -70,7 +68,6 @@ binary-arch: build install
        dh_installchangelogs ChangeLog
        dh_installdocs
        dh_installman
-       dh_link
        dh_strip
        dh_compress
        dh_fixperms