forked from OSchip/llvm-project
Modified directory building rules so that using the cd program/alias is
not necessary. llvm-svn: 10199
This commit is contained in:
parent
31715d3a42
commit
b1367f4af7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue