From: Pietro Abate <Pietro.Abate@pps.univ-paris-diderot.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] pre-process myocamlbuild.ml with ocamlbuild ...
Date: Tue, 30 Jun 2015 22:12:02 +0200 [thread overview]
Message-ID: <20150630201202.GA23568@pps.univ-paris-diderot.fr> (raw)
In-Reply-To: <20150630110342.50001508@kiwi.local.tld>
On 30/06/15 11:03, ygrek wrote:
> Probably you are not calling ocamlbuild directly, but through make or shell script, so just put
> preprocessing step there to generate real myocamlbuild.ml
You are suggesting something along these lines :
-------------- Makefile snippet
ocamlbuild:
mkdir -p _build
cp myocamlbuild.ml _build
cd _build ; /usr/bin/ocamlopt.opt unix.cmxa -I /usr/lib/ocaml/ocamlbuild /usr/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa -pp "cppo -D OCAML4022" myocamlbuild.ml /usr/lib/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
cd ..
OCAMLBUILD=_build/myocamlbuild
all: ocamlbuild
everything else ...
------------- Makefile snippet
Yes, your solution works, but it's extremely hackish !
I was hoping for something more clean. Is it possible to
accomplish this with ocamlbuild ?
p
next prev parent reply other threads:[~2015-06-30 20:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-30 17:08 Pietro Abate
2015-06-30 18:03 ` ygrek
2015-06-30 20:12 ` Pietro Abate [this message]
2015-06-30 20:20 ` ygrek
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=20150630201202.GA23568@pps.univ-paris-diderot.fr \
--to=pietro.abate@pps.univ-paris-diderot.fr \
--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