Re: Adding 'realclean' target to /usr/src/Makefile

2004-02-16 Thread Ruslan Ermilov
On Sun, Feb 15, 2004 at 05:57:14AM -0600, Matthew D. Fuller wrote: On Sun, Feb 15, 2004 at 09:20:56AM + I heard the voice of Bruce M Simpson, and lo! it spake thus: It would be helpful if it were pointed out in documentation somewhere that the path to the compile and source

Re: Adding 'realclean' target to /usr/src/Makefile

2004-02-15 Thread Bruce M Simpson
On Sun, Feb 15, 2004 at 02:42:07AM -0500, Garance A Drosihn wrote: It occurs to me that the simple, reliable solution to this is to add a 'realclean' target to /usr/src/Makefile, such as: I don't have a problem with this. However, on a related but somewhat separate note: It would be helpful

Re: Adding 'realclean' target to /usr/src/Makefile

2004-02-15 Thread Matthew D. Fuller
On Sun, Feb 15, 2004 at 09:20:56AM + I heard the voice of Bruce M Simpson, and lo! it spake thus: It would be helpful if it were pointed out in documentation somewhere that the path to the compile and source directories, when doing NFS kernel installs, has to be identical to those which

Re: Adding 'realclean' target to /usr/src/Makefile

2004-02-15 Thread Richard Coleman
Bruce M Simpson wrote: On Sun, Feb 15, 2004 at 02:42:07AM -0500, Garance A Drosihn wrote: It occurs to me that the simple, reliable solution to this is to add a 'realclean' target to /usr/src/Makefile, such as: I don't have a problem with this. However, on a related but somewhat separate note:

Re: Adding 'realclean' target to /usr/src/Makefile

2004-02-15 Thread M. Warner Losh
In message: [EMAIL PROTECTED] Garance A Drosihn [EMAIL PROTECTED] writes: : realclean : : rm -Rf ${.OBJDIR}/* I'd make that be more like: realclean : @chflags -R 0 ${.OBJDIR}/* @rm -Rf ${.OBJDIR}/* since sometimes you wind up files that have flags set on them.

Re: Adding 'realclean' target to /usr/src/Makefile

2004-02-15 Thread M. Warner Losh
In message: [EMAIL PROTECTED] Bruce M Simpson [EMAIL PROTECTED] writes: : It would be helpful if it were pointed out in documentation somewhere : that the path to the compile and source directories, when doing NFS : kernel installs, has to be identical to those which were in effect on

Re: Adding 'realclean' target to /usr/src/Makefile

2004-02-15 Thread Marcel Moolenaar
On Sun, Feb 15, 2004 at 10:19:00AM -0700, M. Warner Losh wrote: In message: [EMAIL PROTECTED] Garance A Drosihn [EMAIL PROTECTED] writes: : realclean : : rm -Rf ${.OBJDIR}/* I'd make that be more like: realclean : @chflags -R 0 ${.OBJDIR}/* @rm -Rf

Re: Adding 'realclean' target to /usr/src/Makefile

2004-02-15 Thread M. Warner Losh
In message: [EMAIL PROTECTED] Marcel Moolenaar [EMAIL PROTECTED] writes: : On Sun, Feb 15, 2004 at 10:19:00AM -0700, M. Warner Losh wrote: : In message: [EMAIL PROTECTED] : Garance A Drosihn [EMAIL PROTECTED] writes: : : realclean : : : rm -Rf ${.OBJDIR}/* : : I'd

Re: Adding 'realclean' target to /usr/src/Makefile

2004-02-15 Thread Garance A Drosihn
At 10:19 AM -0700 2/15/04, M. Warner Losh wrote: In message: [EMAIL PROTECTED] Garance A Drosihn [EMAIL PROTECTED] writes: : realclean : : rm -Rf ${.OBJDIR}/* I'd make that be more like: realclean : @chflags -R 0 ${.OBJDIR}/* @rm -Rf ${.OBJDIR}/* If you can

Re: Adding 'realclean' target to /usr/src/Makefile

2004-02-15 Thread Garance A Drosihn
At 10:19 AM -0700 2/15/04, M. Warner Losh wrote: If you can tolerate errors in the output, the following is faster because the chflags has lots less work to do: realclean : @rm -Rf ${.OBJDIR}/* @chflags -R 0 ${.OBJDIR}/* @rm -Rf ${.OBJDIR}/* After some testing, I am

Adding 'realclean' target to /usr/src/Makefile

2004-02-14 Thread Garance A Drosihn
In the instructions I am writing up for a sparc64 change, I wrote that people should: rm -Rf /usr/obj/usr/src/* to make sure they got rid of everything in the previous buildworld. Some developers reminded me that this isn't always the right thing to do (depending on symlinks or on various