diff options
author | Jens Wiklander <jens.wiklander@linaro.org> | 2019-05-24 09:20:06 +0200 |
---|---|---|
committer | Jérôme Forissier <jerome@forissier.org> | 2019-05-24 10:17:59 +0200 |
commit | 7ea0c7085a728a7fb6dcff478dcf347148f08efa (patch) | |
tree | a589764c288329d8a532377b17853ebb140f6ae4 | |
parent | 99e635cd309a907f77c0e1aace831658e8d4d125 (diff) |
mk/cleandirs.mk: avoid print spurious empty lines
Fixes the macro do-rm-f from outputting spurious empty lines if supplied
a large list of files.
Reviewed-by: Jerome Forissier <jerome@forissier.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
-rw-r--r-- | mk/cleandirs.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mk/cleandirs.mk b/mk/cleandirs.mk index f0e1d8ea..6c42b53c 100644 --- a/mk/cleandirs.mk +++ b/mk/cleandirs.mk @@ -32,7 +32,7 @@ RMDIR := rmdir --ignore-fail-on-non-empty # (200 files at a time), to minimize the odds of having: # "/bin/bash: Argument list too long" define do-rm-f - $(call _do-rm-f, $(wordlist 1, 200, $(1))) + $(call _do-rm-f, $(wordlist 1, 200, $(1))) \ $(eval _tail := $(wordlist 201, $(words $(1)), $(1))) $(if $(_tail), $(call do-rm-f, $(_tail))) endef |