mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 21:31:03 +00:00
All directory targets now install the Makefile only if it is missing.
Directory targets no longer check for existance of the directory in the object tree; if the Makefile doesn't exist, we will re-create the directory. This seems to be a pretty good assumption and saves us from checking directory existance each time. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10211 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ec4e8085e8
commit
b3866b69a5
@ -395,9 +395,9 @@ RObjectsG := $(addprefix $(BUILD_OBJ_DIR)/Debug/,$(RObjs))
|
|||||||
ifdef DIRS
|
ifdef DIRS
|
||||||
all install clean test bytecode ::
|
all install clean test bytecode ::
|
||||||
$(VERB) for dir in ${DIRS}; do \
|
$(VERB) for dir in ${DIRS}; do \
|
||||||
$(MKDIR) $$dir; \
|
|
||||||
if [ ! -f $$dir/Makefile ]; \
|
if [ ! -f $$dir/Makefile ]; \
|
||||||
then \
|
then \
|
||||||
|
$(MKDIR) $$dir; \
|
||||||
cp $(SourceDir)/$$dir/Makefile $$dir/Makefile; \
|
cp $(SourceDir)/$$dir/Makefile $$dir/Makefile; \
|
||||||
fi; \
|
fi; \
|
||||||
($(MAKE) -C $$dir $@) || exit 1; \
|
($(MAKE) -C $$dir $@) || exit 1; \
|
||||||
@ -413,7 +413,12 @@ test :: $(addsuffix /.maketest , $(PARALLEL_DIRS))
|
|||||||
bytecode :: $(addsuffix /.makebytecode, $(PARALLEL_DIRS))
|
bytecode :: $(addsuffix /.makebytecode, $(PARALLEL_DIRS))
|
||||||
|
|
||||||
%/.makeall %/.makeinstall %/.makeclean %/.maketest %/.makebytecode:
|
%/.makeall %/.makeinstall %/.makeclean %/.maketest %/.makebytecode:
|
||||||
$(VERB) $(MKDIR) $(@D); cp $(SourceDir)/$(@D)/Makefile $(@D); $(MAKE) -C $(@D) $(subst $(@D)/.make,,$@)
|
$(VERB) if [ ! -f $(@D)/Makefile ]; \
|
||||||
|
then \
|
||||||
|
$(MKDIR) $(@D); \
|
||||||
|
cp $(SourceDir)/$(@D)/Makefile $(@D)/Makefile; \
|
||||||
|
fi; \
|
||||||
|
$(MAKE) -C $(@D) $(subst $(@D)/.make,,$@)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Handle directories that may or may not exist
|
# Handle directories that may or may not exist
|
||||||
@ -422,9 +427,9 @@ all install clean test bytecode ::
|
|||||||
$(VERB) for dir in ${OPTIONAL_DIRS}; do \
|
$(VERB) for dir in ${OPTIONAL_DIRS}; do \
|
||||||
if [ -d $(SourceDir)/$$dir ]; \
|
if [ -d $(SourceDir)/$$dir ]; \
|
||||||
then\
|
then\
|
||||||
$(MKDIR) $$dir; \
|
|
||||||
if [ ! -f $$dir/Makefile ]; \
|
if [ ! -f $$dir/Makefile ]; \
|
||||||
then \
|
then \
|
||||||
|
$(MKDIR) $$dir; \
|
||||||
cp $(SourceDir)/$$dir/Makefile $$dir/Makefile; \
|
cp $(SourceDir)/$$dir/Makefile $$dir/Makefile; \
|
||||||
fi; \
|
fi; \
|
||||||
($(MAKE) -C$$dir $@) || exit 1; \
|
($(MAKE) -C$$dir $@) || exit 1; \
|
||||||
@ -830,6 +835,7 @@ $(LLVM_OBJ_ROOT)/config.status:: $(LLVM_SRC_ROOT)/configure
|
|||||||
# build tree.
|
# build tree.
|
||||||
Makefile :: $(BUILD_SRC_DIR)/Makefile
|
Makefile :: $(BUILD_SRC_DIR)/Makefile
|
||||||
@${ECHO} "===== Updating Makefile from source dir: `dirname $<` ====="
|
@${ECHO} "===== Updating Makefile from source dir: `dirname $<` ====="
|
||||||
|
$(MKDIR) $(@D)
|
||||||
cp -f $< $@
|
cp -f $< $@
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user