[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] tools/python: Improve .gitignore and clean Makefile rule
commit 86229197cfefac9934854510fd2b85602e8037b3 Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> AuthorDate: Mon Jul 7 11:26:48 2014 +0100 Commit: Ian Campbell <ian.campbell@xxxxxxxxxx> CommitDate: Thu Jul 10 11:30:32 2014 +0100 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@xxxxxxxxxx> CC: Ian Campbell <Ian.Campbell@xxxxxxxxxx> CC: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- .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) -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |