Re: Cleaning before using WITH_META_MODE
- In reply to: bob prohaska : "Cleaning before using WITH_META_MODE"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 12 Dec 2024 03:47:46 UTC
bob prohaska <fbsd@www.zefox.net> wrote: > What cleaning options minimize interference with the use of WITH_META_MODE ? FWIW I very rarely clean a tree where I use META_MODE, maybe once a year or so. > Occasionally buildworld stops because of a missing dependency, usually > just re-running git pull fixes the problem. In cases where it does not If I need to clean I tend to use one of the 'destroy' targets, which is equivalent to your rm -rf /usr/obj below - which is way faster than any alternative. Note: bsd.obj.mk only defines destroy et al if you have OBJROOT defined (eg you use MAKEOBJDIRPREFIX or MAKEOBJDIR) > fix the problem how should one rank the various cleaning commands, from > least to most thorough? Using rm -rf /usr/obj obviously works but AIUI > deletes the data needed by WITH_META_MODE. The cleaning commands I've That's true, but the info in a .meta file is not needed in a clean tree build - it is most useful when re-building. > used include > make clean > make cleandir run once > make cleandir run twice > rm -rf /usr/obj > > but it isn't obvious how they interact with META_MODE. The short answer is they don't and it doesn't really matter. HTH --sjg