Skip to contentSkip to conversation

cr_tests: Prettify toplevel Makefile

PATCH New Matt Helsley 1 participant 1 message Jul 13, 2009 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cr_tests: Prettify toplevel Makefile

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.

---
 Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
Makefile +2 -2
index cf88ed1..5af82d6 100644
@@ -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
Signature · 1 line
1.5.6.3