debian/control: added fields for IServ "app store": now got the right file...
[iserv-mod-room-reservation.git] / Makefile
index 75748b9..3c4bd8a 100644 (file)
--- 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
+       rm Doxyfile
 
 distclean:
        $(RM) doc/source
 
 .PHONY: clean distclean install
+
This page took 0.031444 seconds and 4 git commands to generate.