explicitly set the module for log_insert(), SQL table is updated automagically on...
[iserv-mod-room-reservation.git] / Makefile
old mode 100644 (file)
new mode 100755 (executable)
index b56cc06..2a4fc00
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,5 @@
-#\r
 # @file Makefile\r
-# Makefile for installing, creating documentation etc\r
+# Makefile for installing, creating documentation etc.\r
 # @author: Roland Hieber (roland.hieber@wilhelm-gym.net)\r
 # @date: 12.11.2007\r
 # \r
@@ -60,6 +59,10 @@ links:
        $(LN) src/index.php /usr/share/iserv/www/mod_room-reservation/\r
        $(LN) src/admin/config.php /usr/share/iserv/www/mod_room-reservation/admin/\r
 \r
+       $(MKDIR) /usr/share/iserv/modules/room-reservation\r
+       $(LN) update-iserv1-iserv2.pl /usr/share/iserv/modules/room-reservation\r
+       chmod 755 /usr/share/iserv/modules/room-reservation/update-iserv1-iserv2.pl\r
+\r
 # build doxygen documentation from source\r
 sourcedoc:\r
        doxygen\r
@@ -68,12 +71,6 @@ sourcedoc:
 install: sourcedoc links\r
        chkdb -r\r
        chkpriv\r
-       \r
-       @if [ -z "`psql -qc "SELECT * FROM log_module;" 2>&1 |grep ERROR`" -a -z \\r
-         "`psql -qc \"SELECT COUNT(*) FROM log_module WHERE module = 'Room Reservation Schedule';\" 2>&1 |grep ' 1'`" ]; then \\r
-         echo psql -c "INSERT INTO log_module VALUES('Room Reservation Schedule');"; \\r
-         psql -c "INSERT INTO log_module VALUES('Room Reservation Schedule');"; \\r
-       fi;\r
        chklocale\r
 \r
 # uninstalling\r
@@ -87,6 +84,7 @@ uninstall:
        $(RM) /usr/share/iserv/www/img/default/{16,24,32}/mod_room-reservation_{timeslice,index,config}.png\r
        $(RM) /usr/share/iserv/www/inc/mod_room-reservation\r
        $(RM) /usr/share/iserv/www/mod_room-reservation\r
+       $(RM) /usr/share/iserv/modules/room-reservation\r
        \r
        chklocale\r
        \r
This page took 0.025818 seconds and 4 git commands to generate.