can't have the logic here to add in the 'tools/{driver,libclang}' directories,
because they will be added in for ALL Makefiles which #include the top-level
one. Place the logic into the 'tools' Makefile.
llvm-svn: 165103
OPTIONAL_DIRS :=
endif
ifeq ($(BUILD_CLANG_ONLY),YES)
- DIRS := $(filter-out tools docs unittests, $(DIRS)) \
- tools/driver tools/libclang
+ DIRS := $(filter-out docs unittests, $(DIRS))
OPTIONAL_DIRS :=
endif
# Recurse into the extra repository of tools if present.
OPTIONAL_DIRS := extra
+ifeq ($(BUILD_CLANG_ONLY),YES)
+ DIRS := tools/driver tools/libclang
+ OPTIONAL_DIRS :=
+endif
+
include $(CLANG_LEVEL)/Makefile