X-Git-Url: https://git.rohieb.name/iserv-mod-room-reservation.git/blobdiff_plain/d249a6ce255ae2a16ffea19ba9ca2ac9a495710a..dd959edb1d330ab87a6ffc1e902f238db632156b:/Makefile diff --git a/Makefile b/Makefile old mode 100755 new mode 100644 index 6abcb9d..9440ef6 --- a/Makefile +++ b/Makefile @@ -50,9 +50,11 @@ links: # includes $(MKDIR) $(DESTDIR)/usr/share/iserv/www/inc/mod_room-reservation $(LN) includes/*.inc $(DESTDIR)/usr/share/iserv/www/inc/mod_room-reservation/ - touch $(DESTDIR)/usr/share/iserv/www/inc/mod_room-reservation/config.inc - chmod 664 $(DESTDIR)/usr/share/iserv/www/inc/mod_room-reservation/config.inc + if [ ! -e $(DESTDIR)/usr/share/iserv/www/inc/mod_room-reservation/config.inc ] ; then touch $(DESTDIR)/usr/share/iserv/www/inc/mod_room-reservation/config.inc; fi +ifeq ($(shell id -u),0) + chmod g+w $(DESTDIR)/usr/share/iserv/www/inc/mod_room-reservation/config.inc chown www-data $(DESTDIR)/usr/share/iserv/www/inc/mod_room-reservation/config.inc +endif # i18n if [ ! -d $(DESTDIR)/usr/share/iserv/locale/de/ ]; then $(MKDIR) $(DESTDIR)/usr/share/iserv/locale/de/; fi @@ -79,8 +81,8 @@ links: # additional files $(MKDIR) $(DESTDIR)/usr/share/iserv/modules/room-reservation - $(LN) update-iserv1-iserv2.pl $(DESTDIR)/usr/share/iserv/modules/room-reservation - chmod 755 $(DESTDIR)/usr/share/iserv/modules/room-reservation/update-iserv1-iserv2.pl + $(LN) maint/update-iserv1-iserv2.pl $(DESTDIR)/usr/share/iserv/modules/room-reservation + chmod +x $(DESTDIR)/usr/share/iserv/modules/room-reservation/update-iserv1-iserv2.pl # build doxygen documentation from source sourcedoc: @@ -88,9 +90,11 @@ sourcedoc: # install everything install: sourcedoc links +ifeq ($(shell echo $USER),root) chkdb -r chkpriv chklocale +endif # uninstalling uninstall: @@ -117,5 +121,8 @@ uninstall: # clean up clean: distclean + distclean: $(RM) doc/source + +.PHONY: clean