summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2005-05-25 21:03:17 +0000
committerReid Spencer <rspencer@reidspencer.com>2005-05-25 21:03:17 +0000
commit8b1f7676bddcf099e30b849f511ad5a6a86ea8a0 (patch)
treefe86bee2b7f5209f689c24afb0afc405a1490dc7 /Makefile
parent45eeed9b359eba3a69fd0911c543feed3d112d15 (diff)
downloadllvm-8b1f7676bddcf099e30b849f511ad5a6a86ea8a0.tar.gz
llvm-8b1f7676bddcf099e30b849f511ad5a6a86ea8a0.tar.bz2
llvm-8b1f7676bddcf099e30b849f511ad5a6a86ea8a0.tar.xz
Add a "libs-only" target for avoiding construction of the tools and
runtime libraries. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22169 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index d221175a98..fec284d072 100644
--- a/Makefile
+++ b/Makefile
@@ -7,11 +7,15 @@
#
#===------------------------------------------------------------------------===#
LEVEL = .
-DIRS = lib/System lib/Support utils lib tools
+DIRS = lib/System lib/Support utils lib
-ifneq ($(MAKECMDGOALS),tools-only)
-DIRS += runtime docs
-OPTIONAL_DIRS = examples projects
+ifeq ($(MAKECMDGOALS),tools-only)
+DIRS += tools
+else
+ ifneq ($(MAKECMDGOALS),libs-only)
+ DIRS += runtime docs
+ OPTIONAL_DIRS = examples projects
+ endif
endif
EXTRA_DIST := test llvm.spec include
@@ -46,3 +50,4 @@ dist-hook::
$(TopDistDir)/include/llvm/Support/ThreadSupport.h
tools-only: all
+libs-only: all