Make sure to rebuild dependencies for the `check' and `unittests' targets so
authorMisha Brukman <brukman+llvm@gmail.com>
Thu, 9 Apr 2009 14:57:00 +0000 (14:57 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Thu, 9 Apr 2009 14:57:00 +0000 (14:57 +0000)
we're not testing out-of-date code.  This also makes "make check" and
"make unittests" work out-of-the box right after the configure step, without
requiring the user to run "make tools-only" or "make libs-only".

Tested on Linux/x86_64 and Darwin/x86.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68708 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.rules

index e6c266af7f408a4e0c773aa7f55df15e7d306d1f..c0fbf13878ef3cb4f0f57767bb315ce2dbf3668d 100644 (file)
@@ -1547,7 +1547,7 @@ endif
 # CHECK: Running the test suite
 ###############################################################################
 
-check::
+check:: tools-only
        $(Verb) if test -d "$(PROJ_OBJ_ROOT)/test" ; then \
          if test -f "$(PROJ_OBJ_ROOT)/test/Makefile" ; then \
            $(EchoCmd) Running test suite ; \
@@ -1564,7 +1564,7 @@ check::
 # UNITTESTS: Running the unittests test suite
 ###############################################################################
 
-unittests::
+unittests:: libs-only
        $(Verb) if test -d "$(PROJ_OBJ_ROOT)/unittests" ; then \
          if test -f "$(PROJ_OBJ_ROOT)/unittests/Makefile" ; then \
            $(EchoCmd) Running unittests test suite ; \