X-Git-Url: http://git.nguyen.vg/gitweb/?p=tatoo.git;a=blobdiff_plain;f=myocamlbuild.ml;h=3b3e516241494244cd78542b6ab72a2da5584cc3;hp=5d04a11a8aef4ba55a883c92a0da6141c00c0d2d;hb=122fdb64ba001d728d0d94245753b1d7d31cc98d;hpb=1442cbcfa262a16eac31092c0da2e59805deeaa2 diff --git a/myocamlbuild.ml b/myocamlbuild.ml index 5d04a11..3b3e516 100644 --- a/myocamlbuild.ml +++ b/myocamlbuild.ml @@ -1,14 +1,16 @@ -open Ocamlbuild_plugin ;; +open Ocamlbuild_plugin +let includes = + let open Pathname in + let d = Array.to_list (readdir "include") in + List.map (concat "include") d -let includes = [ "include/utils.ml"; "include/utils32.ml"; "include/utils64.ml"; "include/debug.ml" ] let () = - dispatch begin function + dispatch (function | After_rules -> dep ["ocaml";"compile";] includes; dep ["ocaml";"ocamldep"; ] includes; pflag ["ocaml";"compile";] "ppopt" (fun s -> S [A"-ppopt"; A (s)]); pflag ["ocaml";"ocamldep";] "ppopt" (fun s -> S [A"-ppopt"; A (s)]); | _ -> () - -end;; + )