aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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