Commits

james woodyatt committed 4366182

Install the .cmi and .cmx files with OCaml findlib packages.

Comments (0)

Files changed (1)

Conjury/lang/OCaml.om

         mli=$(module-file-by-extension .mli, $(this.MODULES))
         mll=$(module-file-by-extension .mll, $(this.MODULES))
         mly=$(module-file-by-extension .mly, $(this.MODULES))
-        cmi=$(module-file-by-extension .cmi, $(this.MODULES))
-        cmi=$(file $(addprefix $(cdir)/, $(cmi)))
-        cmx=$(module-file-by-extension .cmx, $(this.MODULES))
-        cmx=$(file $(addprefix $(cdir)/, $(cmx)))
+        cm=$(removesuffix $(mli) $(mll) $(mly))
+        cmi=$(file $(add-wrapper $(cdir)/, .cmi, $(cm)))
+        cmx=$(file $(add-wrapper $(cdir)/, .cmx, $(cm)))
         libs=$(this.NAME).cma $(this.NAME).cmxa
         export libs
         if $(this.CFILES)