]> git.proxmox.com Git - pve-container.git/blobdiff - Makefile
buildsys: improve clean target
[pve-container.git] / Makefile
index 93fb1c6a2c6ac5ce8fe4432502c31c95968b320b..cc37dc7f849a1a1392050066ddf473da3a8a4178 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -38,9 +38,9 @@ sbuild: $(DSC)
 
 .PHONY: clean
 clean:
-       make -C src clean
-       rm -rf *.deb $(PACKAGE)*.tar.gz *.changes *.buildinfo $(DSC) $(PACKAGE)-*/
-       find . -name '*~' -exec rm {} ';'
+       $(MAKE) -C src clean
+       rm -rf $(BUILDDIR)
+       rm -f *.deb *.changes *.buildinfo *.dsc *.tar.?z
 
 .PHONY: distclean
 distclean: clean