From 6fa3033971fdffc77fcdd6edd6e5c7e0378507ce Mon Sep 17 00:00:00 2001 From: Stefan Zager Date: Wed, 9 Feb 2011 07:35:56 +0000 Subject: [PATCH] Makefile tweaks git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12445 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Examples/python/performance/Makefile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Examples/python/performance/Makefile b/Examples/python/performance/Makefile index c1b4a69c6..0a2dabaa9 100644 --- a/Examples/python/performance/Makefile +++ b/Examples/python/performance/Makefile @@ -14,9 +14,7 @@ SUBDIRS := constructor func deep_hierarchy default : all -.PHONY : $(SUBDIRS) all clean - -all : $(SUBDIRS) +all : $(SUBDIRS:%=%-build) @for subdir in $(SUBDIRS); do \ echo Running $$subdir test... ; \ echo -------------------------------------------------------------------------------- ; \ @@ -31,10 +29,10 @@ $(SUBDIRS) : @echo -------------------------------------------------------------------------------- cd $@ && env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH PYTHONPATH=$(srcdir):$$PYTHONPATH $(PYTHON) $(PYSCRIPT) +%-build : + $(MAKE) -C $* + %-clean : $(MAKE) -s -C $* clean -$(SUBDIRS:%=%-check) : - $(MAKE) -C $* check - clean : $(SUBDIRS:%=%-clean)