From: Matt Helsley Subject: [PATCH] cr_tests: Prettify toplevel Makefile Date: Sun, 12 Jul 2009 20:19:25 -0700 Message-ID: <20090713031925.GC5213@count0.beaverton.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Serge Hallyn Cc: Containers List-Id: containers.vger.kernel.org Simplify the toplevel Makefile to avoid the need for a subshell by using make -C foo instead of ( cd foo ; make ). Also use the MAKE variable instead of "make" to re-invoke. Signed-off-by: Matt Helsley --- Makefile | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cf88ed1..5af82d6 100644 --- a/Makefile +++ b/Makefile @@ -5,11 +5,11 @@ targets = ns_exec all: $(targets) for s in $(SUBDIRS) ; do \ - ( cd $$s ; make ) ; \ + $(MAKE) -C $$s ; \ done clean: rm -f $(targets) for s in $(SUBDIRS) ; do \ - ( cd $$s ; make clean ) ; \ + $(MAKE) -C $$s $@ ; \ done -- 1.5.6.3