From owner-freebsd-ports Thu Mar 14 17:42:52 2002 Delivered-To: freebsd-ports@freebsd.org Received: from web14702.mail.yahoo.com (web14702.mail.yahoo.com [216.136.224.119]) by hub.freebsd.org (Postfix) with SMTP id BD0E537B433 for ; Thu, 14 Mar 2002 17:41:58 -0800 (PST) Message-ID: <20020315014158.73095.qmail@web14702.mail.yahoo.com> Received: from [64.131.161.101] by web14702.mail.yahoo.com via HTTP; Thu, 14 Mar 2002 17:41:58 PST Date: Thu, 14 Mar 2002 17:41:58 -0800 (PST) From: Wayne Lubin Subject: Re: make's default actions while installing ports To: Alan Eldridge , freebsd-ports@freebsd.org In-Reply-To: <20020315005737.GA93540@wwweasel.geeksrus.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 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. Wayne --- Alan Eldridge wrote: > On Thu, Mar 14, 2002 at 04:41:48PM -0800, Wayne > Lubin wrote: > >Hello, > > > >Thanks for your help so far in figuring out how > make > >works when a user types "make" inside a port > > > >.MAIN: all > > > >The problem that I am having now is finding where > the > >"all" target is defined. If make is to have the > > Searching for 'all:' reveals this section; it is > left as an exercise > for the reader to follow from here: > > --8<----8<----8<----8<----8<----8<----8<----8<----8<----8<-- > .if defined(ALL_HOOK) > all: > @cd ${.CURDIR} && ${SETENV} > CURDIR=${.CURDIR} DISTNAME=${DISTNAME} \ > DISTDIR=${DISTDIR} WRKDIR=${WRKDIR} > WRKSRC=${WRKSRC} \ > PATCHDIR=${PATCHDIR} > SCRIPTDIR=${SCRIPTDIR} \ > FILESDIR=${FILESDIR} PORTSDIR=${PORTSDIR} > PREFIX=${PREFIX} \ > DEPENDS="${DEPENDS}" > BUILD_DEPENDS="${BUILD_DEPENDS}" \ > RUN_DEPENDS="${RUN_DEPENDS}" > X11BASE=${X11BASE} \ > ${ALL_HOOK} > .endif > > .if !target(all) > all: build > .endif > --8<----8<----8<----8<----8<----8<----8<----8<----8<----8<-- > > Cc: to -questions@ removed. > > -- > Alan Eldridge > "Dave's not here, man." __________________________________________________ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message