New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
an ocamldep aware of files with other suffixes than .ml / .mli ? #4992
Comments
Comment author: @xclerc Could you be more specific about the intended behavior of an "-impl-suffix" flag? Notice that the "-intf-suffix" flag you are referring to replace the default ".mli" I the meantime, as you may already know, it is possible to overcome the problem |
Comment author: letouzey Hi xavier, Indeed, being able to allow new possible suffixes (such as ".ml4") The idea is just to enhance a bit the lookup of local modules needed Concerning -impl and -intf, to my understanding they are only of limited Best regards, Pierre PS: something surprised me when doing quick tests about this "-impl". echo "let x = 1" > a.ml4 With my ocaml 3.11.2 here, the output is a.cmo: Doesn't that sound like a bug, or am I missing something ? |
Comment author: @xclerc About your post-scriptum: this is neither a bug, nor you are missing something. This reinforces the usefulness of the switch you are requesting. |
Comment author: @xclerc Two command-line options have been added ('-ml-synonym' and '-mli-synonym') |
Original bug ID: 4992
Reporter: letouzey
Assigned to: @xclerc
Status: closed (set by @xavierleroy on 2012-09-25T18:06:17Z)
Resolution: fixed
Priority: normal
Severity: feature
Version: 3.11.2
Fixed in version: 3.12.1+dev
Category: ~DO NOT USE (was: OCaml general)
Has duplicate: #8076
Monitored by: @glondu
Bug description
Hi
In the same spirit as the -intf-suffix of ocamlc/ocamlopt, it would be
nice to have a way to tell ocamldep that the files with some particular
suffix (say, .ml4 or .mlp) are also implementations, in addition to the
usual .ml files.
In the Makefile of Coq, since some macro-generated .ml are not easy to
produce initially out of our .ml4, we use now ocamldep -modules
to get just the unit names of the dependencies, and then use an ad-hoc
wrapper around ocamldep to locate the files (.ml or .ml4) corresponding
to these units. It would be nice to be able to do that directly with
ocamldep
Best regards,
Pierre Letouzey
The text was updated successfully, but these errors were encountered: