From owner-freebsd-hackers Fri Jan 23 21:28:00 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA04629 for hackers-outgoing; Fri, 23 Jan 1998 21:28:00 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from ns1.yes.no (ns1.yes.no [195.119.24.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA04602; Fri, 23 Jan 1998 21:27:47 -0800 (PST) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [194.198.43.36]) by ns1.yes.no (8.8.7/8.8.7) with ESMTP id FAA03086; Sat, 24 Jan 1998 05:26:47 GMT Received: (from eivind@localhost) by bitbox.follo.net (8.8.6/8.8.6) id GAA10851; Sat, 24 Jan 1998 06:26:38 +0100 (MET) Message-ID: <19980124062637.10332@follo.net> Date: Sat, 24 Jan 1998 06:26:37 +0100 From: Eivind Eklund 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 References: <199801212230.OAA00877@baloon.mimi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88e In-Reply-To: <199801212230.OAA00877@baloon.mimi.com>; from Satoshi Asami on Wed, Jan 21, 1998 at 02:30:21PM -0800 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk 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.