ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/www/Makefile
Revision: 1.23
Committed: Mon Apr 26 14:33:06 2010 UTC (14 years, 1 month ago) by root
Branch: MAIN
Changes since 1.22: +1 -1 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.16 PERL = /opt/bin/perl
2 root 1.2
3 root 1.8 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 root 1.3
10 root 1.15 .PHONY: .force
11    
12 root 1.11 # 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 root 1.7 %_tb.jpg: %.png
16 root 1.11 convert $< $(CONVERTPARAMS) $@
17 root 1.3
18 root 1.7 %_tb.jpg: %.jpg
19 root 1.11 convert $< $(CONVERTPARAMS) $@
20 root 1.3
21 root 1.2 all: build
22    
23 root 1.15 build: $(thumbs) .force
24 root 1.2 rm -rf html
25 pippijn 1.12 mkdir -p html/monsters
26 root 1.2 rsync -a extra/. html/.
27     $(PERL) generate
28     chmod -R u=rwX,go=rX html
29 root 1.23 #ln -s /var/www/www.deliantra.net/highscore.json html/
30 root 1.22 #ln -s /var/www/www.deliantra.net/recent.json html/
31 root 1.20 ln -s /var/www/www.deliantra.net/exp_table.json html/
32 root 1.22 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 root 1.19 #ln -s /home/pippijn/code/crossfire/arch html/
35 pippijn 1.1
36     clean:
37 root 1.8 rm -rf extra/sc/*_tb.jpg extra/tutscrs/*_tb.jpg