]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matitac.ml
irediced usage of matita.includes, that is now set by
[helm.git] / matita / matitac.ml
index 968bdf505700a2c63934259493cbaa878b2bf960..199b041576550d2a1b952dd96e5ef2112087238d 100644 (file)
@@ -101,11 +101,9 @@ let main_compiler () =
          HLog.error ("Too many roots found, move into one and retry: "^
            String.concat ", " roots);exit 1);
     | [hd] -> 
-      let root, buri, file = Librarian.baseuri_of_script hd in
-      Make.load_deps_file (root ^ "/depends"),
-      let target = HExtlib.chop_prefix (root^"/") file in
+      let root, buri, file, target = Librarian.baseuri_of_script hd in
       HLog.debug ("Compiling target '" ^ target ^ "' with base uri '"^buri^"'");
-      [target]
+      Make.load_deps_file (root ^ "/depends"), [target]
     | _ -> HLog.error "Only one target (or none) can be specified.";exit 1
   in
   (* must be called after init since args are set by cmdline parsing *)