X-Git-Url: http://git.nguyen.vg/gitweb/?p=tatoo.git;a=blobdiff_plain;f=myocamlbuild.ml;h=0ea5ff0097df2a0e8d24edecff73593f1e46cd77;hp=4dbf6f6c8bf2a6490930e1d60f940a51b6d19c03;hb=20538a1c949f89745b73f89f9d0c146dc42454a2;hpb=93fe48302302aca5e7ff091e346d0e6dd75beb2d diff --git a/myocamlbuild.ml b/myocamlbuild.ml index 4dbf6f6..0ea5ff0 100644 --- a/myocamlbuild.ml +++ b/myocamlbuild.ml @@ -26,7 +26,8 @@ let macro_flags = [ let () = dispatch begin function - | Before_rules -> + | Before_rules -> () + | After_rules -> set_flags [["ocaml";"compile"]; ["ocaml";"ocamldep"] ] macro_flags; pflag [ "ocaml"; "compile" ] "warning" (fun s -> (S[ A"-w"; A s])); flag [ "ocaml"; "compile"; "debug" ] (S[ A"-g"; A"-ppopt"; A"-DDEBUG"]); @@ -38,7 +39,6 @@ let () = dispatch begin pflag [ "ocaml"; "compile" ] "unsafe" (fun s -> (if s = "true" then S[A"-ppopt";A "-unsafe"] else N)); - | After_rules -> rule "Java compilation" ~prod:"%.class" ~dep:"%.java"