move gbp.conf to debian/
[debian/dump] / debian / rules
index 7dc2b976c540cd85a9f266e9820b671cab6852e4..20d7a0af0ac3b863cf005962f4c3b332036cf438 100755 (executable)
@@ -1,14 +1,22 @@
 #!/usr/bin/make -f
 
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+configure: configure-stamp
+configure-stamp:
+       dh_testdir
+       cp -f /usr/share/misc/config.sub config.sub
+       cp -f /usr/share/misc/config.guess config.guess
+       ./configure \
+               --prefix=/usr \
+               --with-ccopts="-O2 -g -Wall" \
+               --with-dumpdatespath=/var/lib/dumpdates \
+               --enable-largefile \
+               --enable-qfa \
+               --enable-staticz
+       touch configure-stamp
 
-build: build-stamp
+build: configure-stamp build-stamp
 build-stamp:
        dh_testdir
-       ./configure --prefix=/usr --with-ccopts="-O2 -g -Wall" \
-               --with-dumpdatespath=/var/lib/dumpdates \
-               --enable-largefile --enable-qfa --enable-staticz
        make
        touch build-stamp
 
@@ -17,10 +25,6 @@ clean:
        dh_testroot
        rm -f build-stamp
        [ ! -f Makefile ] || make distclean
-       -test -r /usr/share/misc/config.sub && \
-               cp -f /usr/share/misc/config.sub config.sub
-       -test -r /usr/share/misc/config.guess && \
-               cp -f /usr/share/misc/config.guess config.guess
        dh_clean
 
 binary-indep: build
@@ -45,6 +49,7 @@ binary-arch: build
        dh_installdocs KNOWNBUGS MAINTAINERS README THANKS TODO
        dh_installexamples examples/*
        dh_installchangelogs CHANGES
+       dh_lintian
        dh_strip
        dh_compress
        dh_fixperms