Subject: Re: CVSsing methodology
To: Bjoern Labitzke <>
From: Sean Doran <>
List: current-users
Date: 09/28/1999 20:51:05
Bjoern Labitzke <> writes:

> I would second this. But pay attention: Either, the "make obj" is done
> every time after an update of the source tree and before any builds, or,
> should you be unable/unwilling to ascertain this, you should do a
> "make cleandir" before the "make obj". Otherwise there might be files
> left in the source directory that belong in the object directory and lead
> to build failures that are not really obvious. They will not be cleaned
> by a "make cleandir" after the object directory got
> created!

Yes, and this will bite you sometimes.

However, "make cleandir" in this case wastefully blows
away what you want to preserve with the "UPDATE=1" flag
mentioned in a previous article.

# cd /usr/src; find -type l -name obj.<arch> -print | xargs rm -f
# make cleandir && make obj
# make build "UPDATE=1"