]> granicus.if.org Git - clang/commitdiff
add a libs-only target to the clang makefile, patch by Sunay Ismail
authorChris Lattner <sabre@nondot.org>
Sat, 19 Jun 2010 06:35:25 +0000 (06:35 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 19 Jun 2010 06:35:25 +0000 (06:35 +0000)
in PR7397

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

Makefile

index 17365d9013066e47c4eeb92b89b785026d8ad9de..d98449edd8460c26934865c2247635be20a523ec 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -23,6 +23,11 @@ ifeq ($(BUILD_EXAMPLES),1)
 endif
 endif
 
+ifeq ($(MAKECMDGOALS),libs-only)
+  DIRS := $(filter-out tools docs, $(DIRS))
+  OPTIONAL_DIRS :=
+endif
+
 ###
 # Common Makefile code, shared by all Clang Makefiles.
 
@@ -69,6 +74,8 @@ report::
 
 clean::
        @ $(MAKE) -C test clean
+       
+libs-only: all
 
 tags::
        $(Verb) etags `find . -type f -name '*.h' -or -name '*.cpp' | \