From owner-freebsd-questions Thu Mar 14 14:11:32 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailg.telia.com (mailg.telia.com [194.22.194.26]) by hub.freebsd.org (Postfix) with ESMTP id C0CCA37B402 for ; Thu, 14 Mar 2002 14:11:24 -0800 (PST) Received: from d1o913.telia.com (d1o913.telia.com [195.252.44.241]) by mailg.telia.com (8.11.6/8.11.6) with ESMTP id g2EMBNE14708 for ; Thu, 14 Mar 2002 23:11:23 +0100 (CET) Received: from falcon.midgard.homeip.net (h68n2fls20o913.telia.com [212.181.163.68]) by d1o913.telia.com (8.8.8/8.8.8) with SMTP id XAA14605 for ; Thu, 14 Mar 2002 23:11:22 +0100 (CET) Received: (qmail 18759 invoked by uid 1001); 14 Mar 2002 22:11:21 -0000 Date: Thu, 14 Mar 2002 23:11:21 +0100 From: Erik Trulsson To: Wayne Lubin Cc: freebsd-questions@freebsd.org, freebsd-ports@freebsd.org Subject: Re: make's default actions Message-ID: <20020314221121.GA18717@student.uu.se> Mail-Followup-To: Wayne Lubin , freebsd-questions@freebsd.org, freebsd-ports@freebsd.org References: <20020314215614.28294.qmail@web14702.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020314215614.28294.qmail@web14702.mail.yahoo.com> User-Agent: Mutt/1.3.27i Sender: owner-freebsd-questions@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 01:56:14PM -0800, Wayne Lubin wrote: > But that doesn't make sense either. For example look > at /usr/ports/graphics/gqview/Makefile. I use this > example because I have installed this port. If we were > using a standard make utility then when a user types > "make" in this directory, since no target was > specified, make should go to the first target > encountered, which in this case is pre-patch, > regardless of the fact that bsd.port.mk is included. > But clearly this is not what happens. So my question > is why does this not happen? What is causing the > "default" action? > > Wayne From the make(1) manpage: .MAIN If no target is specified when make is invoked, this target will be built. This is always set, either explicitly, or implicitly when make selects the default target, to give the user a way to refer to the default target on the command line. The bsd.port.mk does define a .MAIN target so that is the target that gets used when no target is specified. > > > > > --- Matthew Emmerton wrote: > > > > This "default action" on applies when the makefile > > includes > > or both of and . > > (There are found in > > /usr/ports/Mk, and have all the rules required to > > implement the fetch, > > extract, patch, configure, build and install > > targets.) > > > > -- > > Matthew Emmerton || matt@gsicomp.on.ca > > GSI Computer Services || http://www.gsicomp.on.ca > > > > On Thu, 14 Mar 2002, Wayne Lubin wrote: > > > > > Hi, > > > > > > If you read the porters handbook it states that > > when > > > someone types "make" into a port directory make > > will > > > go in order to the following targets: > > > > > > fetch, extract, patch, configure, build > > > > > > This is refered to as make's default action. My > > > question is how is this acheived? Does freebsd use > > > some hached version of make? This clearly is not > > > standard actions for the make utility. If I wanted > > to > > > do a software project of my own on freebsd not > > related > > > to the port collection or porting at all for that > > > matter, and wanted to use the make utility, would > > the > > > make program still go through this default action, > > and > > > if so, how do I turn it off. Thanks for your help. > > > -- Erik Trulsson ertr1013@student.uu.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message