update clean target

why:
  recursively clean up all locally generated nimcache directories (previously
  only the top-level nimcache was cleared)
This commit is contained in:
Jordan Hrycaj 2021-03-22 17:36:17 +00:00
parent 1686d3b710
commit 4a368329f9
No known key found for this signature in database
GPG Key ID: 6B5195B9D0DBA119
1 changed files with 3 additions and 1 deletions

View File

@ -200,7 +200,9 @@ clean-bakfiles:
.SILENT: clean-nimcache
clean-nimcache:
[ ! -d ./nimcache ] || (set -x; rm -rf ./nimcache)
# |while.. is like "|xargs -rn1 rm -rf" but with nicer log message
find . -name 'nimcache' -type d -print 2>/dev/null | \
while read d; do (set -x; rm -rf "$$d"); done
clean:: clean-exe
clean:: clean-bakfiles