]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
UBUNTU: [Debian] Remove generated intermediate files on clean
authorTim Gardner <tim.gardner@canonical.com>
Tue, 22 Mar 2016 13:04:20 +0000 (07:04 -0600)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 6 Apr 2016 09:28:23 +0000 (10:28 +0100)
BugLink: http://bugs.launchpad.net/bugs/1560445
Remove these files on clean so they do not get included in the
source package.

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
debian/rules

index 923e1527ace719891a981edd49ed16a6effc09e6..69c6ceadf1194563d7a6e647e6ad68eaca466bdb 100755 (executable)
@@ -120,9 +120,12 @@ clean: debian/control
        # If we have a reconstruct script use it.
        [ -f $(DEBIAN)/reconstruct ] && bash $(DEBIAN)/reconstruct
 
+       # Remove generated intermediate files
+       rm -f $(DROOT)/control.stub $(DEBIAN)/control.stub \
+               $(DEBIAN)/d-i/kernel-versions
+
 distclean: clean
-       rm -rf $(DROOT)/control $(DROOT)/control.stub $(DEBIAN)/control.stub \
-               $(DEBIAN)/d-i/kernel-versions debian/changelog \
+       rm -rf $(DROOT)/control debian/changelog \
                debian/control debian/control.stub debian/copyright
 
 # Builds the image, arch headers and debug packages