Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Dec 1998 18:22:06 -0500 (EST)
From:      Chuck Robey <chuckr@mat.net>
To:        Steve Kargl <sgk@troutmask.apl.washington.edu>
Cc:        freebsd-ports@FreeBSD.ORG
Subject:   Re: automatic make depend?
Message-ID:  <Pine.BSF.4.05.9812281820550.335-100000@picnic.mat.net>
In-Reply-To: <199812281919.LAA07968@troutmask.apl.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 28 Dec 1998, Steve Kargl wrote:

> According to Chuck Robey:
> > On Mon, 28 Dec 1998, Steve Kargl wrote:
> > 
> > > I'm in the process of making a port of f2c and its run-time
> > > library.  I have it working to the point that I need to port
> > > to run "make depend" prior to actually building the port.
> > > Looking through /usr/share/mk/*port*, I see no knob for doing
> > > thing.
> > > 
> > > Suggestions?
> > 
> > Use pre-build, it's a target that's already defined for you, and gets
> > called just prior to the actual build target.  There's a pre- and a
> > post- target for each of the major targets in bsd.port.mk (fetch,
> > configure, etc) which makes doing things like what you want simple.
> 
> cd /usr/share/mk
> grep pre-build *.mk
> 
> This gives 0 matches.

Doesn't matter, they're real, and extremely useful.  Look for post in
bsd.port.mk, you'll see (if you'd looked for pre- instead of pre-build,
you'd have found it).

> 
> > Alternatively, the ALL_TARGET variable defines what target gets called
> > on the port makefile.  I think it defaults to all, but you can change it
> > to "depend all" easily enough.
> 
> Thanks, this appears to work.
> 
> -- 
> Steve
> 
> finger kargl@troutmask.apl.washington.edu
> http://troutmask.apl.washington.edu/~clesceri/kargl.html
> 
> 

----------------------------+-----------------------------------------------
Chuck Robey                 | Interests include any kind of voice or data 
chuckr@glue.umd.edu         | communications topic, C programming, and Unix.
213 Lakeside Drive Apt T-1  |
Greenbelt, MD 20770         | I run Journey2 and picnic (FreeBSD-current)
(301) 220-2114              | and jaunt (NetBSD).
----------------------------+-----------------------------------------------





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?Pine.BSF.4.05.9812281820550.335-100000>