[SCM] audacity/master: Add a comment why the override is needed

sramacher at users.alioth.debian.org sramacher at users.alioth.debian.org
Sat Sep 14 13:45:55 UTC 2013


The following commit has been merged in the master branch:
commit d5ead27d9dc91b18b7743c02df8c43ea0b4aa18f
Author: Sebastian Ramacher <sramacher at debian.org>
Date:   Sat Sep 14 15:31:05 2013 +0200

    Add a comment why the override is needed

diff --git a/debian/rules b/debian/rules
index 4db4d87..19df1f8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -27,9 +27,10 @@ configure_flags := \
 	dh $@ --parallel --with autoreconf
 
 override_dh_auto_clean:
-	# We want to run both clean and distclean
-	$(MAKE) clean
-	$(MAKE) distclean
+	# dh_auto_clean doesn't detect the clean targets since some Makefiles in the
+	# subdirectories don't have them. Hence dh_auto_clean thinks they don't exist.
+	# We also want to make sure that both clean and distclean are run.
+	[ ! -f Makefile ] || $(MAKE) clean distclean
 
 override_dh_auto_configure:
 	dh_auto_configure -- $(configure_flags)

-- 
Audacity debian packaging



More information about the pkg-multimedia-commits mailing list