[linux-signed] 03/04: debian/rules: Make maintainerclean rule more thorough

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Mon May 9 17:27:22 UTC 2016


This is an automated email from the git hooks/post-receive script.

benh pushed a commit to branch master
in repository linux-signed.

commit c8e5b5d55f8db994ff8680dbf9b71a9e09888fc0
Author: Ben Hutchings <ben at decadent.org.uk>
Date:   Mon May 9 11:18:25 2016 +0100

    debian/rules: Make maintainerclean rule more thorough
    
    Delete all the template-generated files.
    
    Don't depend on 'clean' as that can result in generating the very files
    we're trying to delete.  Other kernel team packages don't do that either.
---
 debian/changelog | 1 +
 debian/rules     | 7 ++-----
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 599c6d4..b871f7d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ linux-signed (1~exp5) UNRELEASED; urgency=medium
 
   * debian/rules.defs: Change mirror to deb.debian.org
   * Update to linux version 4.5.3-2
+  * debian/rules: Make maintainerclean rule more thorough
 
  -- Ben Hutchings <ben at decadent.org.uk>  Sun, 08 May 2016 23:14:27 +0100
 
diff --git a/debian/rules b/debian/rules
index e73fc09..35882ee 100755
--- a/debian/rules
+++ b/debian/rules
@@ -60,11 +60,8 @@ binary-arch-all: debian/control $(BUILD_DIR)
 	dh_testdir
 	$(MAKE) -f debian/rules.gen binary-arch
 
-maintainerclean: clean
-	rm -rf debian/control debian/control.md5sum debian/rules.gen debian/*.bug-presubj debian/localpackages
-# dh_clean won't deal with binary packages that no longer exist after
-# removal of a flavour.
-	rm -rf $(filter-out %.config %.postinst %.templates %.NEWS, $(wildcard debian/linux-*))
+maintainerclean:
+	rm -rf debian/control debian/control.md5sum debian/linux-* debian/rules.gen debian/localpackages
 
 sign:
 	$(SIGN) /usr/src/linux-support-$(KERNEL_ABINAME) "$(KERNEL_IMAGE_VERSION)" "$(KERNEL_MODULES_PRIVKEY)" "$(KERNEL_MODULES_CERT)" "$(KERNEL_IMAGE_PRIVKEY)" "$(KERNEL_IMAGE_CERT)" "$(MIRROR_URL)" "$(SUITE)"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux-signed.git



More information about the Kernel-svn-changes mailing list