[SCM] bs1770gain/master: Only remove the Makefile in the clean target when it isn't the original Makefile.

pere at users.alioth.debian.org pere at users.alioth.debian.org
Tue Jun 2 20:44:20 UTC 2015


The following commit has been merged in the master branch:
commit 202b25224e768bf30ae8ae58fbcc0e5c056646c9
Author: Petter Reinholdtsen <pere at hungry.com>
Date:   Tue Jun 2 12:44:29 2015 +0000

    Only remove the Makefile in the clean target when it isn't the original Makefile.
    
    This make sure quilt can apply patch 10-remove-makefile.diff every time.

diff --git a/debian/rules b/debian/rules
index 4f3ca78..2a7e787 100755
--- a/debian/rules
+++ b/debian/rules
@@ -23,6 +23,7 @@ override_dh_auto_clean:
 	$(RM) aclocal.m4 ar-lib compile config.guess config.sub depcomp install-sh
 	$(RM) libtool ltmain.sh missing
 	$(RM) m4/libtool.m4 m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4 m4/lt~obsolete.m4
-	$(RM) Makefile */Makefile config.log config.status
+	if ! grep -q config.mak Makefile; then $(RM) Makefile; fi
+	$(RM) */Makefile config.log config.status
 	$(RM) */*.lo */*.o bs1770gain/bs1770gain
 	$(RM) -r */.libs

-- 
bs1770gain packaging



More information about the pkg-multimedia-commits mailing list