caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] A way to have certain file suffixes treated as .ml/.mli with ocamlbuild.
@ 2015-08-02 19:45 Jordan W
  2015-08-02 20:31 ` Gabriel Scherer
  0 siblings, 1 reply; 2+ messages in thread
From: Jordan W @ 2015-08-02 19:45 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 872 bytes --]

Hello,

Is there a way to have certain files, with particular suffixes, treated as
.ml/.mli respectively with ocamlbuild? I understand that ocaml compiler
itself supports -intf/-impl/-intf-suffix, but it's not clear that
ocamlbuild will allow use of these.

Specifically, here is how all of the ocamlc/ocamldep/* suite of commands
should be effected by the file extension:

*/*.xyz

ocamlc/ocamldep  -pp convertXyzProgram -impl theFile.xyz -intf-suffix xyzi

*/*.xyzi

ocamlc/ocamldep -pp convertXyzProgram -intf theFile.xyzi


Is there a way to do this with _tags or possibly resorting to a
myocamlbuild.ml? I would be satisfied with a myocamlbuild rule that *moves*
the .xyz to a .ml, but in that case errors are reported in terms of the
generated .ml and not the original .xyz, which is unfortunate. I know the
ocaml compler supports this, but does ocamlbuild?

Jordan

[-- Attachment #2: Type: text/html, Size: 1133 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-08-02 20:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-02 19:45 [Caml-list] A way to have certain file suffixes treated as .ml/.mli with ocamlbuild Jordan W
2015-08-02 20:31 ` Gabriel Scherer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).