summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2009-01-01 02:24:48 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2009-01-01 02:24:48 +0000
commit8fb520eb4f06d4ef771abe9c22d85b2a275988ee (patch)
treec510dfdb8b8f11c23b494ebe0c283c8068ec9e40 /Makefile
parente5f9471bd25b82bbe1920b1afab75138870c3274 (diff)
Original patch by Talin.
* Added the first LLVM unittest -- DenseMap. * Updated mkpatch utility to include llvm/unittests dir * Added top-level target "unittests" to run all unittests git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61541 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index cfb4c1258ed..5987b88f773 100644
--- a/Makefile
+++ b/Makefile
@@ -28,7 +28,7 @@ else
OPTIONAL_DIRS := examples projects bindings
endif
-EXTRA_DIST := test llvm.spec include win32 Xcode
+EXTRA_DIST := test unittests llvm.spec include win32 Xcode
include $(LEVEL)/Makefile.config
@@ -54,6 +54,11 @@ ifeq ($(MAKECMDGOALS),tools-only)
OPTIONAL_DIRS :=
endif
+ifeq ($(MAKECMDGOALS),unittests)
+ DIRS := $(filter-out tools runtime docs, $(DIRS)) utils unittests
+ OPTIONAL_DIRS :=
+endif
+
# Don't install utils, examples, or projects they are only used to
# build LLVM.
ifeq ($(MAKECMDGOALS),install)
@@ -111,6 +116,7 @@ dist-hook::
tools-only: all
libs-only: all
install-libs: install
+unittests: all
#------------------------------------------------------------------------
# Make sure the generated headers are up-to-date. This must be kept in