[llvm-commits] CVS: llvm/docs/Makefile

Reid Spencer reid at x10sys.com
Sat Mar 3 16:46:07 PST 2007



Changes in directory llvm/docs:

Makefile updated: 1.12 -> 1.13
---
Log message:

Get the version number for the LLVM from the autoconf/configure.ac file
when building the documentation for the web site.


---
Diffs of the changes:  (+9 -2)

 Makefile |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)


Index: llvm/docs/Makefile
diff -u llvm/docs/Makefile:1.12 llvm/docs/Makefile:1.13
--- llvm/docs/Makefile:1.12	Wed Jul  5 19:36:52 2006
+++ llvm/docs/Makefile	Sat Mar  3 18:45:50 2007
@@ -13,10 +13,17 @@
 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 at 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






More information about the llvm-commits mailing list