X-Git-Url: https://git.rohieb.name/iserv-mod-room-reservation.git/blobdiff_plain/e72f55ac765a05586d565c67f79dce57d9c1ad76..ad12e022e9f9f8a2d0ddb78da0b0789d03b5065b:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index 6026304..41d1775 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,10 @@ # THE SOFTWARE. # +PACKAGENAME:=iserv-mod-room-reservation +VERSION:=$(shell grep "^$(PACKAGENAME)" debian/changelog | head -1 | sed -e "s/$(PACKAGENAME) (\([0-9.]\+\).*).*/\1/ ") + +SHELL=/bin/bash DESTDIR?= 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,8 +128,10 @@ uninstall: # clean up clean: distclean + if [ -e Doxyfile ]; then rm Doxyfile; fi distclean: $(RM) doc/source .PHONY: clean distclean install +