Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (12 sloc) 435 Bytes
all: out.js
out.js: *.ml
ocamlbuild -no-links -use-ocamlfind -pkgs js_of_ocaml,js_of_ocaml.syntax,containers -syntax camlp4o main.byte
js_of_ocaml --opt 3 _build/main.byte -o out.js
#js_of_ocaml --opt 1 --enable pretty --sourcemap js/lib.js _build/main.byte -o out.js
minify: out.js
ls -lah out.js
java -jar compiler.jar --js out.js --js_output_file out-min.js
mv out-min.js out.js
ls -lah out.js
clean:
ocamlbuild -clean