Commit 77ce465b authored by Stephane Glondu's avatar Stephane Glondu
Browse files

Add a rule for js_of_ocaml

parent a34af7a9
......@@ -16,6 +16,8 @@ let atdgen_action opts env build =
let d = Pathname.dirname x and f = Pathname.basename x in
Cmd (S [A"cd"; P d; Sh"&&"; A"atdgen"; S opts; P f])
let js_of_ocaml env build =
Cmd (S [A"js_of_ocaml"; P (env "%.byte")])
let () = dispatch & function
......@@ -41,6 +43,9 @@ let () = dispatch & function
(atdgen_action [A"-t"]);
rule "%.atd -> & %_j.mli" ~deps:["%.atd"] ~prods:[""; "%_j.mli"]
(atdgen_action [A"-j"; A"-j-std"]);
rule "%.byte -> %.js" ~deps:["%.byte"] ~prods:["%.js"] js_of_ocaml;
rule " -> %.html" ~deps:[""] ~prods:["%.html"]
(fun env build ->
Cmd (S [A"markdown"; P (env ""); Sh">"; P (env "%.html")])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment