[llvm-commits] CVS: llvm/Makefile.common
John Criswell
criswell at choi.cs.uiuc.edu
Fri Jun 27 11:59:01 PDT 2003
Changes in directory llvm:
Makefile.common updated: 1.93 -> 1.94
---
Log message:
Added the OPTIONAL_DIRS variable for specifying optional directories to build.
---
Diffs of the changes:
Index: llvm/Makefile.common
diff -u llvm/Makefile.common:1.93 llvm/Makefile.common:1.94
--- llvm/Makefile.common:1.93 Fri Jun 20 16:24:54 2003
+++ llvm/Makefile.common Fri Jun 27 11:58:44 2003
@@ -40,6 +40,7 @@
#
#===-----------------------------------------------------------------------====
+#
# Configuration file to set paths specific to local installation of LLVM
#
include $(LEVEL)/Makefile.config
@@ -340,6 +341,16 @@
$(VERB) cd $(@D); $(MAKE) $(subst $(@D)/.make,,$@)
endif
+ifdef OPTIONAL_DIRS
+all install clean test ::
+ $(VERB) for dir in ${OPTIONAL_DIRS}; do \
+ if [ -d $$dir ]; \
+ then\
+ (cd $$dir; $(MAKE) $@) || exit 1; \
+ fi \
+ done
+endif
+
#---------------------------------------------------------
# Handle the LIBRARYNAME option - used when building libs...
#---------------------------------------------------------
@@ -489,6 +500,7 @@
$(addsuffix /.makeall, $(PARALLEL_DIRS))
all:: $(TOOLEXENAMES)
+
clean::
$(VERB) rm -f $(TOOLEXENAMES)
More information about the llvm-commits
mailing list