From owner-freebsd-ports@FreeBSD.ORG Tue Dec 29 11:50:38 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF1D81065697 for ; Tue, 29 Dec 2009 11:50:38 +0000 (UTC) (envelope-from yuri.pankov@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.155]) by mx1.freebsd.org (Postfix) with ESMTP id 32EF08FC17 for ; Tue, 29 Dec 2009 11:50:37 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id 19so3732092fgg.13 for ; Tue, 29 Dec 2009 03:50:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received :x-authentication-warning:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=dEO0JL/gMQbj4Hc3uKJQ81B7niNzPo5U1ynyOr3zccY=; b=fBy2p58cOyj4Po8L5DdWNe0gC+fNN1zqBNFYCbDPalRoGrc4NKHthbnw5kO737Ucx2 3dHAqLuR/vt2KAYu1S/8jpo1aQUegvs+8FlENInMAMEVzEqhWL6PGqeJ9rGeSxp5Vdqq +dwhcdEN1cxuj7q4VudckkS8Vml9W5vItSJNA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=x-authentication-warning:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; b=ROvMPiH0npYng7FadsRk+Jg5/YnZh8z6oR6KvAAgYh5Vdh2JRRvoBlMpmJZryo342u nsBNVVa/tG8EvaQycalNeArS5NItaXCJdsMJuE2aUiVFSv6YSE0lMveHZW9mC4+/8USM zfd04AczzoXf78Zy2JIxgmyb+x1z6vwuJwciA= Received: by 10.87.64.27 with SMTP id r27mr13857654fgk.29.1262087430797; Tue, 29 Dec 2009 03:50:30 -0800 (PST) Received: from darklight.org.ru ([213.132.76.16]) by mx.google.com with ESMTPS id d8sm29300504fga.18.2009.12.29.03.50.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 29 Dec 2009 03:50:29 -0800 (PST) Received: from darklight.org.ru (yuri@darklight.org.ru [127.0.0.1]) by darklight.org.ru (8.14.3/8.14.3) with ESMTP id nBTBoP3v008238; Tue, 29 Dec 2009 14:50:26 +0300 (MSK) (envelope-from yuri.pankov@gmail.com) Received: (from yuri@localhost) by darklight.org.ru (8.14.3/8.14.3/Submit) id nBTBoPSq008237; Tue, 29 Dec 2009 14:50:25 +0300 (MSK) (envelope-from yuri.pankov@gmail.com) X-Authentication-Warning: darklight.org.ru: yuri set sender to yuri.pankov@gmail.com using -f Date: Tue, 29 Dec 2009 14:50:25 +0300 From: Yuri Pankov To: Eygene Ryabinkin Message-ID: <20091229115025.GA1654@darklight.org.ru> References: <790a9fff0912282328o35ba5abfg580c01ec851e6c95@mail.gmail.com> <20091229074002.GA3117@darklight.org.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Scot Hetzel , Yevgen Krapiva , freebsd-ports@freebsd.org Subject: Re: (no subject) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Dec 2009 11:50:38 -0000 On Tue, Dec 29, 2009 at 02:17:17PM +0300, Eygene Ryabinkin wrote: > Tue, Dec 29, 2009 at 10:40:02AM +0300, Yuri Pankov wrote: > > On Tue, Dec 29, 2009 at 01:28:46AM -0600, Scot Hetzel wrote: > > > dv8t01# make do-check > > > File /usr/local/etc/rc.d/motd exists > > > File /usr/local/etc/rc.d/hald doesnt exist > > > > > > This Makefile fails due to LOCALBASE is not defined at the time that > > > the exists check is run. > > > > How come that ${DATADIR} (and ${LOCALBASE}) are correctly expanded in > > ${ECHO_MSG} then? > > .if and .for are unrolled and evaluated while parsing the makefile > and make transforms it to bare "@${ECHO_MSG} ..." lines with the > content that depends on the if-else-endif evaluation. LOCALBASE > isn't defined at that time > > And targets are executed after the whole Makefile was read, so > LOCALBASE is here. Actually, the found "/usr/local/etc/rc.d/motd" > is really an "/etc/rc.d/motd". > -- > Eygene > _ ___ _.--. # > \`.|\..----...-'` `-._.-'_.-'` # Remember that it is hard > / ' ` , __.--' # to read the on-line manual > )/' _/ \ `-_, / # while single-stepping the kernel. > `-'" `"\_ ,_.-;_.-\_ ', fsc/as # > _.-'_./ {_.' ; / # -- FreeBSD Developers handbook > {_.-``-' {_/ # Thanks for explanation. I just wonder how PREFIX is different from LOCALBASE (i.e., devel/gettext uses .if exists(${PREFIX}/.....) without including bsd.port.pre.mk). Yuri