aboutsummaryrefslogtreecommitdiff
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
commit5af06f62ea16df92f9968700fb755db5260feca9 (patch)
tree1d325351bd1bcec35fe11ee2bdbcadacc3bc17b1
parent07e89e43df34ea6c1bfff9e247040f07f59d0d6c (diff)
Modified directory building rules so that using the cd program/alias is
not necessary. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10199 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--Makefile.rules6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 5caea11356..a3b57e1110 100644
--- a/Makefile.rules
+++ b/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