Add link to icinga
[infodrom.org/service.infodrom.org] / Makefile
index 46c82d9..30f0dc8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,29 +5,37 @@ DEST = $(HOME)/public_html/new/service
 else
 ifeq ($(hostname),luonnotar)
 DEST = /var/www/service.infodrom.org
+else
+ifeq ($(hostname),kyllikki)
+DEST = $(HOME)/public_html/new/service
+endif
 endif
 endif
 
 FILES = --exclude "CVS/" --exclude "*imgdot-1x1-transp.gif" --include "*/"
-FILES+= --include "*.jpg" --include "*.html" --include "*.shtml" --include "*.php3" --include "*.gif"
-FILES+= --include "*.png"
+FILES+= --include "*.html" --include "*.shtml" --include "*.php"
+FILES+= --include "*.png" --include "*.gif" --include "*.jpg"
+FILES+= --include "*.js"
+FILES+= --include infodrom.css
+FILES+= --include favicon.ico
 ifeq ($(hostname),luonnotar)
 FILES+= --include .htaccess
+FILES+= --exclude Infodrom/webstats/
 endif
 FILES+= --exclude "*"
 
 build:
-       cd src && make all
+       make -C src all
 
 ifeq ($(hostname),finlandia)
 test:
-       test -d $(TEST) || mkdir -p $(DEST)
+       test -d $(DEST) || mkdir -p $(DEST)
        rsync -lptr $(FILES) src/ $(DEST)/
 #      cd src && for f in *.html; do cp $$f $(TEST)/$$f; done
 endif
 
 fix:
-#       for f in src/index.*.php3; do \
+#       for f in src/index.*.php; do \
 #         sed '1,/width="40"/ s/width="40"/width="250"/' < $$f > tmp; \
 #         mv -f tmp $$f; \
 #         sed '1,/width="40"/ s/width="40"/width="400"/' < $$f > tmp; \
@@ -38,11 +46,14 @@ install: fix
        test -d $(DEST) || mkdir -p $(DEST)
        rsync -lptr $(FILES) src/ $(DEST)/
 #      cd src && for f in *.html; do cp $$f $(DEST)/$$f; done
+       test -L /var/www/service.infodrom.org/Infodrom/stats/mailgraph.cgi || \
+           ln -s /usr/lib/cgi-bin/mailgraph.cgi \
+               /var/www/service.infodrom.org/Infodrom/stats/mailgraph.cgi
 
 clean:
        -rm -f `find -name '*~'` `find -name '.?*.swp'`
-       -cd src && make clean
-       -cd Styles && make clean
+       -make -C src clean
+       -make -C Styles clean
 
 depend:
-       cd src && make rdepend
+       make -C src rdepend