mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +00:00
Add phony target "bytecode" to ensure that it works in recursive makes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7147 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
1 parent
b5c520bfb6
commit
6edfe27195
2 files changed
+14
-6
No files matched your search
+7
-3
@@ -149,6 +149,9 @@ install ::
|
||||
# Default rule for test. It ensures everything has a test rule
|
||||
test::
|
||||
|
||||
# Default rule for building only bytecode.
|
||||
bytecode::
|
||||
|
||||
# Print out the directories used for building
|
||||
prdirs::
|
||||
echo "Home Offset : " $(HOME_OBJ_ROOT);
|
||||
@@ -400,7 +403,7 @@ ObjectsG := $(addprefix $(BUILD_OBJ_DIR)/Debug/,$(Objs))
|
||||
#---------------------------------------------------------
|
||||
|
||||
ifdef DIRS
|
||||
all install clean test ::
|
||||
all install clean test bytecode ::
|
||||
$(VERB) for dir in ${DIRS}; do \
|
||||
(cd $$dir; $(MAKE) $@) || exit 1; \
|
||||
done
|
||||
@@ -412,14 +415,15 @@ all :: $(addsuffix /.makeall , $(PARALLEL_DIRS))
|
||||
install :: $(addsuffix /.makeinstall , $(PARALLEL_DIRS))
|
||||
clean :: $(addsuffix /.makeclean , $(PARALLEL_DIRS))
|
||||
test :: $(addsuffix /.maketest , $(PARALLEL_DIRS))
|
||||
bytecode :: $(addsuffix /.makebytecode, $(PARALLEL_DIRS))
|
||||
|
||||
%/.makeall %/.makeinstall %/.makeclean %/.maketest:
|
||||
%/.makeall %/.makeinstall %/.makeclean %/.maketest %/.makebytecode:
|
||||
$(VERB) cd $(@D); $(MAKE) $(subst $(@D)/.make,,$@)
|
||||
endif
|
||||
|
||||
# Handle directories that may or may not exist
|
||||
ifdef OPTIONAL_DIRS
|
||||
all install clean test ::
|
||||
all install clean test bytecode ::
|
||||
$(VERB) for dir in ${OPTIONAL_DIRS}; do \
|
||||
if [ -d $$dir ]; \
|
||||
then\
|
||||
|
||||
+7
-3
@@ -149,6 +149,9 @@ install ::
|
||||
# Default rule for test. It ensures everything has a test rule
|
||||
test::
|
||||
|
||||
# Default rule for building only bytecode.
|
||||
bytecode::
|
||||
|
||||
# Print out the directories used for building
|
||||
prdirs::
|
||||
echo "Home Offset : " $(HOME_OBJ_ROOT);
|
||||
@@ -400,7 +403,7 @@ ObjectsG := $(addprefix $(BUILD_OBJ_DIR)/Debug/,$(Objs))
|
||||
#---------------------------------------------------------
|
||||
|
||||
ifdef DIRS
|
||||
all install clean test ::
|
||||
all install clean test bytecode ::
|
||||
$(VERB) for dir in ${DIRS}; do \
|
||||
(cd $$dir; $(MAKE) $@) || exit 1; \
|
||||
done
|
||||
@@ -412,14 +415,15 @@ all :: $(addsuffix /.makeall , $(PARALLEL_DIRS))
|
||||
install :: $(addsuffix /.makeinstall , $(PARALLEL_DIRS))
|
||||
clean :: $(addsuffix /.makeclean , $(PARALLEL_DIRS))
|
||||
test :: $(addsuffix /.maketest , $(PARALLEL_DIRS))
|
||||
bytecode :: $(addsuffix /.makebytecode, $(PARALLEL_DIRS))
|
||||
|
||||
%/.makeall %/.makeinstall %/.makeclean %/.maketest:
|
||||
%/.makeall %/.makeinstall %/.makeclean %/.maketest %/.makebytecode:
|
||||
$(VERB) cd $(@D); $(MAKE) $(subst $(@D)/.make,,$@)
|
||||
endif
|
||||
|
||||
# Handle directories that may or may not exist
|
||||
ifdef OPTIONAL_DIRS
|
||||
all install clean test ::
|
||||
all install clean test bytecode ::
|
||||
$(VERB) for dir in ${OPTIONAL_DIRS}; do \
|
||||
if [ -d $$dir ]; \
|
||||
then\
|
||||
|
||||
Reference in new issue
Block a user