caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Ashish Agarwal <agarwal1975@gmail.com>
To: Robert Muller <robert.muller2@gmail.com>
Cc: Ocaml Mailing List <caml-list@inria.fr>
Subject: Re: [Caml-list] .opam structure question
Date: Wed, 9 Sep 2015 16:26:02 -0400	[thread overview]
Message-ID: <CAMu2m2L+UHAqD8sjFLtzBP0RoTW1HLSo6fHEGc4OP8TJFcqQkw@mail.gmail.com> (raw)
In-Reply-To: <CAKmYin=cQOtWCim03KAKqT+6+R67z18=U=yYTi0JbW=3Eze+rQ@mail.gmail.com>

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

> But this same hack did not work on the 4.02.3 system.

That probably just means you didn't install OCamlMakefile in that switch.

You can get paths to library folders using opam itself, e.g.

$ opam config var ocaml-makefile:lib
/home/alice/.opam/4.02.1/lib/ocaml-makefile

You can see the list of all variables available by running `opam config
list`. In the output you see, you can replace PKG with any opam package
name.


On Wed, Sep 9, 2015 at 4:06 PM, Robert Muller <robert.muller2@gmail.com>
wrote:

> Greetings, probably the wrong forum for such a naive question but
> hopefully someone can answer it in a couple of keystrokes! I am using OCaml
> makefiles across slightly skewed versions (4.02.1 and 4.02.3). In my local
> Makefile, I'm specifying an explicit path to OCamlMakefile:
>
> ~/.opam/4.02.1/lib/ocaml-makefile/OCamlMakefile:
>
> that includes the release version 4.02.1. But I would prefer for this same
> Makefile to work on version 4.02.3 too.  It seems really wrong to be
> specifying an explicit version number in a path. On my 4.02.1 version, I
> was able to replace the version number by "system". This seems to work ---
> there is a /lib/ocaml-makefile/ folder there.  But this same hack did not
> work on the 4.02.3 system.
>
> So my question is, what is the recommended (i.e., modular and portable)
> way to address an OPAM resource such as OCamlMakefile? I suppose I
> shouldn't have to know much of anything about the structure of the .opam
> directory. (?)
>
> Thanks!
> Bob Muller
>

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

      reply	other threads:[~2015-09-09 20:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-09 20:06 Robert Muller
2015-09-09 20:26 ` Ashish Agarwal [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=CAMu2m2L+UHAqD8sjFLtzBP0RoTW1HLSo6fHEGc4OP8TJFcqQkw@mail.gmail.com \
    --to=agarwal1975@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=robert.muller2@gmail.com \
    /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).