tools/python: Improve .gitignore 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@citrix.com>
CC: Ian Campbell <Ian.Campbell@citrix.com>
CC: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
Andrew Cooper authored and Ian Campbell committed 2014-07-10 11:30:32 +01:00
1 parent f224b60791
commit 86229197cf
2 files changed
+4 -5

No files matched your search

+1
View File
@@ -16,6 +16,7 @@
*.spit
*.gcno
*.gcda
*.py[ocd]
TAGS
GTAGS
GRTAGS
+3 -5
View File
@@ -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)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.