X-Git-Url: https://git.rohieb.name/iserv-mod-room-reservation.git/blobdiff_plain/cf15ad3be3a20a634a64071a4533d706b68ce1af..22edfde460ea987be279797e01db364205ffaa40:/Makefile diff --git a/Makefile b/Makefile index 310b57d..39153a6 100644 --- a/Makefile +++ b/Makefile @@ -25,21 +25,18 @@ # DESTDIR?= -SOURCEFILES=src/*.php includes/*.inc -MODULE_DOC_FILES=doc/source/html/* doc/source/latex/* LN=ln -f RM=rm -rf 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.old.html} $(DESTDIR)/usr/share/doc/iserv/mod/room-reservation/ - $(LN) doc/source/* $(DESTDIR)/usr/share/doc/iserv/mod/room-reservation/source/ + $(MKDIR) $(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 + $(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 @@ -77,9 +74,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/*.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 @@ -92,7 +88,7 @@ sourcedoc: 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 @@ -128,4 +124,4 @@ clean: distclean distclean: $(RM) doc/source -.PHONY: clean +.PHONY: clean distclean