X-Git-Url: http://git.nguyen.vg/gitweb/?p=tatoo.git;a=blobdiff_plain;f=myocamlbuild.ml;h=5ce02af533c6bb663649a58225053673b7d1042b;hp=4dbf6f6c8bf2a6490930e1d60f940a51b6d19c03;hb=ce09a30489dce8ac9e389c8c1525a34d1e02354e;hpb=743aa7b5b11a28c2b0e6fa719101fc37bd43ce6c diff --git a/myocamlbuild.ml b/myocamlbuild.ml index 4dbf6f6..5ce02af 100644 --- a/myocamlbuild.ml +++ b/myocamlbuild.ml @@ -26,10 +26,13 @@ let macro_flags = [ let () = dispatch begin function - | Before_rules -> - set_flags [["ocaml";"compile"]; ["ocaml";"ocamldep"] ] macro_flags; + | 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"]); + flag [ "ocaml"; "compile"; "htmltrace" ] (S[ A"-ppopt"; A"-DHTMLTRACE"]); + flag [ "ocaml"; "ocamldep"; "htmltrace" ] (S[ A"-ppopt"; A"-DHTMLTRACE"]); flag [ "ocaml"; "link"; "debug" ] (A"-g"); flag [ "ocaml"; "compile"; "profile"] (S[A"-ppopt"; A"-DPROFILE"]); flag [ "ocaml"; "compile"; "profile"; "native"] (A"-p"); @@ -38,7 +41,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"