[llvm-commits] CVS: llvm/Makefile.common
John Criswell
criswell at choi.cs.uiuc.edu
Fri Jun 27 13:36:01 PDT 2003
Changes in directory llvm:
Makefile.common updated: 1.88.2.6 -> 1.88.2.7
---
Log message:
Merged with HEAD on Jun 27, 2003 to get the OPTIONAL_DIRS functionality.
---
Diffs of the changes:
Index: llvm/Makefile.common
diff -u llvm/Makefile.common:1.88.2.6 llvm/Makefile.common:1.88.2.7
--- llvm/Makefile.common:1.88.2.6 Thu Jun 26 16:33:47 2003
+++ llvm/Makefile.common Fri Jun 27 13:35:24 2003
@@ -50,6 +50,7 @@
# LLVM_OBJ_ROOT = BUILD_OBJ_ROOT.
#===-----------------------------------------------------------------------====
+#
# Configuration file to set paths specific to local installation of LLVM
#
include $(LEVEL)/Makefile.config
@@ -421,6 +422,17 @@
$(VERB) cd $(@D); $(MAKE) $(subst $(@D)/.make,,$@)
endif
+# Handle directories that may or may not exist
+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
+
###########################################################################
# Library Build Rules:
#
@@ -606,6 +618,7 @@
$(addsuffix /.makeall, $(PARALLEL_DIRS))
all:: $(TOOLEXENAMES)
+
clean::
$(VERB) $(RM) -f $(TOOLEXENAMES)
More information about the llvm-commits
mailing list