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