Skip to content

Instantly share code, notes, and snippets.

@rgrinberg
Created July 7, 2016 02:25
Show Gist options
  • Save rgrinberg/f0555f6d1f59a410916335c7e5c4a707 to your computer and use it in GitHub Desktop.
Save rgrinberg/f0555f6d1f59a410916335c7e5c4a707 to your computer and use it in GitHub Desktop.
(* Look for the line that concerns the [.cmo] target, and echo a
modified version of this line, where the [.cmo] target is
replaced with [.ml] and [.mli] targets, and where the dependency
over the [.cmi] file is dropped.
In doing so, we assume that the user's [Makefile] supports
bytecode compilation, so that it makes sense to request [bar.cmo]
to be built, as opposed to [bar.cmx]. This is not optimal, but
will do. [camldep] exhibits the same behavior. *)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment