Subject: Re: Should make create $MAKEOBJDIR ?
To: <>
From: David Laight <>
List: tech-userlevel
Date: 03/18/2003 14:01:47
On Mon, Mar 17, 2003 at 06:24:30PM -0800, Simon J. Gerraty wrote:
> >Having, yet again, fallen foul of a partial build overwriting the
> >source directory because the required $OBJ directory hadn't been created
> That's a makefile problem, though perhaps one that is tricky to solve
> if you don't have a nicely constrained build environment.

No, if anything it is a user error - for being in too much of a hurry
to wait for the top-level make (especially the bit that makes the
object directories) run its course.

> >I wondered if there were any reason why make shouldn't create
> >the object directory when MAKEOBJDIR is set in the environment.
> Yes.  This would likely break far more than it fixes.  

OK have (yet another) random environment variable that causes make to
1) abort if MAKEOBJDIR is set and the directory doesn't exist
2) create the required directory.

I could then ensure that it is set for netbsd system builds.


David Laight: