Document and link to the Infodrom Root CA in a way that search engines
[infodrom.org/luonnotar.infodrom.org] / Makefile
1 hostname=$(shell hostname)
2
3 ifeq ($(hostname),finlandia)
4 DEST = $(HOME)/public_html/new/luonnotar
5 TEST = $(HOME)/public_html/new/luonnotar
6 else
7 ifeq ($(hostname),luonnotar)
8 DEST = /var/www/luonnotar.infodrom.org
9 TEST = $(HOME)/luonnotar_html/new/luonnotar
10 endif
11 endif
12
13 FILES = --exclude "CVS/" --exclude "*imgdot-1x1-transp-ffffff.gif" --exclude "*imgdot-1x1-transp.gif" --include "*/"
14 FILES+= --include "*.html" --include "*.shtml" --include "*.php3"
15 FILES+= --include "*.png" --include "*.gif" --include "*.jpg"
16 FILES+= --exclude "*"
17
18 build:
19         make -C src all
20
21 test:
22         false
23         test -d $(TEST) || mkdir $(TEST)
24         rsync -lptr $(FILES) src/ $(TEST)/
25 #       cd src && for f in *.html; do cp $$f $(TEST)/$$f; done
26
27 fix:
28 #        for f in src/index.*.php3; do \
29 #          sed '1,/width="40"/ s/width="40"/width="250"/' < $$f > tmp; \
30 #          mv -f tmp $$f; \
31 #          sed '1,/width="40"/ s/width="40"/width="400"/' < $$f > tmp; \
32 #          mv -f tmp $$f; \
33 #        done
34
35 install: fix
36         test -d $(DEST) || mkdir $(DEST)
37         rsync -lptr $(FILES) src/ $(DEST)/
38 #       cd src && for f in *.html; do cp $$f $(DEST)/$$f; done
39
40 clean:
41         -rm -f `find -name '*~'` `find -name '.?*.swp'`
42         -make -C src clean
43         -make -C Styles clean
44
45 depend:
46         make -C src rdepend