Rewrite weblogin/Makefile.am to install properly
authorNeutron Soutmun <neo.neutron@gmail.com>
Tue, 9 Dec 2008 10:21:01 +0000 (17:21 +0700)
committerNeutron Soutmun <neo.neutron@gmail.com>
Tue, 9 Dec 2008 10:21:01 +0000 (17:21 +0700)
2008-12-09  Neutron Soutmun <neo.neutron@gmail.com>

* weblogin/Makefile.am: Rewrite makefile to install weblogin properly.

ChangeLog
weblogin/Makefile.am

index 5b28a96..80d3938 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2008-12-09  Neutron Soutmun <neo.neutron@gmail.com>
 
+       * weblogin/Makefile.am: Rewrite makefile to install weblogin properly.
+
+2008-12-09  Neutron Soutmun <neo.neutron@gmail.com>
+
        * +weblogin/Makefile.am: Add makefile for weblogin to install with package.
        * configure.ac, Makefile.am: Update accordingly to weblogin/Makefile.am.
        * NEWS: Change release date to 2008-12-09 due to forgot to install weblogin.
index 0d6a283..9fb1a84 100644 (file)
@@ -1,55 +1,13 @@
 # Rahunas configuration and database file
-weblogindir = $(datadir)/rahunas
-weblogin_DATA = \
-    config.php \
-               logout.php \
-               templates \
-               templates/kkuwifi \
-               templates/kkuwifi/kkuwifi.html \
-               templates/kkuwifi/rahunas.css \
-               templates/kkuwifi/images \
-               templates/kkuwifi/images/note.jpg \
-               templates/kkuwifi/images/button02.jpg \
-               templates/kkuwifi/images/w2_03.jpg \
-               templates/kkuwifi/images/bullet01.gif \
-               templates/kkuwifi/images/w2_02.jpg \
-               templates/kkuwifi/images/w2_01.jpg \
-               templates/kkuwifi/images/bg_02.jpg \
-               templates/kkuwifi/images/w2_04.jpg \
-               templates/rahunas \
-               templates/rahunas/rahunas.css \
-               templates/rahunas/images \
-               templates/rahunas/images/rahunas.xcf \
-               templates/rahunas/images/rahunas.png \
-               templates/rahunas/rahunas.html \
-               templates/kkulogin \
-               templates/kkulogin/kkulogin.html \
-               templates/kkulogin/rahunas.css \
-               templates/kkulogin/images \
-               templates/kkulogin/images/tail01.gif \
-               templates/kkulogin/images/bg.gif \
-               templates/kkulogin/images/head01.gif \
-               templates/kkulogin/images/kku.gif \
-               loading.gif \
-               getmacaddr.php \
-               rahu_dictionary.php \
-               rahu_radius.class.php \
-               login.php \
-               Makefile.am \
-               locale \
-               locale/th_TH \
-               locale/th_TH/LC_MESSAGES \
-               locale/th_TH/LC_MESSAGES/messages.mo \
-               locale/th_TH/LC_MESSAGES/messages.po \
-               locale/messages.po \
-               .htaccess \
-               index.php \
-               header.php \
-               locale.php \
-               note.txt \
-               messages.php \
-               xmlrpc_service.php \
-               rahu_xmlrpc.class.php
 
-EXTRA_DIST = $(weblogin_DATA)
+install-data-local: install-weblogin
 
+install-weblogin:
+       cp -R * $(DESTDIR)$(datadir)/rahunas
+       rm -f $(DESTDIR)$(datadir)/rahunas/Makefile*
+       chmod 711 $(DESTDIR)$(datadir)/rahunas
+       find $(DESTDIR)$(datadir)/rahunas -type f -exec chmod 755 {} \;
+       find $(DESTDIR)$(datadir)/rahunas -type d -exec chmod 711 {} \;
+
+uninstall-local:
+       rm -rf $(DESTDIR)$(datadir)/rahunas