]> gitweb @ CieloNegro.org - Rakka.git/blob - js/Makefile
preparation for javascripts
[Rakka.git] / js / Makefile
1 SOURCES = \
2         jquery-1.2.1.js \
3         $(NULL)
4
5
6 build: ../Rakka/Resource/JavaScript.hs
7
8
9 ../Rakka/Resource/JavaScript.hs: $(SOURCES) yuicompressor.jar
10         cat $(SOURCES) > tmp.js
11         java -jar yuicompressor.jar --type js --charset UTF-8 -o tmp.packed.js --warn tmp.js
12         lucu-implant-file -o $@ -m Rakka.Resource.JavaScript -t text/javascript tmp.packed.js
13         rm tmp.js tmp.packed.js
14
15
16 jquery-%.js:
17         @echo "Error: $@ has to be placed on this directory."
18         @echo "       See http://jquery.com/"
19         @exit 1
20
21
22 clean:
23         rm -f ../Rakka/Resource/JavaScript.hs
24
25
26 yuicompressor.jar:
27         @echo "Error: yuicompressor.jar has to be placed on this directory."
28         @echo "       See http://www.julienlecomte.net/yuicompressor/"
29         @exit 1