Commits

camlspotter committed 0af671f Merge
  • Participants
  • Parent commits a513479, ac35dae

Comments (0)

Files changed (1)

 # Additional implicit rules by file extensions
 
 # annot, spot, spit files
-%.annot %.spot: %.ml %.cmi
+%.annot %.spot %.cmt: %.ml %.cmi
 	$(OCamlC) -c $<
 
-%.spit: %.mli 
+%.spit %.cmti: %.mli 
 	$(OCamlC) -c $<
 
 # Packages
 #
 # .. note:: These functions introduce implicit rules: *you may need to export it, if you use this function in a local context.*
 OCamlRequire(files) =
-    %.cmx %.cmo %.cmi %.cma %.cmxa %.annot %.spot %.spit : $(files)
+    %.cmx %.cmo %.cmi %.cma %.cmxa %.annot %.spot %.spit %.cmt %.cmti: $(files)
     export
 
 #|Add dependencies of OCaml compiled files (cmx, cmo, etc.) over $(packages).
 OCamlRequirePackages(packages) =
     required_packs = $(OMyManagedPackages $(packages))
     if $(defined INSTALLED)
-      %.cmx %.cmo %.cmi %.cma %.cmxa %.annot %.spot %.spit : $(Installed $(required_packs))
+      %.cmx %.cmo %.cmi %.cma %.cmxa %.annot %.spot %.spit %.cmt %.cmti: $(Installed $(required_packs))
       export
     export
 
 
    if $(OCAML_SPOT)
        if $(BYTE_ENABLED)
-          BYTE_TARGETS += $(file $(name).spot)
+          BYTE_TARGETS += $(file $(name).spot) $(file $(name).cmt)
           export
        else
-          NATIVE_TARGETS += $(file $(name).spot)
+          NATIVE_TARGETS += $(file $(name).spot) $(file $(name).cmt)
           export
        export
 
   targets[]=META $(glob i, *.mli) $(library_name).cmi $(library_name).cmo $(library_name).cmx $(library_name).cma $(library_name).cmxa $(library_name).o $(library_name).a $(CSTUBLIBRARIES) $(MyOCamlPackageExtras)
 
   if $(OCAML_SPOT)
-    targets[]+= $(library_name).spot
+    targets[]+= $(library_name).spot $(library_name).cmt
 
   if $(defined INSTALLED)
     $(Installed $(library_name)): $(targets)