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:
parent
1686d3b710
commit
4a368329f9
|
@ -200,7 +200,9 @@ clean-bakfiles:
|
||||||
|
|
||||||
.SILENT: clean-nimcache
|
.SILENT: clean-nimcache
|
||||||
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-exe
|
||||||
clean:: clean-bakfiles
|
clean:: clean-bakfiles
|
||||||
|
|
Loading…
Reference in New Issue