Add support for a recursive test target
authorChris Lattner <sabre@nondot.org>
Thu, 16 Jan 2003 20:02:30 +0000 (20:02 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 16 Jan 2003 20:02:30 +0000 (20:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5332 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.common
Makefile.rules

index 587065b83492cb85eba68f5fe66776821b3b3476..0d80d18eafe1d91fe9d58707c799a494bba81389 100644 (file)
@@ -215,7 +215,7 @@ ObjectsG := $(addprefix $(BUILD_ROOT)/Debug/,$(Objs))
 #---------------------------------------------------------
 
 ifdef DIRS
-all install clean ::
+all install clean test ::
        $(VERB) for dir in ${DIRS}; do \
                (cd $$dir; $(MAKE) $@) || exit 1; \
        done
@@ -226,8 +226,9 @@ ifdef PARALLEL_DIRS
 all     :: $(addsuffix /.makeall    , $(PARALLEL_DIRS))
 install :: $(addsuffix /.makeinstall, $(PARALLEL_DIRS))
 clean   :: $(addsuffix /.makeclean  , $(PARALLEL_DIRS))
+test    :: $(addsuffix /.maketest   , $(PARALLEL_DIRS))
 
-%/.makeall %/.makeinstall %/.makeclean:
+%/.makeall %/.makeinstall %/.makeclean %/.maketest:
        $(VERB) cd $(@D); $(MAKE) $(subst $(@D)/.make,,$@)
 
 endif
index 587065b83492cb85eba68f5fe66776821b3b3476..0d80d18eafe1d91fe9d58707c799a494bba81389 100644 (file)
@@ -215,7 +215,7 @@ ObjectsG := $(addprefix $(BUILD_ROOT)/Debug/,$(Objs))
 #---------------------------------------------------------
 
 ifdef DIRS
-all install clean ::
+all install clean test ::
        $(VERB) for dir in ${DIRS}; do \
                (cd $$dir; $(MAKE) $@) || exit 1; \
        done
@@ -226,8 +226,9 @@ ifdef PARALLEL_DIRS
 all     :: $(addsuffix /.makeall    , $(PARALLEL_DIRS))
 install :: $(addsuffix /.makeinstall, $(PARALLEL_DIRS))
 clean   :: $(addsuffix /.makeclean  , $(PARALLEL_DIRS))
+test    :: $(addsuffix /.maketest   , $(PARALLEL_DIRS))
 
-%/.makeall %/.makeinstall %/.makeclean:
+%/.makeall %/.makeinstall %/.makeclean %/.maketest:
        $(VERB) cd $(@D); $(MAKE) $(subst $(@D)/.make,,$@)
 
 endif