fix up control and rules file issues identified by lintian
[debian/cpmtools] / debian / rules
index b7517291ee56c2d96ee1f0da4784c38114289a67..110b7e3e15be869abc34c9a047fea9ff71a55e3a 100755 (executable)
@@ -3,14 +3,11 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-# This is the debhelper compatability version to use.
-export DH_COMPAT=3
-
 configure: configure-stamp
 configure-stamp:
        dh_testdir
        ./configure --prefix=/usr --mandir=\$${prefix}/share/man \
-               --datadir=/etc/cpmtools
+               --datarootdir=/etc/cpmtools
        touch configure-stamp
 
 build: build-stamp
@@ -24,12 +21,12 @@ clean:
        dh_testdir
        dh_testroot
        rm -f build-stamp configure-stamp
-       -$(MAKE) distclean
+       [ ! -f Makefile ] || $(MAKE) distclean
 
        -test -r /usr/share/misc/config.sub && \
-               cp -f /usr/share/misc/config.sub config/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/config.guess
+               cp -f /usr/share/misc/config.guess config.guess
 
        dh_clean