From: Andrew Cooper Subject: [PATCH] tools/python: Improve .gitgnore and clean Makefile rule Date: Mon, 7 Jul 2014 11:25:10 +0100 Message-ID: <1404728710-14559-1-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xen-devel Cc: Andrew Cooper , Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org 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. Signed-off-by: Andrew Cooper CC: Ian Campbell CC: Ian Jackson --- .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