ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/www/Makefile
Revision: 1.12
Committed: Sat Sep 15 15:22:17 2007 UTC (16 years, 8 months ago) by pippijn
Branch: MAIN
Changes since 1.11: +2 -1 lines
Log Message:
reworked some of the website

File Contents

# Content
1 PERL = /usr/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 # don't do this at home, kids
11 CONVERTPARAMS = -strip -filter lanczos -unsharp 1x3+1+0.09 -geometry "300x240>" -sampling-factor 1x1 -interlace line -quality 70
12
13 %_tb.jpg: %.png
14 convert $< $(CONVERTPARAMS) $@
15
16 %_tb.jpg: %.jpg
17 convert $< $(CONVERTPARAMS) $@
18
19 all: build
20
21 build: $(thumbs)
22 rm -rf html
23 mkdir -p html/monsters
24 rsync -a extra/. html/.
25 $(PERL) generate
26 chmod -R u=rwX,go=rX html
27 ln -s /home/pippijn/code/crossfire/arch html/
28
29 clean:
30 rm -rf extra/sc/*_tb.jpg extra/tutscrs/*_tb.jpg