Mercurial > hg > syntilista
changeset 279:770d1ea07a49
Add LOGO_SIZE Makefile variable.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 18 Apr 2023 13:43:35 +0300 |
parents | f12718986d31 |
children | 2b5d4b6884dc |
files | Makefile.gen |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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))