X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=myocamlbuild.ml;h=3b3e516241494244cd78542b6ab72a2da5584cc3;hb=35d227e5bf1f478e7b9de4448fe0527e4dd77ec5;hp=5d04a11a8aef4ba55a883c92a0da6141c00c0d2d;hpb=18482b8b36fbdc5b904cf44e106075af39eef912;p=tatoo.git 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;; + )