aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rw-r--r--tools/Makefile5
2 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2ffe3597a9..cb2566a0a1 100644
--- a/Makefile
+++ b/Makefile
@@ -28,8 +28,7 @@ ifeq ($(MAKECMDGOALS),libs-only)
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
diff --git a/tools/Makefile b/tools/Makefile
index e7aa2fa4ff..b2a9f36f8e 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -17,4 +17,9 @@ DIRS := driver libclang c-index-test arcmt-test c-arcmt-test diagtool \
# 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