Subject: Re: Building after DESTDIR
To: J. Buck Caldwell <buckaroo@igps.org>
From: Frederick Bruckman <fb@enteract.com>
List: current-users
Date: 03/21/2000 19:48:50
On Tue, 21 Mar 2000, J. Buck Caldwell wrote:

> So the other day, I decided to update a system that netboots from one of
> my servers, using a differnet system (same arch, vax) to build. So I go
> into /usr/src, mount the root of the target's filesystem in /mnt, and do
> 'make DESTDIR=/mnt'. All went well, and the other system was updated.
> However, now whenever I try to build for the original system, I get
> error messages telling me that it doesn't know how to build
> /mnt/usr/include/something or other. It's like the DESTDIR stuck. I
> tried 'make clean' from /usr/src, redid 'make obj', and did 'make'
> again, and it's still looking for includes in /mnt. What am I missing?

Look in the ".depends" files to see why make is still looking in DESTDIR.
"make cleandir" will get rid of them. Actually "make build" should DTRT,
by doing a "make cleandir" first.