* Clean up debian/rules.
[debian/mailtextbody.git] / debian / rules
index 25de451a1b04118644b6d74986306729593b75a9..0b47532a872ec98d63d51946ba862723e2de720d 100755 (executable)
@@ -26,7 +26,6 @@ endif
 
 config.status: configure
        dh_testdir
-       # Add here commands to configure the package.
        CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
 
 
@@ -34,10 +33,7 @@ build: build-stamp
 
 build-stamp:  config.status
        dh_testdir
-
-       # Add here commands to compile the package.
        $(MAKE)
-
        touch build-stamp
 
 clean:
@@ -45,8 +41,7 @@ clean:
        dh_testroot
        rm -f build-stamp 
 
-       # Add here commands to clean up after the build process.
-       -$(MAKE) distclean
+       [ ! -f Makefile ] || $(MAKE) distclean
 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
        cp -f /usr/share/misc/config.sub config.sub
 endif
@@ -61,9 +56,6 @@ install: build
        dh_testdir
        dh_testroot
        dh_clean -k 
-       dh_installdirs
-
-       # Add here commands to install the package into debian/mailtextbody.
        $(MAKE) install DESTDIR=$(CURDIR)/debian/mailtextbody
 
 
@@ -77,25 +69,11 @@ binary-arch: build install
        dh_testroot
        dh_installchangelogs ChangeLog
        dh_installdocs
-#      dh_installexamples
-#      dh_install
-#      dh_installmenu
-#      dh_installdebconf       
-#      dh_installlogrotate
-#      dh_installemacsen
-#      dh_installpam
-#      dh_installmime
-#      dh_installinit
-#      dh_installcron
-#      dh_installinfo
        dh_installman
        dh_link
        dh_strip
        dh_compress
        dh_fixperms
-#      dh_perl
-#      dh_python
-#      dh_makeshlibs
        dh_installdeb
        dh_shlibdeps
        dh_gencontrol