Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jan 1998 06:26:37 +0100
From:      Eivind Eklund <eivind@yes.no>
To:        ports@FreeBSD.ORG
Cc:        hoek@hwcn.org, dev.random@dev.random.nu, baum@abirnet.co.il, freebsd-hackers@FreeBSD.ORG
Subject:   Re: bsd.port.mk is broken
Message-ID:  <19980124062637.10332@follo.net>
In-Reply-To: <199801212230.OAA00877@baloon.mimi.com>; from Satoshi Asami on Wed, Jan 21, 1998 at 02:30:21PM -0800
References:  <Pine.GSO.3.96.980121075710.27690A-100000@james.hwcn.org> <199801212230.OAA00877@baloon.mimi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 21, 1998 at 02:30:21PM -0800, Satoshi Asami wrote:
> By the way, does anyone know how to do a check for a file existence
> (".if exists(foofile)") with a wildcard in make?  Or do I need to list
> all the possibilties (libtcl.so.75.0, libtcl.so.7.5, libtcl75.so.1.0,
> etc.)?

TMPVAR!=echo libtcl*
.for HACKVAR in ${TMPVAR}
.if exists(${HACKVAR}
	... do your stuff ...
.endif
.endif

I'm not certain it is an improvement, but it should work - I seem to
remember having done it myself at one time or another.

Eivind.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980124062637.10332>