caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: ygrek <ygrek@autistici.org>
To: caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] How to generate source files with ocamlbuild
Date: Sat, 9 Sep 2017 17:06:28 +0100	[thread overview]
Message-ID: <20170909170628.31bac90a@kiwi.local.tld> (raw)
In-Reply-To: <6543AF55-7E89-462E-8AF9-DFF3091C1599@gmx.net>

On Fri, 8 Sep 2017 21:02:53 -0500
Helmut Brandl <helmut.brandl@gmx.net> wrote:

> Now I want to use coq to verify the critical part of my project and generate ocaml source files with coq. Is there a simple way to tell ocamlbuild that it has to use coq and some ‘*.v’ files to generate ocaml source files before calling the compiler?

Yes, ocamlbuild can be extended to add build rules, see https://ocaml.org/learn/tutorials/ocamlbuild/Making_plugins.html
Example: https://github.com/ygrek/extunix/blob/master/myocamlbuild.ml#L920

-- 

      reply	other threads:[~2017-09-09 16:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-09  2:02 Helmut Brandl
2017-09-09 16:06 ` ygrek [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170909170628.31bac90a@kiwi.local.tld \
    --to=ygrek@autistici.org \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).