caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Conglun Yao <yaoconglun@gmail.com>
To: caml-list@yquem.inria.fr
Subject: How to compile project with sub directories (using OcamlMakefile)
Date: Sun, 8 Mar 2009 00:36:45 +0000	[thread overview]
Message-ID: <f7b50d2a0903071636o11bcc512kcf7922f62a4db83e@mail.gmail.com> (raw)

Dear camlers,

I've been stuck by this problem for few days, and can't find the
answer.  I built a project with several sub directories, like lib01,
lib02 and lib03, and create a Makefile in each directory.

In the top level, I have a Makefile like :

all:
	@cd lib01 && make all
	@cd lib02&& make all
	@cd lib03 && make all

Makefile in lib01 .. lib03:

OCAMLMAKEFILE = ../OCamlMakefile

SOURCES  = ..... library files

RESULT = lib01

.PHONY: all
all:     bcl ncl

include $(OCAMLMAKEFILE)

Using these Makefiles, lib01.cma, lib02.cma, lib03.cma are created.

Now I face the problem, how to install these *.cma using
OcamlMakefile, and is it possible to create a single package including
all these cmas.

Any suggestion will be appreciated!

Conglun


             reply	other threads:[~2009-03-08  0:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-08  0:36 Conglun Yao [this message]
2009-03-08 14:50 ` [Caml-list] " Peng Zang
2009-03-11 13:46   ` Conglun Yao

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=f7b50d2a0903071636o11bcc512kcf7922f62a4db83e@mail.gmail.com \
    --to=yaoconglun@gmail.com \
    --cc=caml-list@yquem.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).