X-Git-Url: https://git.rohieb.name/iserv-mod-error-reporter.git/blobdiff_plain/ae87133905d183987eb75369fe94bb739a2b1cb9..780f1faa9343bce3ca944f0c16246b269a88b1fd:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index a4bf949..acf4270 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 @@ -81,10 +85,12 @@ endif # maintenance files $(MKDIR) $(DESTDIR)/usr/share/iserv/modules/error-reporter - $(LN) maint/update.php $(DESTDIR)/usr/share/iserv/modules/error-reporter + $(LN) maint/* $(DESTDIR)/usr/share/iserv/modules/error-reporter # 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 + if [ -e Doxyfile ]; then rm Doxyfile; fi; distclean: $(RM) doc/source