From 6d93755ec87c4539f827103f1cf2ba55e2158a9a Mon Sep 17 00:00:00 2001 From: Roland Hieber Date: Fri, 23 Oct 2009 01:52:41 +0200 Subject: [PATCH 1/1] Makefile creates Doxyfile by its own; Doxyfile.in is more useful for source distribution --- Doxyfile => Doxyfile.in | 2 +- Makefile | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) rename Doxyfile => Doxyfile.in (99%) diff --git a/Doxyfile b/Doxyfile.in similarity index 99% rename from Doxyfile rename to Doxyfile.in index 17fd21e..addd692 100644 --- a/Doxyfile +++ b/Doxyfile.in @@ -3,7 +3,7 @@ # doxygen (www.doxygen.org) for a project # PROJECT_NAME = {{{MODULE}}} -PROJECT_NUMBER = 9.08.24 +PROJECT_NUMBER = {{{VERSION}}} OUTPUT_DIRECTORY = doc/source CREATE_SUBDIRS = NO OUTPUT_LANGUAGE = English diff --git a/Makefile b/Makefile index 2cc3765..a555f54 100644 --- a/Makefile +++ b/Makefile @@ -26,6 +26,9 @@ # 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 @@ -86,6 +89,8 @@ endif # 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 -- 2.20.1