llvm.org GIT mirror llvm / 5720be4
Revamp this to use filter-out, which makes the logic simpler and not nested. This restores building of examples and projects! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29297 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
1 changed file(s) with 20 addition(s) and 23 deletion(s). Raw diff Collapse all Expand all
66 #
77 #===------------------------------------------------------------------------===#
88
9 LEVEL = .
10 DIRS = lib/System lib/Support utils lib/VMCore lib
9 LEVEL := .
10 DIRS := lib/System lib/Support utils lib/VMCore lib tools runtime docs
11 OPTIONAL_DIRS := examples projects
12 EXTRA_DIST := test llvm.spec include win32 Xcode
1113
1214 include $(LEVEL)/Makefile.config
1315
14
15 ifeq ($(MAKECMDGOALS),tools-only)
16 DIRS += tools
17 else
18 ifneq ($(MAKECMDGOALS),libs-only)
19 DIRS += tools
20 ifneq ($(LLVMGCC_MAJVERS),4)
21 DIRS += runtime
22 else
23 $(warning Skipping runtime libraries, llvm-gcc 4 detected.)
24 endif
25
26 DIRS += docs
27 endif
16 # llvm-gcc4 doesn't need runtime libs.
17 ifeq ($(LLVMGCC_MAJVERS),4)
18 DIRS := $(filter-out runtime, $(DIRS))
2819 endif
2920
30 # Don't install utils, they are only used to build LLVM.
31 #
32 ifeq ($(MAKECMDGOALS),install)
33 DIRS := $(filter-out utils, $(DIRS))
34
35 # Don't install examples or projects.
21 ifeq ($(MAKECMDGOALS),libs-only)
22 DIRS := $(filter-out tools runtime docs, $(DIRS))
3623 OPTIONAL_DIRS :=
3724 endif
3825
26 ifeq ($(MAKECMDGOALS),tools-only)
27 DIRS := $(filter-out runtime docs, $(DIRS))
28 OPTIONAL_DIRS :=
29 endif
3930
40 EXTRA_DIST := test llvm.spec include win32 Xcode
31 # Don't install utils, examples, or projects they are only used to
32 # build LLVM.
33 ifeq ($(MAKECMDGOALS),install)
34 DIRS := $(filter-out utils, $(DIRS))
35 OPTIONAL_DIRS :=
36 endif
4137
4238 # Include the main makefile machinery.
4339 include $(LLVM_SRC_ROOT)/Makefile.rules
10298
10399 check-llvm2cpp:
104100 $(MAKE) check TESTSUITE=Feature RUNLLVM2CPP=1
101