diff --git a/Makefile b/Makefile index 8136798a3a8..9688879af8b 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ LEVEL = . DIRS = lib/System lib/Support utils lib -include $(LEVEL)/Makefile.common +include $(LEVEL)/Makefile.config ifeq ($(MAKECMDGOALS),tools-only) DIRS += tools @@ -21,12 +21,14 @@ else else $(warning Skipping runtime libraries, llvm-gcc 4 detected.) endif + OPTIONAL_DIRS := examples projects DIRS += docs - OPTIONAL_DIRS = examples projects endif endif EXTRA_DIST := test llvm.spec include +include $(LLVM_SRC_ROOT)/Makefile.rules + # Specify options to pass to configure script when we're # running the dist-check target DIST_CHECK_CONFIG_OPTIONS = --with-llvmgccdir=$(LLVMGCCDIR)