improve Makefile clean target
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 14 Mar 2014 13:22:30 +0000 (14:22 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 14 Mar 2014 13:22:30 +0000 (14:22 +0100)
Makefile
src/Makefile

index 79fe413..1c30cf6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -37,7 +37,8 @@ deb ${DEB}:
 
 .PHONY: clean
 clean:         
-       rm -rf *~ */*~ *.deb *.changes build ${PACKAGE}-*.tar.gz
+       make -C src clean
+       rm -rf *~ debian/*~ example/*~ *.deb *.changes build ${PACKAGE}-*.tar.gz
 
 .PHONY: distclean
 distclean: clean
index 16806ee..f1c868b 100644 (file)
@@ -32,7 +32,7 @@ install: pvefw pvefw-logger
 
 .PHONY: clean
 clean:         
-       rm -rf *~
+       rm -rf *~ pvefw-logger
 
 .PHONY: distclean
 distclean: clean