[llvm-commits] CVS: llvm/Makefile.common

Vikram Adve vadve at cs.uiuc.edu
Thu Jul 10 14:26:01 PDT 2003


Changes in directory llvm:

Makefile.common updated: 1.98 -> 1.99

---
Log message:

Add phony target "bytecode" to ensure that it works in recursive makes.


---
Diffs of the changes:

Index: llvm/Makefile.common
diff -u llvm/Makefile.common:1.98 llvm/Makefile.common:1.99
--- llvm/Makefile.common:1.98	Thu Jul 10 11:52:41 2003
+++ llvm/Makefile.common	Thu Jul 10 14:25:29 2003
@@ -149,6 +149,9 @@
 # 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 @@
 #---------------------------------------------------------
 
 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 @@
 
 # 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\





More information about the llvm-commits mailing list