changeset 26826:039574a7dc1e

Get rid of "define RECURSIVE_RULE" since a lot of make version have problems with it, especially with -j n.
author reimar
date Fri, 23 May 2008 14:52:12 +0000
parents 13ef1f050cfc
children 6dab33cd8b71
files Makefile
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Thu May 22 22:52:58 2008 +0000
+++ b/Makefile	Fri May 23 14:52:12 2008 +0000
@@ -719,12 +719,10 @@
 dep depend: $(DEPS)
 	for part in $(PARTS); do $(MAKE) -C $$part depend; done
 
-define RECURSIVE_RULE
-$(part)/$(part).a: recurse
-	$(MAKE) -C $(part)
-endef
+ALLPARTLIBS = $(foreach part, $(PARTS), $(part)/$(part).a)
 
-$(foreach part,$(PARTS),$(eval $(RECURSIVE_RULE)))
+$(ALLPARTLIBS): recurse
+	$(MAKE) -C $(@D)
 
 mplayer$(EXESUF): $(MPLAYER_DEPS)
 	$(CC) -o $@ $^ $(LDFLAGS_MPLAYER)