Date: Thu, 14 Sep 2000 17:23:51 +0300 From: Peter Pentchev <roam@orbitel.bg> To: "Jacques A. Vidrine" <n@nectar.com> Cc: Maxim Sobolev <sobomax@FreeBSD.org>, Marco van de Voort <marcov@stack.nl>, freebsd-ports@FreeBSD.org Subject: Re: Freepascal Message-ID: <20000914172351.H32524@ringwraith.office1.bg> In-Reply-To: <20000914085027.C16624@spawn.nectar.com>; from n@nectar.com on Thu, Sep 14, 2000 at 08:50:27AM -0500 References: <20000913201407.4E4E52E802@hermes.tue.nl> <39C0ADA0.EBE7FE9F@FreeBSD.org> <20000914140034.B32524@ringwraith.office1.bg> <39C0B48C.EDDDDC73@FreeBSD.org> <20000914142439.D32524@ringwraith.office1.bg> <39C0BCB6.1AE26094@FreeBSD.org> <20000914151405.F32524@ringwraith.office1.bg> <20000914085027.C16624@spawn.nectar.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Sep 14, 2000 at 08:50:27AM -0500, Jacques A. Vidrine wrote: > On Thu, Sep 14, 2000 at 03:14:05PM +0300, Peter Pentchev wrote: > > Actually, I think the original poster was referring exactly to gmake - > > not in the ports context, but rather later, in a port that defines USE_GMAKE, > > and then invokes gmake in the source subdirs - that's where determining > > the arch might be useful. > > In which case the ugly GNU make syntax is something like > > ifeq ($(findstring $(shell uname),FreeBSD),FreeBSD) > # yay, FreeBSD! > endif > > If there is a better way, I'd love to hear it. God, I hate GNU make. Ahhh... $(shell ..) is evaluated *before* the rest? wow.. I just tested the following: ifeq ($(shell uname -s),FreeBSD) OS= fbsd else OS= other endif all: echo OS is ${OS} and.. it works! Thanks! G'luck, Peter -- Thit sentence is not self-referential because "thit" is not a word. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000914172351.H32524>