llvm.org GIT mirror llvm / 06a801a
Fix recursion: 1. Make setting OPTIONAL_DIRS use immediate assignment 2. Include Makefile.config before ifeq tests and then Makefile.rules later instead of Makefile.common up front. This ensures that the variable values are set before the ifeq statements in Makefile.rules are evaluated. With this, recursion into projects/examples is corrected. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27519 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 13 years ago
1 changed file(s) with 4 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
88 LEVEL = .
99 DIRS = lib/System lib/Support utils lib
1010
11 include $(LEVEL)/Makefile.common
11 include $(LEVEL)/Makefile.config
1212
1313 ifeq ($(MAKECMDGOALS),tools-only)
1414 DIRS += tools
2020 else
2121 $(warning Skipping runtime libraries, llvm-gcc 4 detected.)
2222 endif
23 OPTIONAL_DIRS := examples projects
2324 DIRS += docs
24 OPTIONAL_DIRS = examples projects
2525 endif
2626 endif
2727 EXTRA_DIST := test llvm.spec include
28
29 include $(LLVM_SRC_ROOT)/Makefile.rules
2830
2931 # Specify options to pass to configure script when we're
3032 # running the dist-check target