Subject: Re: Excising Check_Cwd* from make.
To: Alan Barrett <apb@cequrux.com>
From: Simon J. Gerraty <sjg@crufty.net>
List: tech-toolchain
Date: 08/01/2003 17:33:48
>I seem to recall that this was a hack to detect Makefiles that
>did this:

>	target:
>		${MAKE} other-target

>when they should really have done this:

>	target:
>		cd ${.CURDIR} && ${MAKE} other-target

Correct.  This was not a problem in Makefiles that expected an objdir to 
exist, but when using MAKEOBJDIRPREFIX intermediate directories also get
objdirs and many of those did not cater for it.

>As far as I know, the NetBSD source tree doesn't contain any such broken
>Makefiles.  But perhaps pkgsrc or third party sources would still benefit
>from this hack?

I suspect not.

Thanks
--sjg