aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-06-19 06:35:25 +0000
committerChris Lattner <sabre@nondot.org>2010-06-19 06:35:25 +0000
commitc56bc31138e2ae327cdc5039a664cae1570fe24f (patch)
tree228b03b7988e4125e08082937f4c0befd95eaff3 /Makefile
parent61c6c91930de9c0659027f019062b4a5636c1c2a (diff)
add a libs-only target to the clang makefile, patch by Sunay Ismail
in PR7397 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106386 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 17365d9013..d98449edd8 100644
--- 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' | \