1 |
PERL = /opt/bin/perl |
2 |
|
3 |
thumbs = $(patsubst %_tb_tb.jpg,%_tb.jpg,\ |
4 |
$(patsubst %.jpg,%_tb.jpg,\ |
5 |
$(wildcard extra/sc/*.jpg)\ |
6 |
$(patsubst %.png,%.jpg,$(wildcard extra/sc/*.png) $(wildcard extra/tutscrs/*.png))\ |
7 |
)\ |
8 |
) |
9 |
|
10 |
.PHONY: .force |
11 |
|
12 |
# don't do this at home, kids |
13 |
CONVERTPARAMS = -strip -filter lanczos -unsharp 1x3+1+0.09 -geometry "300x240>" -sampling-factor 1x1 -interlace line -quality 70 |
14 |
|
15 |
%_tb.jpg: %.png |
16 |
convert $< $(CONVERTPARAMS) $@ |
17 |
|
18 |
%_tb.jpg: %.jpg |
19 |
convert $< $(CONVERTPARAMS) $@ |
20 |
|
21 |
all: build |
22 |
|
23 |
build: $(thumbs) .force |
24 |
rm -rf html |
25 |
mkdir -p html/monsters |
26 |
rsync -a extra/. html/. |
27 |
$(PERL) generate |
28 |
chmod -R u=rwX,go=rX html |
29 |
#ln -s /var/www/www.deliantra.net/highscore.json html/ |
30 |
#ln -s /var/www/www.deliantra.net/recent.json html/ |
31 |
#ln -s /var/www/www.deliantra.net/exp_table.json html/ |
32 |
ln -s /fs/rijk/var/deliantra-server/usercount html/usercount.crossfire.schmorp.de |
33 |
ln -s /fs/rijk/var/deliantra-server/userlisting.html html/userlist.crossfire.schmorp.de.html |
34 |
#ln -s /home/pippijn/code/crossfire/arch html/ |
35 |
|
36 |
clean: |
37 |
rm -rf extra/sc/*_tb.jpg extra/tutscrs/*_tb.jpg |