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
This commit is contained in:
Christian Helmuth 2022-10-12 20:44:52 +02:00
parent 00ac4afb9f
commit 2edf02dccb

View File

@ -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)/$@