From owner-freebsd-ports Thu Mar 14 18: 1: 1 2002 Delivered-To: freebsd-ports@freebsd.org Received: from wwweasel.geeksrus.net (wwweasel.geeksrus.net [64.8.210.226]) by hub.freebsd.org (Postfix) with ESMTP id 8440137B416 for ; Thu, 14 Mar 2002 18:00:58 -0800 (PST) Received: (from alane@localhost) by wwweasel.geeksrus.net (8.11.6/8.11.6) id g2F20oo94311; Thu, 14 Mar 2002 21:00:50 -0500 (EST) (envelope-from alane) Date: Thu, 14 Mar 2002 21:00:49 -0500 From: Alan Eldridge To: Wayne Lubin Cc: freebsd-ports@freebsd.org Subject: Re: make's default actions while installing ports Message-ID: <20020315020049.GA94284@wwweasel.geeksrus.net> References: <20020315005737.GA93540@wwweasel.geeksrus.net> <20020315014158.73095.qmail@web14702.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020315014158.73095.qmail@web14702.mail.yahoo.com> User-Agent: Mutt/1.3.28i X-message-flag: Magic 8-Ball says "Outlook not so good." I'll ask it about Exchange next. Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, Mar 14, 2002 at 05:41:58PM -0800, Wayne Lubin wrote: >This doesn't seem to work because as far as I can see, >ALL_HOOK is not defined and hence this "if" statment >is not executed and thus all: will not be defined >here. So? >> .if !target(all) >> all: build >> .endif It's guaranteed to be defined as target after this. Reading the make(1) man page carefully really is important if you're going to try to trace through the bsd.*.mk files. They are rather abusive in the sense that they take full advantage of BSD make features (like the 'target(word)' predicate) that don't exist in other make implementations, and in the sense that they are very complex, involving long chains of dependencies and definitions. For example, as near as I can tell, there is no way to express that particular idiom in GNU make (a feature missing from GNU make? how could that happen?). -- Alan Eldridge "Dave's not here, man." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message