1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Get the version number for the LLVM from the autoconf/configure.ac file

when building the documentation for the web site.

llvm-svn: 34894
This commit is contained in:
Reid Spencer 2007-03-04 00:45:50 +00:00
parent 9c1328fdbb
commit 811c8dccf1

View File

@ -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