[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH v2] tools/python: Improve .gitgnore and clean Makefile rule



Ignore all intermediate python files, and use find in the clean rule as there
are no Makefiles in subdirectories to participate in a recursive clean.

Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CC: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
CC: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>

--
v2: Actually send the latest version of the patch
---
 .gitignore            |    1 +
 tools/python/Makefile |    8 +++-----
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/.gitignore b/.gitignore
index 562c262..cf9264f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,6 +16,7 @@
 *.spit
 *.gcno
 *.gcda
+*.py[ocd]
 TAGS
 GTAGS
 GRTAGS
diff --git a/tools/python/Makefile b/tools/python/Makefile
index eee746d..c914332 100644
--- a/tools/python/Makefile
+++ b/tools/python/Makefile
@@ -29,10 +29,8 @@ test:
 
 .PHONY: clean
 clean:
-       rm -f $(XENPATH)
-       rm -rf build/ *.pyc *.pyo *.o *.a *~ xen/util/auxbin.pyc
-       rm -f xen/lowlevel/xl/_pyxl_types.h
-       rm -f xen/lowlevel/xl/_pyxl_types.c
-       rm -f $(DEPS)
+       find . \( -name "*.py[ocd]" -o -name "*~" -o -name "_*.[hc]" \) -delete
+       rm -rf build/
+       rm -f $(XENPATH) $(DEPS)
 
 -include $(DEPS)
-- 
1.7.10.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.