diff options
author | metamuffin <metamuffin@disroot.org> | 2024-07-17 01:33:16 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-07-17 01:33:16 +0200 |
commit | 2d915cd80a3193cca4a5b00933b7e24c9232b293 (patch) | |
tree | 1a1f4c1a5c9ba6a2ade97847dbdb78c32d58536a /pixel-client/makefile | |
parent | 6f30400073fdae990fdf4033fe184c6431491561 (diff) | |
download | hurrycurry-2d915cd80a3193cca4a5b00933b7e24c9232b293.tar hurrycurry-2d915cd80a3193cca4a5b00933b7e24c9232b293.tar.bz2 hurrycurry-2d915cd80a3193cca4a5b00933b7e24c9232b293.tar.zst |
icon.png for pixel client
Diffstat (limited to 'pixel-client/makefile')
-rw-r--r-- | pixel-client/makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pixel-client/makefile b/pixel-client/makefile index 6aa891d3..ffd0229d 100644 --- a/pixel-client/makefile +++ b/pixel-client/makefile @@ -31,7 +31,7 @@ COMPOSE = ../target/release/tex_compose CLIENT = ../target/release/pixelcurry .PHONY: all tex_pack tex_export tex_import clean -all: $(CLIENT) +all: $(CLIENT) icon.png tex_pack: assets/atlas.ta tex_import: $(TEXTURES_IMPORT_PNG) tex_export: $(TEXTURES_PNG) $(SPRITES_PNG) assets/atlas.png @@ -50,9 +50,12 @@ $(IMPORT) $(EXPORT) $(PACK) $(COMPOSE): $(shell find tools/src -type f) %.png: %.ta $(EXPORT) $(EXPORT) $< $@ +icon.png: assets/sprites/misc/icon+a.png + ffmpeg -i $< -vf scale=512x512:sws_flags=neighbor -y $@ + assets/sprites/%/all: assets/%.ini $(TEXTURES) $(COMPOSE) - @mkdir -p $(basename $@) - $(COMPOSE) $< assets/textures $(basename $@) + @mkdir -p $(shell dirname $@) + $(COMPOSE) $< assets/textures $(shell dirname $@) @touch $@ assets/atlas.ta assets/atlas.meta.csv: assets/sprites/items/all assets/sprites/tiles/all assets/sprites/misc/all $(PACK) |