]> git.proxmox.com Git - zfsonlinux.git/commitdiff
buildsys: improve clean target
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 10 Oct 2023 13:44:45 +0000 (15:44 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 10 Oct 2023 13:44:59 +0000 (15:44 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index 181407b068354880d00fac43d2446548f76e7ae2..82630dac6c089ee63797ad9c04ec82906f477fb6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -81,7 +81,8 @@ $(BUILDDIR): $(SRCDIR)/README.md $(SRCDIR) debian
 
 .PHONY: clean
 clean:         
-       rm -rf *~ *.deb *.changes *.buildinfo *.build *.dsc *.orig.tar.* *.debian.tar.* $(ZFSDIR)
+       rm -rf $(PACKAGE)-[0-9]*/
+       rm -f *~ *.deb *.changes *.buildinfo *.build *.dsc *.orig.tar.* *.debian.tar.*
 
 .PHONY: distclean
 distclean: clean