diff options
author | gjb <gjb@FreeBSD.org> | 2011-11-20 19:05:32 +0000 |
---|---|---|
committer | gjb <gjb@FreeBSD.org> | 2011-11-20 19:05:32 +0000 |
commit | 46ca9e75ddfc44fb968a2299170e9ba26f93c4a7 (patch) | |
tree | 6cf8cda171dc6cd6b8b650f44dec2ea2a0d692b2 /Makefile | |
parent | fcaf5b834dfce723c27a8c8fad656119742cf4dc (diff) | |
download | FreeBSD-src-46ca9e75ddfc44fb968a2299170e9ba26f93c4a7.zip FreeBSD-src-46ca9e75ddfc44fb968a2299170e9ba26f93c4a7.tar.gz |
Add a note to src/Makefile that explains that 'rm' runs twice because the
second invocation only needs to operate on files with the immutable flag
set.
Submitted by: arundel (via private email) (original version)
Discussed on: -toolchain@
MFC after: 3 days
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -185,7 +185,10 @@ buildworld: upgrade_checks # files with chflags set, so this unsets them and tries the 'rm' a # second time. There are situations where this target will be cleaning # some directories via more than one method, but that duplication is -# needed to correctly handle all the possible situations. +# needed to correctly handle all the possible situations. Removing all +# files without the immutable flag set in the first 'rm' instance saves +# time, because 'chflags' will need to operate on fewer files (with the +# immutable flag set) afterwards. # BW_CANONICALOBJDIR:=${MAKEOBJDIRPREFIX}${.CURDIR} cleanworld: |