(executables
  (names webgldemo)
  (libraries js_of_ocaml-lwt)
  (preprocess (pps js_of_ocaml-ppx)))

(rule
  (targets webgldemo.js)
  (action
    (run %{bin:js_of_ocaml} --noruntime %{lib:js_of_ocaml-compiler:runtime.js}
         --source-map %{dep:webgldemo.bc} -o %{targets} --pretty
         -I ./ --file %{dep:monkey.model})))

(alias
  (name default)
  (deps webgldemo.js index.html))
