aboutsummaryrefslogtreecommitdiff
path: root/pixel-client/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'pixel-client/makefile')
-rw-r--r--pixel-client/makefile9
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)