X-Git-Url: https://git.rohieb.name/iserv-mod-error-reporter.git/blobdiff_plain/90c4e503e5550d74cc71968c04957f6ba9d36351..14c178039044c79ef0f4f770c869e73e69ff1c07:/Makefile diff --git a/Makefile b/Makefile index 3e1bf35..3b25f0f 100644 --- a/Makefile +++ b/Makefile @@ -26,6 +26,10 @@ # 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 RM=rm -rf @@ -85,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 @@ -122,6 +128,7 @@ endif # clean up clean: distclean + [ -e Doxyfile ] && rm Doxyfile distclean: $(RM) doc/source