From: Anand Shukla Date: Wed, 18 Sep 2002 04:29:30 +0000 (+0000) Subject: corrected small bug, to handle when DIRS is not defined. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7c7a07e501d4e83df4ac8d0d8129c149afe4085a;p=oota-llvm.git corrected small bug, to handle when DIRS is not defined. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3810 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Makefile.common b/Makefile.common index 5beeaa7ca73..a5ee9c80f1c 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 5beeaa7ca73..a5ee9c80f1c 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