Fix a few lintian warnings.
[mirror/userdir-ldap-cgi.git] / debian / rules
index b49cd7b..f6b9222 100755 (executable)
@@ -6,15 +6,16 @@
 package:=userdir-ldap-cgi
 i:=./debian/$(package)
 
-build:
+build: build-indep
+
+build-indep:
        dh_testdir
        $(MAKE) -C html
-       touch build
 
 clean:
        dh_testdir
-       -rm -f build
-       -rm -rf debian/files* core debian/substvars debian/debhelper.log html/*.html
+       dh_clean
+       -rm -rf debian/files* core debian/substvars debian/debhelper.log html/*.html html/domains.tab
 
 instdirs = \
        var/www/userdir-ldap \
@@ -28,7 +29,7 @@ instdirs = \
 binary-indep: build
        dh_testdir
        dh_testroot
-       dh_clean -k
+       dh_prep
        dh_installdirs $(instdirs)
        dh_installdocs
 
@@ -64,7 +65,7 @@ binary-indep: build
 
        dh_installchangelogs
        dh_installcron
-       dh_fixperms --exclude=web-cookies
+       dh_fixperms --exclude=web-cookies --exclude=totp
        dh_compress
        dh_installdeb
        dh_gencontrol
@@ -77,4 +78,4 @@ binary-arch: build
 
 binary:        binary-indep binary-arch
 
-.PHONY: binary binary-arch binary-indep clean
+.PHONY: build build-indep binary binary-arch binary-indep clean