summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.common10
-rw-r--r--Makefile.rules10
2 files changed, 8 insertions, 12 deletions
diff --git a/Makefile.common b/Makefile.common
index cd21b40f42..da515716b0 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -179,12 +179,10 @@ ObjectsG = $(addprefix $(BUILD_ROOT)/Debug/,$(Objs))
ifdef DIRS # Only do this if we're using DIRS!
-all :: $(addsuffix /.makeall , $(DIRS))
-install :: $(addsuffix /.makeinstall, $(DIRS))
-clean :: $(addsuffix /.makeclean , $(DIRS))
-
-%/.makeall %/.makeclean %/.makeinstall:
- $(VERB) cd $(@D); $(MAKE) $(subst $(@D)/.make,,$@)
+all install clean::
+ @for dir in ${DIRS}; do \
+ (cd $$dir; $(MAKE) $@) || exit 1; \
+ done
endif
#---------------------------------------------------------
diff --git a/Makefile.rules b/Makefile.rules
index cd21b40f42..da515716b0 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -179,12 +179,10 @@ ObjectsG = $(addprefix $(BUILD_ROOT)/Debug/,$(Objs))
ifdef DIRS # Only do this if we're using DIRS!
-all :: $(addsuffix /.makeall , $(DIRS))
-install :: $(addsuffix /.makeinstall, $(DIRS))
-clean :: $(addsuffix /.makeclean , $(DIRS))
-
-%/.makeall %/.makeclean %/.makeinstall:
- $(VERB) cd $(@D); $(MAKE) $(subst $(@D)/.make,,$@)
+all install clean::
+ @for dir in ${DIRS}; do \
+ (cd $$dir; $(MAKE) $@) || exit 1; \
+ done
endif
#---------------------------------------------------------