aboutsummaryrefslogtreecommitdiff
path: root/docs/Makefile
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-03-04 00:45:50 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-03-04 00:45:50 +0000
commit12cabda94124851d8a9304a54fcce36a434bacd3 (patch)
tree85e6a959f0786fa672f88f580e3850de2f28a8c4 /docs/Makefile
parent8b2d42c9494a42c8b5b9e5c2e46c8001b89e75b5 (diff)
Get the version number for the LLVM from the autoconf/configure.ac file
when building the documentation for the web site. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34894 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/Makefile')
-rw-r--r--docs/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/docs/Makefile b/docs/Makefile
index d7442d9d36..817b7da6d9 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -13,10 +13,17 @@ DIRS := CommandGuide
ifdef BUILD_FOR_WEBSITE
PROJ_OBJ_DIR = .
DOXYGEN = doxygen
+# Extract version number from the AC_INT line in configure.ac
+# AC_INIT([[llvm]],[[2.0cvs]],[llvmbugs@cs.uiuc.edu])
+PACKAGE_VERSION = $(shell grep AC_INIT ../autoconf/configure.ac | sed -e 's/[^,]*,[[][[]//' -e 's/]],.*//')
+$(warning VERSION=$(VERSION))
doxygen.cfg: doxygen.cfg.in
- cat $< | sed 's/@abs_top_srcdir@/../g' | sed 's/@DOT@/dot/g' | \
- sed 's/@PACKAGE_VERSION@/CVS/g' | sed 's/@abs_top_builddir@/../g' > $@
+ cat $< | sed \
+ -e 's/@abs_top_srcdir@/../g' \
+ -e 's/@DOT@/dot/g' \
+ -e 's/@PACKAGE_VERSION@/$(PACKAGE_VERSION)/g' \
+ -e 's/@abs_top_builddir@/../g' > $@
endif
include $(LEVEL)/Makefile.common