diff options
author | Chris Lattner <sabre@nondot.org> | 2003-01-16 20:02:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-01-16 20:02:30 +0000 |
commit | dc95aded43d0a72a6cd7b760bd81ccd348788e31 (patch) | |
tree | ec46aeda703a21b76264675dd137b0909d2d76bc | |
parent | 20c1b4db395cf513230e19f2348e3cb97e9fb7fa (diff) | |
download | llvm-dc95aded43d0a72a6cd7b760bd81ccd348788e31.tar.gz llvm-dc95aded43d0a72a6cd7b760bd81ccd348788e31.tar.bz2 llvm-dc95aded43d0a72a6cd7b760bd81ccd348788e31.tar.xz |
Add support for a recursive test target
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5332 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | Makefile.common | 5 | ||||
-rw-r--r-- | Makefile.rules | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/Makefile.common b/Makefile.common index 587065b834..0d80d18eaf 100644 --- a/Makefile.common +++ b/Makefile.common @@ -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 diff --git a/Makefile.rules b/Makefile.rules index 587065b834..0d80d18eaf 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -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 |