X-Git-Url: https://git.rohieb.name/iserv-mod-room-reservation.git/blobdiff_plain/5a9c429536bed77958a77906b5395aadae0ef6e4..ab1bc7f64a5edbada5c3b538fa8d9f89183ff88f:/Makefile diff --git a/Makefile b/Makefile index 9440ef6..a004aff 100644 --- a/Makefile +++ b/Makefile @@ -33,12 +33,14 @@ MKDIR=mkdir -p # hardlink the files to their destinations # TODO move documentation where Jörg wants it ;) -links: +links: sourcedoc # documentation $(MKDIR) $(DESTDIR)/usr/share/doc/iserv/mod/room-reservation/source/ - $(LN) doc/{TODO,changelog.html} $(DESTDIR)/usr/share/doc/iserv/mod/room-reservation/ - $(LN) doc/source/html/* $(DESTDIR)/usr/share/doc/iserv/mod/room-reservation/source/ - + $(LN) doc/{TODO,changelog.old.html} $(DESTDIR)/usr/share/doc/iserv/mod/room-reservation/ + $(LN) doc/source/* $(DESTDIR)/usr/share/doc/iserv/mod/room-reservation/source/ + $(RM) $(DESTDIR)/usr/share/doc/iserv/mod/room-reservation + $(LN) -s $(DESTDIR)/usr/share/doc/iserv-mod-room-reservation $(DESTDIR)/usr/share/doc/iserv/mod/room-reservation + # images if [ ! -d $(DESTDIR)/usr/share/iserv/www/img/default/16/ ]; then $(MKDIR) $(DESTDIR)/usr/share/iserv/www/img/default/16/; fi $(LN) img/16/*.png $(DESTDIR)/usr/share/iserv/www/img/default/16/ @@ -75,9 +77,8 @@ endif $(LN) sql/log_module/* $(DESTDIR)/usr/share/iserv/db/log_module # web pages - $(MKDIR) $(DESTDIR)/usr/share/iserv/www/mod_room-reservation/admin - $(LN) src/index.php $(DESTDIR)/usr/share/iserv/www/mod_room-reservation/ - $(LN) src/admin/config.php $(DESTDIR)/usr/share/iserv/www/mod_room-reservation/admin/ + $(MKDIR) $(DESTDIR)/usr/share/iserv/www/mod_room-reservation + $(LN) src/{config,index}.php $(DESTDIR)/usr/share/iserv/www/mod_room-reservation/ # additional files $(MKDIR) $(DESTDIR)/usr/share/iserv/modules/room-reservation @@ -87,9 +88,10 @@ endif # build doxygen documentation from source sourcedoc: doxygen + mv doc/source/html/* doc/source/ && rm -rf doc/source/html # install everything -install: sourcedoc links +install: links ifeq ($(shell echo $USER),root) chkdb -r chkpriv