#
#===-----------------------------------------------------------------------====
#
#===-----------------------------------------------------------------------====
# Configuration file to set paths specific to local installation of LLVM
#
include $(LEVEL)/Makefile.config
# Configuration file to set paths specific to local installation of LLVM
#
include $(LEVEL)/Makefile.config
$(VERB) cd $(@D); $(MAKE) $(subst $(@D)/.make,,$@)
endif
$(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...
#---------------------------------------------------------
#---------------------------------------------------------
# Handle the LIBRARYNAME option - used when building libs...
#---------------------------------------------------------
$(addsuffix /.makeall, $(PARALLEL_DIRS))
all:: $(TOOLEXENAMES)
$(addsuffix /.makeall, $(PARALLEL_DIRS))
all:: $(TOOLEXENAMES)
clean::
$(VERB) rm -f $(TOOLEXENAMES)
clean::
$(VERB) rm -f $(TOOLEXENAMES)
#
#===-----------------------------------------------------------------------====
#
#===-----------------------------------------------------------------------====
# Configuration file to set paths specific to local installation of LLVM
#
include $(LEVEL)/Makefile.config
# Configuration file to set paths specific to local installation of LLVM
#
include $(LEVEL)/Makefile.config
$(VERB) cd $(@D); $(MAKE) $(subst $(@D)/.make,,$@)
endif
$(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...
#---------------------------------------------------------
#---------------------------------------------------------
# Handle the LIBRARYNAME option - used when building libs...
#---------------------------------------------------------
$(addsuffix /.makeall, $(PARALLEL_DIRS))
all:: $(TOOLEXENAMES)
$(addsuffix /.makeall, $(PARALLEL_DIRS))
all:: $(TOOLEXENAMES)
clean::
$(VERB) rm -f $(TOOLEXENAMES)
clean::
$(VERB) rm -f $(TOOLEXENAMES)