summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.common2
-rw-r--r--Makefile.rules2
2 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.common b/Makefile.common
index 5beeaa7ca7..a5ee9c80f1 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -182,10 +182,12 @@ ObjectsG = $(addprefix $(BUILD_ROOT)/Debug/,$(Objs))
# Handle the DIRS and PARALLEL_DIRS options
#---------------------------------------------------------
+ifdef DIRS
all install clean ::
$(VERB) for dir in ${DIRS}; do \
(cd $$dir; $(MAKE) $@) || exit 1; \
done
+endif
# Handle PARALLEL_DIRS
ifdef PARALLEL_DIRS
diff --git a/Makefile.rules b/Makefile.rules
index 5beeaa7ca7..a5ee9c80f1 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -182,10 +182,12 @@ ObjectsG = $(addprefix $(BUILD_ROOT)/Debug/,$(Objs))
# Handle the DIRS and PARALLEL_DIRS options
#---------------------------------------------------------
+ifdef DIRS
all install clean ::
$(VERB) for dir in ${DIRS}; do \
(cd $$dir; $(MAKE) $@) || exit 1; \
done
+endif
# Handle PARALLEL_DIRS
ifdef PARALLEL_DIRS