# 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
# web pages
$(MKDIR) $(DESTDIR)/usr/share/iserv/www/mod_error-reporter
$(LN) src/{config,detail,index}.php $(DESTDIR)/usr/share/iserv/www/mod_error-reporter
-
+
+ # config
+ if [ ! -d $(DESTDIR)/usr/share/iserv/iconf/etc/iserv/config.template/ ]; then $(MKDIR) $(DESTDIR)/usr/share/iserv/iconf/etc/iserv/config.template/; fi
+ $(LN) config/82error-reporter $(DESTDIR)/usr/share/iserv/iconf/etc/iserv/config.template/
+
# 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
# clean up
clean: distclean
+ if [ -e Doxyfile ]; then rm Doxyfile; fi;
distclean:
$(RM) doc/source