From 4a368329f9d64e4e2ec2abef01d88c3816fbdf1e Mon Sep 17 00:00:00 2001 From: Jordan Hrycaj Date: Mon, 22 Mar 2021 17:36:17 +0000 Subject: [PATCH] update clean target why: recursively clean up all locally generated nimcache directories (previously only the top-level nimcache was cleared) --- nimbus/makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nimbus/makefile b/nimbus/makefile index 5ec553ace..fbfdfaec8 100644 --- a/nimbus/makefile +++ b/nimbus/makefile @@ -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