X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=js%2FMakefile;fp=js%2FMakefile;h=a5c163b11b746c2cbc073e117d11417878ece1e4;hb=859d4378c2e2a1ccc8028821a37eeaa43aaa23fb;hp=0000000000000000000000000000000000000000;hpb=e43bb104a7313dd696b8bb8aa3bafff94706a187;p=Rakka.git diff --git a/js/Makefile b/js/Makefile new file mode 100644 index 0000000..a5c163b --- /dev/null +++ b/js/Makefile @@ -0,0 +1,29 @@ +SOURCES = \ + jquery-1.2.1.js \ + $(NULL) + + +build: ../Rakka/Resource/JavaScript.hs + + +../Rakka/Resource/JavaScript.hs: $(SOURCES) yuicompressor.jar + cat $(SOURCES) > tmp.js + java -jar yuicompressor.jar --type js --charset UTF-8 -o tmp.packed.js --warn tmp.js + lucu-implant-file -o $@ -m Rakka.Resource.JavaScript -t text/javascript tmp.packed.js + rm tmp.js tmp.packed.js + + +jquery-%.js: + @echo "Error: $@ has to be placed on this directory." + @echo " See http://jquery.com/" + @exit 1 + + +clean: + rm -f ../Rakka/Resource/JavaScript.hs + + +yuicompressor.jar: + @echo "Error: yuicompressor.jar has to be placed on this directory." + @echo " See http://www.julienlecomte.net/yuicompressor/" + @exit 1