From owner-freebsd-questions@FreeBSD.ORG Sun Jun 9 18:08:15 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B40B71B2 for ; Sun, 9 Jun 2013 18:08:15 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 7A47B17B0 for ; Sun, 9 Jun 2013 18:08:15 +0000 (UTC) Received: from [89.204.130.187] (helo=tiny.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1Ulk2E-0000k2-JM; Sun, 09 Jun 2013 20:08:12 +0200 Received: from tiny.Sisis.de (localhost [127.0.0.1]) by tiny.Sisis.de (8.14.5/8.14.3) with ESMTP id r59I84fj000920; Sun, 9 Jun 2013 20:08:05 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by tiny.Sisis.de (8.14.5/8.14.3/Submit) id r59I8340000919; Sun, 9 Jun 2013 20:08:03 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: tiny.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Sun, 9 Jun 2013 20:08:02 +0200 From: Matthias Apitz To: Shane Ambler Subject: Re: /etc/make.conf && CURDIR Message-ID: <20130609180802.GA892@tiny.Sisis.de> References: <20130609141611.GA17649@La-Habana> <51B4BC53.40307@ShaneWare.Biz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <51B4BC53.40307@ShaneWare.Biz> X-Operating-System: FreeBSD 10.0-CURRENT r235646 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.130.187 Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Jun 2013 18:08:15 -0000 El día Monday, June 10, 2013 a las 03:03:07AM +0930, Shane Ambler escribió: > > it works, but if I let away the '*' in the line, i.e. > > > > .if ${.CURDIR:M*/multimedia/cuse4bsd-kmod} > > SYSDIR=/usr/home/guru/head/src/sys > > .endif > > > > the 'make' asks me to set SYSDIR: > > > > ... > You'll find the trailing asterix is a wildcard to match any sub dirs. > When building CURDIR only contains multimedia/cuse4bsd-kmod - CURDIR > will be something like > /usr/ports/multimedia/cuse4bsd-kmod/work/cuse4-bsd-kmod-0.1.27/ > The pre and post * matches all paths with multimedia/cuse4bsd-kmod in > them - usually pretty unique when building within the ports dirs. I was thinking the same re/ wildcard; on the other hand, I always saw hints like this for setting certain values in make.conf based on the ports' name, liek for example: .if ${.CURDIR:M*/category/port} USE_GCC=any .endif those examples never used the * (i.e. /category/port/* ); that's why until today I was thinking that the expresion means already "if /category/port is part of current dir", perhaps I have to read a make manual for this again... thanks for your feedback in any case matthias -- Sent from my FreeBSD netbook Matthias Apitz, , http://www.unixarea.de/ f: +49-170-4527211 UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370) UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5