X-Git-Url: https://git.rohieb.name/iserv-mod-room-reservation.git/blobdiff_plain/b5b917aab80a198f52b15b454c0f34c26ac5ab17..bf46524d682a25cd329feb2a28fcd70e97db7fa9:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index 75748b9..41d1775 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,9 @@ # 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 @@ -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 @@ -123,8 +128,10 @@ uninstall: # clean up clean: distclean + if [ -e Doxyfile ]; then rm Doxyfile; fi distclean: $(RM) doc/source .PHONY: clean distclean install +