summaryrefslogtreecommitdiff
path: root/Makefile.common
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2003-07-10 19:25:29 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2003-07-10 19:25:29 +0000
commit6edfe2719597c72d20910cb8396097dd2c5123c7 (patch)
treec908e58447629c0c64d43d7a6349200e92323377 /Makefile.common
parentb5c520bfb6505caaa6ad8468b372530d44c8b253 (diff)
downloadllvm-6edfe2719597c72d20910cb8396097dd2c5123c7.tar.gz
llvm-6edfe2719597c72d20910cb8396097dd2c5123c7.tar.bz2
llvm-6edfe2719597c72d20910cb8396097dd2c5123c7.tar.xz
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
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common18
1 files changed, 11 insertions, 7 deletions
diff --git a/Makefile.common b/Makefile.common
index 81bfc6d2a2..d48647db9c 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -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
@@ -408,18 +411,19 @@ endif
# Handle PARALLEL_DIRS
ifdef PARALLEL_DIRS
-all :: $(addsuffix /.makeall , $(PARALLEL_DIRS))
-install :: $(addsuffix /.makeinstall, $(PARALLEL_DIRS))
-clean :: $(addsuffix /.makeclean , $(PARALLEL_DIRS))
-test :: $(addsuffix /.maketest , $(PARALLEL_DIRS))
+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\