caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Kenneth Adam Miller <kennethadammiller@gmail.com>
To: caml users <caml-list@inria.fr>
Subject: [Caml-list] OCamlMakefile troubles - change target in subproject
Date: Wed, 26 Nov 2014 16:13:10 -0500	[thread overview]
Message-ID: <CAK7rcp80Mdb0mhSsuXW-zrnvshN8njw_+v5OW_c3dfnTpmipKQ@mail.gmail.com> (raw)

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

This is somewhat of a crosspost, so I suppose I'll go ahead and link this,
but I'm having trouble figuring out how to get make to produce the right
command when I'm using ocamlmakefile

http://stackoverflow.com/questions/27156419/how-to-use-ocamlmakefile-to-generate-a-library-consumed-by-subproject

basically, I want to define a subproject using make's "define", and I want
that to be compiled as a library, a byte code library if the target is bc
and a native code library if the target is nc.

With ocamlmakefile, if you want to make a subproject you use a define, as
in the link; all I want to do is change the target:

make nc => make ncl
make bc => make bcl

*just* within the confines of the subproject. Meaning, some subprojects
should be compiled as libraries, others just as normal binaries in the
makefile, in order that it doesn't have to be attempted multiple times. How
do I achieve that with subprojects?

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

                 reply	other threads:[~2014-11-26 21:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=CAK7rcp80Mdb0mhSsuXW-zrnvshN8njw_+v5OW_c3dfnTpmipKQ@mail.gmail.com \
    --to=kennethadammiller@gmail.com \
    --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).