summaryrefslogtreecommitdiff
path: root/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
commitbc817cffbca01c879f13e9290d94797f6caafc7a (patch)
tree1640f753c585ffb2ea039de78977396c89cc32b4 /docs/tools
parenta510767963e6bf04f0bc15de057f6bafa0aedab5 (diff)
downloadclang-bc817cffbca01c879f13e9290d94797f6caafc7a.tar.gz
build: Get CLANG_VERSION from Version.inc instead of depending on VER file directly.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106864 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/tools')
-rw-r--r--docs/tools/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/tools/Makefile b/docs/tools/Makefile
index 4cffc45fe0..5521d6b764 100644
--- a/docs/tools/Makefile
+++ b/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)/