summaryrefslogtreecommitdiffstats
path: root/clang/docs/tools
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-09-16 01:26:05 +0000
committerMike Stump <mrs@apple.com>2009-09-16 01:26:05 +0000
commitb4bed3a497390d1be9f9add3f246bc1900222aa5 (patch)
tree127367317284271bad8c3a0ef714852c59f651c5 /clang/docs/tools
parente739ac89002595b740e1e811b31a7d809724cc67 (diff)
downloadbcm5719-llvm-b4bed3a497390d1be9f9add3f246bc1900222aa5.tar.gz
bcm5719-llvm-b4bed3a497390d1be9f9add3f246bc1900222aa5.zip
Collapse more clang version numbers down into fewer places.
llvm-svn: 81983
Diffstat (limited to 'clang/docs/tools')
-rw-r--r--clang/docs/tools/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/docs/tools/Makefile b/clang/docs/tools/Makefile
index a1bbbcc9201..12696ef0b65 100644
--- a/clang/docs/tools/Makefile
+++ b/clang/docs/tools/Makefile
@@ -21,6 +21,7 @@ SRC_DOC_DIR=
DST_HTML_DIR=html/
DST_MAN_DIR=man/man1/
DST_PS_DIR=ps/
+CLANG_VERSION := trunk
# If we are in BUILD_FOR_WEBSITE mode, default to the all target.
all:: html man ps
@@ -39,6 +40,8 @@ else
LEVEL := ../../../..
include $(LEVEL)/Makefile.common
+CLANG_VERSION := $(shell cat $(PROJ_SRC_DIR)/../../VER)
+
SRC_DOC_DIR=$(PROJ_SRC_DIR)/
DST_HTML_DIR=$(PROJ_OBJ_DIR)/
DST_MAN_DIR=$(PROJ_OBJ_DIR)/
@@ -66,7 +69,7 @@ $(DST_HTML_DIR)%.html: %.pod $(DST_HTML_DIR)/.dir
--podpath=. --infile=$< --outfile=$@ --title=$*
$(DST_MAN_DIR)%.1: %.pod $(DST_MAN_DIR)/.dir
- pod2man --release "clang 1.1" --center="Clang Tools Documentation" $< $@
+ pod2man --release "clang $(CLANG_VERSION)" --center="Clang Tools Documentation" $< $@
$(DST_PS_DIR)%.ps: $(DST_MAN_DIR)%.1 $(DST_PS_DIR)/.dir
groff -Tps -man $< > $@
OpenPOWER on IntegriCloud