caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Chet Murthy <murthy.chet@gmail.com>
To: caml-list@inria.fr
Subject: [Caml-list] oasis and foreign code
Date: Sun, 23 Jun 2013 13:36:16 -0700	[thread overview]
Message-ID: <1724814.3VdaulpOpP@groupon> (raw)
In-Reply-To: <5192DF14.4080409@riken.jp>


A while back, I had a problem with oasis, where I wanted to put an
oasis file in a subdirectory of some larger project, and wanted it to
be able to access files on a neighboring directory.

In that case, the project was "tutorial", the subdirectory was
"tutorial/ocaml", and the neighboring directory was
"tutorial/gen-ocaml".

It was suggested that if the oasis file were moved up one directory,
things would be much simpler.  Which is true.

But now, there's a different problem.  Suppose I move that file up.
Now there are -other- subdirectories, containing code related to the
project, that aren't for ocaml consumption.  And when I do make,
ocamlbuild complains:

SANITIZE: a total of 4 files that should probably not be in your source tree
  has been found. A script shell file
  "....../sanitize.sh" is being
  created. Check this script and run it to remove unwanted files or use other
  options (such as defining hygiene exceptions or using the -no-hygiene
  option).
IMPORTANT: I cannot work with leftover compiled files.
ERROR: Leftover object files:
  File pedion_types.o in gen-cpp has suffix .o
  File Pedion.o in gen-cpp has suffix .o
  File pedion_constants.o in gen-cpp has suffix .o
ERROR: Leftover object files:
  File PedionServer.o in pedion has suffix .o

Is there a way to tell oasis to ignore certain subdirectories (and
hence, to have it generate myocamlbuild files that ignore those
directories)?

I looked at the ocamlbuild tags documentation, and nothing stands out
as being suitable.

Thanks,
--chet--


  reply	other threads:[~2013-06-23 20:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-14  4:21 [Caml-list] oasis help: support for qtest in oasis Francois Berenger
2013-05-14 10:27 ` [Caml-list] " Sylvain Le Gall
2013-05-15  1:04   ` Francois Berenger
2013-06-23 20:36     ` Chet Murthy [this message]
2013-06-23 20:39       ` [Caml-list] oasis and foreign code Török Edwin

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=1724814.3VdaulpOpP@groupon \
    --to=murthy.chet@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).