add a method
[oota-llvm.git] / Makefile
index d221175a98b5b84967ac4f971105bc8c5ceb4d92..818128e8d73f4c1ce8e0012d2fd5035bcaefacbe 100644 (file)
--- 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 += tools 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