From 2edf02dccb283a68c37ddca28801298dbfc01096 Mon Sep 17 00:00:00 2001 From: Christian Helmuth Date: Wed, 12 Oct 2022 20:44:52 +0200 Subject: [PATCH] themed_decorator: break link dependency to theme plain_decorator_theme.tar is not linked to the app but must be generated as side effect. Therefore, use CUSTOM_TARGET_DEPS to trigger the generation. Fixes #4637 --- repos/gems/src/app/themed_decorator/target.mk | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/repos/gems/src/app/themed_decorator/target.mk b/repos/gems/src/app/themed_decorator/target.mk index e5a0470828..35f11a47f3 100644 --- a/repos/gems/src/app/themed_decorator/target.mk +++ b/repos/gems/src/app/themed_decorator/target.mk @@ -3,8 +3,13 @@ SRC_CC = main.cc theme.cc window.cc LIBS = base libc libpng zlib blit file INC_DIR += $(PRG_DIR) +CUSTOM_TARGET_DEPS += plain_decorator_theme.tar + +BUILD_ARTIFACTS := $(TARGET) plain_decorator_theme.tar + .PHONY: plain_decorator_theme.tar -$(TARGET): plain_decorator_theme.tar plain_decorator_theme.tar: - $(VERBOSE)cd $(PRG_DIR); tar cf $(PWD)/bin/$@ theme + $(MSG_CONVERT)$@ + $(VERBOSE)tar -cf $@ -C $(PRG_DIR) theme + $(VERBOSE)ln -sf $(BUILD_BASE_DIR)/$(PRG_REL_DIR)/$@ $(INSTALL_DIR)/$@