From owner-freebsd-ports Mon Dec 28 11:11:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA05129 for freebsd-ports-outgoing; Mon, 28 Dec 1998 11:11:11 -0800 (PST) (envelope-from owner-freebsd-ports@FreeBSD.ORG) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.54]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA05123 for ; Mon, 28 Dec 1998 11:11:09 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.9.1/8.9.1) id LAA07968; Mon, 28 Dec 1998 11:19:18 -0800 (PST) (envelope-from sgk) From: Steve Kargl Message-Id: <199812281919.LAA07968@troutmask.apl.washington.edu> Subject: Re: automatic make depend? In-Reply-To: from Chuck Robey at "Dec 28, 1998 2: 2:11 pm" To: chuckr@mat.net (Chuck Robey) Date: Mon, 28 Dec 1998 11:19:18 -0800 (PST) Cc: freebsd-ports@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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. > 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message