# HG changeset patch # User Matti Hamalainen # Date 1681814615 -10800 # Node ID 770d1ea07a4986d9e18b8fb2c81e02970b5ad5ad # Parent f12718986d312584615527f931c9341c41667a57 Add LOGO_SIZE Makefile variable. diff -r f12718986d31 -r 770d1ea07a49 Makefile.gen --- a/Makefile.gen Tue Apr 18 13:41:32 2023 +0300 +++ b/Makefile.gen Tue Apr 18 13:43:35 2023 +0300 @@ -68,6 +68,7 @@ ICON_PNGS = icon-64.png icon-48.png icon-32.png icon-16.png LOGO_PNG = logo.png +LOGO_SIZE = 256 APP_RESOURCES += $(addprefix $(APP_IMG),$(LOGO_PNG) $(ICON_PNGS)) \ COPYING.html @@ -165,13 +166,13 @@ inkscape --export-area-page --export-type=png -w $(patsubst $(APP_IMG)icon-%.png,%,$@) -h $(patsubst $(APP_IMG)icon-%.png,%,$@) --export-filename="$@" "$<" $(APP_IMG)$(LOGO_PNG): $(APP_IMG)$(LOGO_SRC_SVG) - inkscape --export-area-page --export-type=png -w 256 -h 256 --export-filename="$@" "$<" + inkscape --export-area-page --export-type=png -w $(LOGO_SIZE) -h $(LOGO_SIZE) --export-filename="$@" "$<" else $(APP_IMG)icon-%.png: $(APP_IMG)$(LOGO_SRC_PNG) convert "$<" -scale "$(patsubst $(APP_IMG)icon-%.png,%,$@)x$(patsubst $(APP_IMG)icon-%.png,%,$@)" "$@" $(APP_IMG)$(LOGO_PNG): $(APP_IMG)$(LOGO_SRC_PNG) - convert "$<" -scale "256x256" "$@" + convert "$<" -scale "$(LOGO_SIZE)x$(LOGO_SIZE)" "$@" endif icon.ico: $(addprefix $(APP_IMG),$(ICON_PNGS))