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 mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 31ADA7EFCE for ; Thu, 10 Nov 2016 10:49:26 +0100 (CET) X-IronPort-AV: E=Sophos;i="5.31,618,1473112800"; d="scan'208";a="244376020" Received: from dhcp-13-113.lip.ens-lyon.fr ([140.77.13.113]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Nov 2016 10:49:25 +0100 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.1 \(3251\)) From: =?utf-8?Q?Laurent_Th=C3=A9venoux?= In-Reply-To: <3195f89c-0920-f844-ff1f-dec7cb0c2814@inria.fr> Date: Thu, 10 Nov 2016 10:49:25 +0100 Cc: caml-list@inria.fr Content-Transfer-Encoding: quoted-printable Message-Id: <353FD3C0-F899-4CC1-9D87-8302023AFA27@inria.fr> References: <4912b1d7-c491-9462-2220-c08492d1833d@inria.fr> <3195f89c-0920-f844-ff1f-dec7cb0c2814@inria.fr> To: Francois BERENGER X-Mailer: Apple Mail (2.3251) Subject: Re: [Caml-list] OASIS help OASIS doesn=E2=80=99t generate me a Makefile. Here my _oasis file (a very b= asic start): =E2=80=94 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 =E2=80=94 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 par= ser. Did I miss anything? =E2=80=94 Laurent > Le 10 nov. 2016 =C3=A0 10:27, Francois BERENGER a =C3=A9crit : >=20 > On 11/10/2016 10:08 AM, Laurent Th=C3=A9venoux wrote: >> Hello, >>=20 >> I=E2=80=99m trying to use OASIS to configure a project written in OCaml.= I currently use a Makefile which works fine but doesn=E2=80=99t allow enou= gh possibilities. My project uses the menhir parser but OASIS attempts to u= se ocamlyacc.=20 >>=20 >> How can I specify that I need to run ocamlbuild with -use-menhir instead= of ocamlyacc ? >=20 > Put a BUILFLAGS line as the first line of your Makefile: >=20 > --- > BUILDFLAGS =3D " -use-menhir " > # OASIS_START > [...] > --- >=20 > This part of the Makefile will be kept by oasis. >=20 > --=20 > Regards, > Francois. > "When in doubt, use more types" >=20 > --=20 > 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