projects
/
tatoo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'ocamlbuild-port' of ssh://git.nguyen.vg/tatoo into ocamlbuild-port
[tatoo.git]
/
myocamlbuild.ml
diff --git
a/myocamlbuild.ml
b/myocamlbuild.ml
index
7f86523
..
dbc0a45
100644
(file)
--- a/
myocamlbuild.ml
+++ b/
myocamlbuild.ml
@@
-1,6
+1,9
@@
-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 ml_str_rule () =
rule ".ml.str" ~dep:"%.ml.str" ~prod:"%.ml"
let ml_str_rule () =
rule ".ml.str" ~dep:"%.ml.str" ~prod:"%.ml"
@@
-14,7
+17,7
@@
let ml_str_rule () =
Cmd ( Sh cmd ))
let () =
Cmd ( Sh cmd ))
let () =
- dispatch
begin
function
+ dispatch
(
function
| After_rules ->
dep ["ocaml";"compile";] includes;
dep ["ocaml";"ocamldep"; ] includes;
| After_rules ->
dep ["ocaml";"compile";] includes;
dep ["ocaml";"ocamldep"; ] includes;
@@
-22,5
+25,4
@@
let () =
pflag ["ocaml";"ocamldep";] "ppopt" (fun s -> S [A"-ppopt"; A (s)]);
ml_str_rule ()
| _ -> ()
pflag ["ocaml";"ocamldep";] "ppopt" (fun s -> S [A"-ppopt"; A (s)]);
ml_str_rule ()
| _ -> ()
-
-end;;
+ )