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