summaryrefslogtreecommitdiffstats
path: root/clang/docs/tools
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-06-25 17:33:49 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-06-25 17:33:49 +0000
commit283fe3d07a51872a607dad46f2e2ba918c0a0108 (patch)
tree486539eba15454679a69cf233ca789e0ef139f0a /clang/docs/tools
parentc3275c5440babcc39b10357fe636b8da3ac2f62d (diff)
downloadbcm5719-llvm-283fe3d07a51872a607dad46f2e2ba918c0a0108.tar.gz
bcm5719-llvm-283fe3d07a51872a607dad46f2e2ba918c0a0108.zip
build: Get CLANG_VERSION from Version.inc instead of depending on VER file directly.
llvm-svn: 106864
Diffstat (limited to 'clang/docs/tools')
-rw-r--r--clang/docs/tools/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/docs/tools/Makefile b/clang/docs/tools/Makefile
index 4cffc45fe0a..5521d6b764c 100644
--- a/clang/docs/tools/Makefile
+++ b/clang/docs/tools/Makefile
@@ -40,7 +40,8 @@ else
CLANG_LEVEL := ../..
include $(CLANG_LEVEL)/Makefile
-CLANG_VERSION := $(shell cat $(PROJ_SRC_DIR)/../../VER)
+CLANG_VERSION := $(word 3,$(shell grep "CLANG_VERSION " \
+ $(PROJ_OBJ_DIR)/$(CLANG_LEVEL)/include/clang/Basic/Version.inc))
SRC_DOC_DIR=$(PROJ_SRC_DIR)/
DST_HTML_DIR=$(PROJ_OBJ_DIR)/
OpenPOWER on IntegriCloud