X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2FmatitamakeLib.ml;h=f811c84e2ecd56d633a6430d01ae933f62024b6e;hb=d94fe51e1c4c5ae9a71032f1072f2dfb2d29faf6;hp=471f26970f403f6470d6c61c59c5d7519b0e44c1;hpb=fc313762a22ae8a5a5baed71dcd42bc52defc0e9;p=helm.git diff --git a/matita/matitamakeLib.ml b/matita/matitamakeLib.ml index 471f26970..f811c84e2 100644 --- a/matita/matitamakeLib.ml +++ b/matita/matitamakeLib.ml @@ -75,7 +75,12 @@ let initialize () = match root with | None -> () | Some root -> - developments := {root = root ; name = name} :: !developments) + developments := {root = root ; name = name} :: !developments; + let inc = Helm_registry.get_list + Helm_registry.string "matita.includes" in + Helm_registry.set_list Helm_registry.of_string + ~key:"matita.includes" ~value:(inc @ [root]) + ) l (* finds the makefile path for development devel *) @@ -96,7 +101,7 @@ let development_for_dir dir = false else let pref = String.sub d2 0 len1 in - pref = d1 && d2.[len1] = '/' + pref = d1 && (len1 = len2 || d2.[len1] = '/') in try Some (List.find (fun d -> is_prefix_of d.root dir) !developments)