Subject: Re: making objdirs automatically
To: Simon J. Gerraty <sjg@crufty.net>
From: Luke Mewburn <lukem@NetBSD.org>
List: tech-toolchain
Date: 04/20/2004 16:29:55
--/jvaajy/zP2g41+Q
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Apr 19, 2004 at 09:50:29PM -0700, Simon J. Gerraty wrote:
  |=20
  | On Mon, 19 Apr 2004 09:53:45 -0400 (EDT), Todd Vierling writes:
  | >iiOn Sat, 17 Apr 2004, Simon J. Gerraty wrote:
  | >
  | >: further to our conversation (and one with a colleague) the other day=
 ,
  | >: the following simple makefile demonstrates how objdirs can be made
  | >: automatically - without the need for a separate 'make obj' pass.
  | >
  | >You forgot to bracket those by
  | >
  | >.if !make(clean) && !make(cleandir) && !make(distclean) && !make(clean=
html)
  |=20
  | Good point, that was a simple demo though ;-)
  |=20
  | I've been using this auto.obj.mk tick for little while now.  Because I
  | play games with making .CURDIR a relative path (from .OBJDIR), I found
  | it necessary to do the auto.obj trick from sys.mk else even after
  | .PATH is re-constituted with adjusted relative paths, the damage has
  | already been done.  The main downside is that Makefiles that don't
  | include bsd.{obj,subdir}.mk still get objdirs - but I only found one
  | makefile (so far) for which that mattered.
  |=20
  | All in all, it works well.

Any chance of seeing the current implementation? :)

--/jvaajy/zP2g41+Q
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iD8DBQFAhMNjpBhtmn8zJHIRAj5LAKDXOaQDtOHESl2izxysvhVVi5KwWACg0q9M
sKbwORxDXNPtCExqnf8NiDQ=
=ldOT
-----END PGP SIGNATURE-----

--/jvaajy/zP2g41+Q--