summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorJulien Rioux <jrioux@physics.utoronto.ca>2012-03-16 15:01:14 -0400
committerJulien Rioux <jrioux@physics.utoronto.ca>2012-03-16 15:01:14 -0400
commit70adadcf60fa2571d3148115af5d7e96d80d57a5 (patch)
tree31f9ca643544eba1363b2c867e2b745aff31785f /make
parentb63f205feabebfd5ed39fdaa57308c4b08eb70b3 (diff)
Remove hard-coded links to v2.13 docs (issue 2399).
ONLY_WEB_VERSION will take the value vMAJOR.MINOR from the top-level VERSION file. If we ever want to change the online docs to point to e.g. doc/devel, ONLY_WEB_VERSION should take the value devel.
Diffstat (limited to 'make')
-rw-r--r--make/website.make4
1 files changed, 3 insertions, 1 deletions
diff --git a/make/website.make b/make/website.make
index 59ac71d818..0c53f5434c 100644
--- a/make/website.make
+++ b/make/website.make
@@ -29,6 +29,8 @@ else
include $(config_make)
endif
+include $(top-src-dir)/VERSION
+
################################################################
#The 4 lines below present an option to force make website to run
# quietly only when it is run as make -s website. However, we've
@@ -52,7 +54,7 @@ OUT=out-website
WEB_LANGS := $(shell MAKEWEB=1 $(PYTHON) $(top-src-dir)/python/langdefs.py)
-TEXI2HTML=ONLY_WEB=1 TOP_SRC_DIR=$(top-src-dir) DEPTH=$(depth) PERL_UNICODE=SD \
+TEXI2HTML=ONLY_WEB_VERSION=v$(MAJOR_VERSION).$(MINOR_VERSION) TOP_SRC_DIR=$(top-src-dir) DEPTH=$(depth) PERL_UNICODE=SD \
$(TEXI2HTML_PROGRAM) -D web_version --prefix=index --split=section \
--init-file=$(texi2html-init-file) \
--I=$(dir $<) \