Aha, that ``+'' is superflous
[infodrom.org/lists.infodrom.org] / Makefile
1 hostname=$(shell hostname)
2
3 ifeq ($(hostname),finlandia)
4 DEST = $(HOME)/public_html/new/lists
5 TEST = $(HOME)/public_html/new/lists
6 else
7 ifeq ($(hostname),luonnotar)
8 DEST = /var/www/lists.infodrom.org
9 TEST = $(HOME)/luonnotar_html/new/lists
10 endif
11 endif
12
13 FILES = --exclude "CVS/" --exclude "*imgdot-1x1-transp-ffffff.gif" --exclude "*imgdot-1x1-transp.gif"
14 ifeq ($(hostname),luonnotar)
15 FILES+= --exclude stats/
16 endif
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+= --exclude "*"
21
22 build:
23         make -C src all
24
25 test:
26         test -d $(TEST) || mkdir -p $(TEST)
27         rsync -lptr $(FILES) src/ $(TEST)/
28 #       cd src && for f in *.html; do cp $$f $(TEST)/$$f; done
29
30 fix:
31
32 install: fix
33         test -d $(DEST) || mkdir -p $(DEST)
34         rsync -lptr $(FILES) src/ $(DEST)/
35         rsync src/index.php3 /var/www/lists.infodrom.org/index.php3
36         rsync src/stats/*.php3 /var/www/lists.infodrom.org/stats/
37
38 #       cd src && for f in *.html; do cp $$f $(DEST)/$$f; done
39 ifeq ($(hostname),finlandia)
40         -cp src/imgdot-1x1-transp-ffffff.gif $(DEST)/gifs/imgdot-1x1-transp.gif
41 endif
42
43 clean:
44         -rm -f `find -name '*~'` `find -name '.?*.swp'`
45         -make -C src clean
46         -make -C Styles clean
47
48 depend:
49         make -C src rdepend