corrected small bug, to handle when DIRS is not defined.
authorAnand Shukla <ashukla@cs.uiuc.edu>
Wed, 18 Sep 2002 04:29:30 +0000 (04:29 +0000)
committerAnand Shukla <ashukla@cs.uiuc.edu>
Wed, 18 Sep 2002 04:29:30 +0000 (04:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3810 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.common
Makefile.rules

index 5beeaa7ca737bc015b2e60ee96dae8945432ff39..a5ee9c80f1cad278be91973a3f050823646092e4 100644 (file)
@@ -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
index 5beeaa7ca737bc015b2e60ee96dae8945432ff39..a5ee9c80f1cad278be91973a3f050823646092e4 100644 (file)
@@ -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