summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Criswell <criswell@uiuc.edu>2003-11-24 18:31:01 +0000
committerJohn Criswell <criswell@uiuc.edu>2003-11-24 18:31:01 +0000
commitb1367f4af7dfd42c217af3803dd2516df3c3d722 (patch)
tree1e5f3f9c03b94e62531293a5afce29e0fe327c21
parent31715d3a427b9dab1b97258338dda897142e826e (diff)
downloadbcm5719-llvm-b1367f4af7dfd42c217af3803dd2516df3c3d722.tar.gz
bcm5719-llvm-b1367f4af7dfd42c217af3803dd2516df3c3d722.zip
Modified directory building rules so that using the cd program/alias is
not necessary. llvm-svn: 10199
-rw-r--r--llvm/Makefile.rules6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/Makefile.rules b/llvm/Makefile.rules
index 5caea11356b..a3b57e1110a 100644
--- a/llvm/Makefile.rules
+++ b/llvm/Makefile.rules
@@ -395,7 +395,7 @@ RObjectsG := $(addprefix $(BUILD_OBJ_DIR)/Debug/,$(RObjs))
ifdef DIRS
all install clean test bytecode ::
$(VERB) for dir in ${DIRS}; do \
- (cd $$dir; $(MAKE) $@) || exit 1; \
+ ($(MAKE) -C $$dir $@) || exit 1; \
done
endif
@@ -408,7 +408,7 @@ test :: $(addsuffix /.maketest , $(PARALLEL_DIRS))
bytecode :: $(addsuffix /.makebytecode, $(PARALLEL_DIRS))
%/.makeall %/.makeinstall %/.makeclean %/.maketest %/.makebytecode:
- $(VERB) cd $(@D); $(MAKE) $(subst $(@D)/.make,,$@)
+ $(VERB) $(MAKE) -C $(@D) $(subst $(@D)/.make,,$@)
endif
# Handle directories that may or may not exist
@@ -417,7 +417,7 @@ all install clean test bytecode ::
$(VERB) for dir in ${OPTIONAL_DIRS}; do \
if [ -d $$dir ]; \
then\
- (cd $$dir; $(MAKE) $@) || exit 1; \
+ ($(MAKE) -C$$dir $@) || exit 1; \
fi \
done
endif
OpenPOWER on IntegriCloud