1 hostname=$(shell hostname)
3 ifeq ($(hostname),finlandia)
4 DEST = $(HOME)/public_html/new/infodrom
5 TEST = $(HOME)/public_html/new/infodrom
7 ifeq ($(hostname),luonnotar)
8 DEST = /var/www/www.infodrom.org
9 TEST = $(HOME)/luonnotar_html/new/infodrom
13 FILES = --exclude "CVS/" --exclude "*imgdot-1x1-transp-ffffff.gif" --exclude "*imgdot-1x1-transp.gif"
14 ifeq ($(hostname),luonnotar)
15 FILES+= --exclude Mail-Archive/ --exclude Infodrom/mailstats/
17 FILES+= --include "*/"
18 FILES+= --include "*.html" --include "*.shtml" --include "*.php3" --include "*.txt" --include "*.ps"
19 FILES+= --include "*.png" --include "*.gif" --include "*.jpg"
20 FILES+= --include "Debian/support/debian.de/channel.xml"
21 FILES+= --include "projects/gerstenstaft/quote.txt"
22 FILES+= --include "*.css"
23 FILES+= --include "favicon.ico"
30 test -d $(TEST) || mkdir -p $(TEST)
31 rsync -lptr $(FILES) src/ $(TEST)/
32 # cd src && for f in *.html; do cp $$f $(TEST)/$$f; done
37 test -d $(DEST) || mkdir -p $(DEST)
38 rsync -lptr $(FILES) src/ $(DEST)/
39 rsync src/Mail-Archive/index.php3 /var/www/www.infodrom.org/Mail-Archive/index.php3
40 rsync src/Infodrom/mailstats/index.php3 /var/www/www.infodrom.org/Infodrom/mailstats/index.php3
42 # cd src && for f in *.html; do cp $$f $(DEST)/$$f; done
43 ifeq ($(hostname),finlandia)
44 -cp src/imgdot-1x1-transp-ffffff.gif $(DEST)/gifs/imgdot-1x1-transp.gif
48 -rm -f `find -name '*~'` `find -name '.?*.swp'`