From 70fab5413fadb6d4059d5b410aa6850782436e0b Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 1 Jul 2022 19:42:27 +0200 Subject: [PATCH] - fix CLEANUP define --- make/buildsystem-helpers.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/make/buildsystem-helpers.mk b/make/buildsystem-helpers.mk index eec4cbd0..813809ec 100644 --- a/make/buildsystem-helpers.mk +++ b/make/buildsystem-helpers.mk @@ -22,8 +22,8 @@ endef # clean up define CLEANUP $(Q)( \ - if [ -d $(BUILD_DIR)/$($(PKG)_DIR) ]; then \ - $(call MESSAGE,"Clean up"); \ + if [ "$($(PKG)_DIR)" ]; then \ + $(call MESSAGE,"Clean-up"); \ rm -rf $(BUILD_DIR)/$($(PKG)_DIR); \ fi; \ )