[llvm-commits] [llvm] r62522 - /llvm/trunk/Makefile

Mike Stump mrs at apple.com
Mon Jan 19 11:48:23 PST 2009


Author: mrs
Date: Mon Jan 19 13:48:23 2009
New Revision: 62522

URL: http://llvm.org/viewvc/llvm-project?rev=62522&view=rev
Log:
Add targets to support the installation of clang in isolation.

Modified:
    llvm/trunk/Makefile

Modified: llvm/trunk/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile?rev=62522&r1=62521&r2=62522&view=diff

==============================================================================
--- llvm/trunk/Makefile (original)
+++ llvm/trunk/Makefile Mon Jan 19 13:48:23 2009
@@ -54,6 +54,17 @@
   OPTIONAL_DIRS :=
 endif
 
+ifeq ($(MAKECMDGOALS),install-clang)
+  DIRS := tools/clang/Driver tools/clang/lib/Headers tools/clang/tools/ccc
+  OPTIONAL_DIRS :=
+  NO_INSTALL = 1
+endif
+
+ifeq ($(MAKECMDGOALS),clang-only)
+  DIRS := $(filter-out tools runtime docs, $(DIRS)) tools/clang
+  OPTIONAL_DIRS :=
+endif
+
 ifeq ($(MAKECMDGOALS),unittests)
   DIRS := $(filter-out tools runtime docs, $(DIRS)) utils unittests
   OPTIONAL_DIRS :=
@@ -113,8 +124,10 @@
 	  $(TopDistDir)/include/llvm/Support/DataTypes.h  \
 	  $(TopDistDir)/include/llvm/Support/ThreadSupport.h
 
+clang-only: all
 tools-only: all
 libs-only: all
+install-clang: install
 install-libs: install
 
 #------------------------------------------------------------------------





More information about the llvm-commits mailing list