From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id F2EAA7FB9F for ; Thu, 10 Nov 2016 10:52:51 +0100 (CET) X-IronPort-AV: E=Sophos;i="5.31,618,1473112800"; d="scan'208";a="199851584" Received: from meleze.ens.fr (HELO [129.199.99.114]) ([129.199.99.114]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 10 Nov 2016 10:52:50 +0100 References: <4912b1d7-c491-9462-2220-c08492d1833d@inria.fr> <3195f89c-0920-f844-ff1f-dec7cb0c2814@inria.fr> <353FD3C0-F899-4CC1-9D87-8302023AFA27@inria.fr> Cc: caml-list@inria.fr From: Francois BERENGER Message-ID: <9dce22c0-5203-b6e3-2e22-884ebc67eba3@inria.fr> Date: Thu, 10 Nov 2016 10:52:48 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <353FD3C0-F899-4CC1-9D87-8302023AFA27@inria.fr> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Caml-list] OASIS help On 11/10/2016 10:49 AM, Laurent Thévenoux wrote: > OASIS doesn’t generate me a Makefile. Here my _oasis file (a very basic start): Sorry, I forgot: add this line after your License line in your _oasis file: Plugins: DevFiles (0.4) cf. http://oasis.forge.ocamlcore.org/MANUAL.html#plugin-devfiles-extra > — > OASISFormat: 0.4 > Name: name > Version: 0.1 > Synopsis: synopsis > Authors: Laurent > License: CeCILL > > Executable exe > Path: src > BuildTools: ocamlbuild > BuildDepends: str > MainIs: main.ml > — > > Then, I run oasis setup, and, ocaml setup.ml -configure, and finally, ocaml setup.ml -build. > > It fails during the build because ocamlyacc is called to build a menhir parser. > > Did I miss anything? > > — > Laurent > >> Le 10 nov. 2016 à 10:27, Francois BERENGER a écrit : >> >> On 11/10/2016 10:08 AM, Laurent Thévenoux wrote: >>> Hello, >>> >>> I’m trying to use OASIS to configure a project written in OCaml. I currently use a Makefile which works fine but doesn’t allow enough possibilities. My project uses the menhir parser but OASIS attempts to use ocamlyacc. >>> >>> How can I specify that I need to run ocamlbuild with -use-menhir instead of ocamlyacc ? >> >> Put a BUILFLAGS line as the first line of your Makefile: >> >> --- >> BUILDFLAGS = " -use-menhir " >> # OASIS_START >> [...] >> --- >> >> This part of the Makefile will be kept by oasis. >> >> -- >> Regards, >> Francois. >> "When in doubt, use more types" >> >> -- >> Caml-list mailing list. Subscription management and archives: >> https://sympa.inria.fr/sympa/arc/caml-list >> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners >> Bug reports: http://caml.inria.fr/bin/caml-bugs > -- Regards, Francois. "When in doubt, use more types"