Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Mar 2002 23:11:21 +0100
From:      Erik Trulsson <ertr1013@student.uu.se>
To:        Wayne Lubin <wayneclubin@yahoo.com>
Cc:        freebsd-questions@freebsd.org, freebsd-ports@freebsd.org
Subject:   Re: make's default actions
Message-ID:  <20020314221121.GA18717@student.uu.se>
In-Reply-To: <20020314215614.28294.qmail@web14702.mail.yahoo.com>
References:  <Pine.BSF.4.21.0203141614580.30542-100000@xena.gsicomp.on.ca> <20020314215614.28294.qmail@web14702.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <matt@gsicomp.on.ca> wrote:
> > 
> > This "default action" on applies when the makefile
> > includes <bsd.port.mk>
> > or both of <bsd.port.pre.mk> and <bsd.port.post.mk>.
> >  (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.
> > > 


-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020314221121.GA18717>