From 45d7aee71351d74da8181c2f7ff3075e0941f996 Mon Sep 17 00:00:00 2001 From: M4x1m3 Date: Sun, 22 Dec 2019 14:01:34 +0100 Subject: [PATCH] [build] Icon theming! --- escher/Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/escher/Makefile b/escher/Makefile index 6e6453e89..91c2147c0 100644 --- a/escher/Makefile +++ b/escher/Makefile @@ -102,13 +102,20 @@ $(eval $(call rule_for, \ $$(PYTHON) themes/themes_manager.py $(OMEGA_THEME) $$@ \ )) +$(eval $(call rule_for, \ + THEME, \ + %.png, \ + $(addprefix themes/themes/, $(addsuffix .json, $(OMEGA_THEME))), \ + $$(PYTHON) themes/themes_manager.py -i $(OMEGA_THEME) $$@ $(BUILD_DIR)/ \ +)) + INLINER := $(BUILD_DIR)/escher/image/inliner .PRECIOUS: $(BUILD_DIR)/%.h $(BUILD_DIR)/%.cpp $(eval $(call rule_for, \ INLINER, \ %.h %.cpp, \ - %.png $$(INLINER), \ + $$(addprefix $$(BUILD_DIR)/,%.png) $$(INLINER), \ $$(INLINER) $$< $$(basename $$@).h $$(basename $$@).cpp \ ))