From: Conglun Yao <yaoconglun@gmail.com>
To: peng.zang@gmail.com
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] How to compile project with sub directories (using OcamlMakefile)
Date: Wed, 11 Mar 2009 13:46:13 +0000 [thread overview]
Message-ID: <f7b50d2a0903110646s576e3bf4gbdbeaaf650112da4@mail.gmail.com> (raw)
In-Reply-To: <200903081050.32597.peng.zang@gmail.com>
Thanks, peng, it works.
Conglun
On Sun, Mar 8, 2009 at 2:50 PM, Peng Zang <peng.zang@gmail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Here is something similar from one of my projects. Although each subproject
> is not in a subdirectory, it should be trivial to modify by changing the SRC
> variables.
>
> Note that I made a small patch to OCamlMakefile to do this.
>
> Peng
>
> On Saturday 07 March 2009 07:36:45 pm Conglun Yao wrote:
>> 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
>>
>> _______________________________________________
>> Caml-list mailing list. Subscription management:
>> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
>> Archives: http://caml.inria.fr
>> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
>> Bug reports: http://caml.inria.fr/bin/caml-bugs
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.7 (GNU/Linux)
>
> iD8DBQFJs9s4fIRcEFL/JewRAs8QAJ4q26l1OqbrqP9dTe7OiCRK83i98gCgsrBt
> fy3/GWmabMRmB+WI8bvkNQQ=
> =bsCU
> -----END PGP SIGNATURE-----
>
prev parent reply other threads:[~2009-03-11 13:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-08 0:36 Conglun Yao
2009-03-08 14:50 ` [Caml-list] " Peng Zang
2009-03-11 13:46 ` Conglun Yao [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=f7b50d2a0903110646s576e3bf4gbdbeaaf650112da4@mail.gmail.com \
--to=yaoconglun@gmail.com \
--cc=caml-list@yquem.inria.fr \
--cc=peng.zang@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).