From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.7 required=5.0 tests=AWL,DNS_FROM_RFC_POST, SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 1EA5EBBAF for ; Wed, 11 Mar 2009 14:46:14 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArsBAHhdt0lIDtyakWdsb2JhbACMc4d9PwEBAQEJCwoHEQOqSIEGj3gBAwEDhAoG X-IronPort-AV: E=Sophos;i="4.38,342,1233529200"; d="scan'208";a="22388258" Received: from fg-out-1718.google.com ([72.14.220.154]) by mail2-smtp-roc.national.inria.fr with ESMTP; 11 Mar 2009 14:46:13 +0100 Received: by fg-out-1718.google.com with SMTP id e21so2227fga.43 for ; Wed, 11 Mar 2009 06:46:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=cWi1ErXoG1zszX1MAqM1GDFliWLI+PDCGL0haJgyG7c=; b=sDx23la4SzPYah9JiCn05cnT1nR3/LJd5IhZRDcfQAl6skqpQybIZbLxKqoV5b/jM3 5IZvniwJcMHcIST2h4lIdKyK9iEc6CAAX7rOq/FCsRX27VCQlb+quL591HXRMx8uuibq kJiWaSVNa2e/WNhf9Iz2RH/4h+OjO2oz6VbEM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=VkOLlaGaWDoDpa9QJMYeVEhsem2pbipFpxyjZGDSxBgJhCWoCiKPZkLZKUeYH7DzI8 D2CHrmpnty9FUER5ayQvTsylmIreD0rt++I2wDWY1+T4Nwc4zO7JH+w27XUr67tg0ECJ CJmI++t4FzrfowMxhQt+7MtNVVbGwX991pntA= MIME-Version: 1.0 Received: by 10.86.33.10 with SMTP id g10mr5980551fgg.47.1236779173760; Wed, 11 Mar 2009 06:46:13 -0700 (PDT) In-Reply-To: <200903081050.32597.peng.zang@gmail.com> References: <200903081050.32597.peng.zang@gmail.com> Date: Wed, 11 Mar 2009 13:46:13 +0000 Message-ID: Subject: Re: [Caml-list] How to compile project with sub directories (using OcamlMakefile) From: Conglun Yao To: peng.zang@gmail.com Cc: caml-list@yquem.inria.fr Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam: no; 0.00; hash:01 subdirectory:01 trivial:01 camlers:01 lib:01 lib:01 makefile:01 makefile:01 makefiles:01 beginner's:01 ocaml:01 bug:01 peng:98 2009:98 peng:98 Thanks, peng, it works. Conglun On Sun, Mar 8, 2009 at 2:50 PM, Peng Zang wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Here is something similar from one of my projects. =A0Although each subpr= oject > 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. =A0I 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: >> =A0 =A0 =A0 @cd lib01 && make all >> =A0 =A0 =A0 @cd lib02&& make all >> =A0 =A0 =A0 @cd lib03 && make all >> >> Makefile in lib01 .. lib03: >> >> OCAMLMAKEFILE =3D ../OCamlMakefile >> >> SOURCES =A0=3D ..... library files >> >> RESULT =3D lib01 >> >> .PHONY: all >> all: =A0 =A0 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=3D > =3DbsCU > -----END PGP SIGNATURE----- >