From owner-freebsd-ports Mon Dec 28 15:23:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA10470 for freebsd-ports-outgoing; Mon, 28 Dec 1998 15:23:46 -0800 (PST) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from picnic.mat.net (picnic.mat.net [206.246.122.117]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA10460 for ; Mon, 28 Dec 1998 15:23:43 -0800 (PST) (envelope-from chuckr@mat.net) Received: from localhost (chuckr@localhost) by picnic.mat.net (8.9.1/8.8.5) with ESMTP id SAA05569; Mon, 28 Dec 1998 18:22:07 -0500 (EST) Date: Mon, 28 Dec 1998 18:22:06 -0500 (EST) From: Chuck Robey To: Steve Kargl cc: freebsd-ports@FreeBSD.ORG Subject: Re: automatic make depend? In-Reply-To: <199812281919.LAA07968@troutmask.apl.washington.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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