]> gitweb @ CieloNegro.org - Rakka.git/blob - js/Makefile
redirection
[Rakka.git] / js / Makefile
1 JQUERY_SOURCE = jquery-1.2.1.js
2 COMPRESSOR    = yuicompressor-2.2.4.jar
3
4 SOURCES = \
5         $(JQUERY_SOURCE) \
6         jquery-dom.js \
7         base.js \
8         editPage.js \
9         redirection.js \
10         screen.js \
11         $(NULL)
12
13 COMPRESS = java -jar $(COMPRESSOR) --type js --charset UTF-8
14
15
16 build: ../Rakka/Resource/JavaScript.hs
17
18
19 packed.js: $(SOURCES) $(COMPRESSOR)
20 #       cat $(SOURCES) > $@
21         cat $(SOURCES) | $(COMPRESS) --warn -o $@
22
23
24 ../Rakka/Resource/JavaScript.hs: packed.js
25         lucu-implant-file -o $@ -m Rakka.Resource.JavaScript -t text/javascript packed.js
26
27
28 clean:
29         rm -f ../Rakka/Resource/JavaScript.hs packed.js $(JQUERY_PACKED)
30
31
32 yuicompressor.jar:
33         @echo "Error: yuicompressor.jar has to be placed on this directory."
34         @echo "       See http://www.julienlecomte.net/yuicompressor/"
35         @exit 1