referenced /usr/share/common-licenses/LGPL-2 as noticed by lintian
[iserv-mod-error-reporter.git] / Makefile
index 2cc3765..a555f54 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -26,6 +26,9 @@
 # THE SOFTWARE.
 #
 
 # THE SOFTWARE.
 #
 
+PACKAGENAME=iserv-mod-error-reporter
+VERSION:=$(shell grep "^$(PACKAGENAME)" debian/changelog | head -1 | sed -e "s/$(PACKAGENAME) (\([0-9.]\+\).*).*/\1/ ")
+
 SHELL=/bin/bash
 INSTALLDIR=/opt/iserv
 LN=ln -f
 SHELL=/bin/bash
 INSTALLDIR=/opt/iserv
 LN=ln -f
@@ -86,6 +89,8 @@ endif
 
 # build doxygen documentation from source
 sourcedoc:
 
 # build doxygen documentation from source
 sourcedoc:
+       cat Doxyfile.in | sed -e "s/{{{VERSION}}}/$(VERSION)/" \
+               -e "s/{{{PACKAGENAME}}}/$(PACKAGENAME)/" > Doxyfile
        doxygen
        mv doc/source/html/* doc/source/ && rm -rf doc/source/html
 
        doxygen
        mv doc/source/html/* doc/source/ && rm -rf doc/source/html
 
This page took 0.026648 seconds and 4 git commands to generate.