On Mon, 21 Sep 2009 03:46:13 +0200, Mel Flynn <[email protected]> wrote: > On Sunday 20 September 2009 23:26:58 Giorgos Keramidas wrote: >> On Sun, 20 Sep 2009 21:10:00 +0200, Christer Solskogen >> <[email protected]> wrote: >> > Giorgos Keramidas wrote: >> >> # rm -fr /usr/obj/usr >> >> # cd /usr/src >> >> # make cleandir ; make cleandir >> > >> > I've seen serveral placeses that "make cleandir" should be run twice. I >> > dont understand why. Could somebody explain? >> >> The first run cleans file sunder $(MAKEOBJDIRPREFIX), or under >> `/usr/obj' if MAKEOBJDIRPREFIX is unset. >> >> The second run cleans files in the source tree itself. > > Which you'll see if you don't use the designated build{world|kernel} targets, > but cd into a directory and start typing make or....quite the pitfall, run > make obj depend, rather then make obj && make depend. In the first case, the > .depend file ends up in .CURDIR, not .OBJDIR. > > Also, perhaps it's better to advise make cleanworld for the rm -rf, as this > target accomplishes the same, deals better with chflags(2) and leaves > /usr/obj/usr/ports in tact for those who have set WRKDIRPREFIX to /usr/obj for > ports.
That's a good point. Thanks. I'll remember it the next time I suggest that someone wipes their entire `/usr/obj' tree :) _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[email protected]"
