Commits

camlspotter committed ac35dae

cmt install

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
 
   ## clean
   AutoClean()
   clean:
-	rm -f $(library_name).spot
+	rm -f $(library_name).spot $(library_name).cmt
 
   ## install
 
   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)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.