Skip to contentSkip to conversation

tools/python: Improve .gitgnore and clean Makefile rule

PATCH Superseded Andrew Cooper 1 participant 1 message Jul 7, 2014

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/python: Improve .gitgnore and clean Makefile rule

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

CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
---
 .gitignore            |    1 +
 tools/python/Makefile |    8 +++-----
 2 files changed, 4 insertions(+), 5 deletions(-)
.gitignore +1 -0
index 562c262..cf9264f 100644
@@ -16,6 +16,7 @@
 *.spit
 *.gcno
 *.gcda
+*.py[ocd]
 TAGS
 GTAGS
 GRTAGS
tools/python/Makefile +3 -5
index eee746d..c914332 100644
@@ -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)
Signature · 1 line
1.7.10.4