summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-06-14 19:00:34 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-06-14 19:00:34 -0400
commitb6b573152cb86ff47cac3f6cae95fa1edcd3a64f (patch)
tree5eb78ee9ae0676fa79343eb074272281ff3cce91 /Makefile
parent1521f52e37741a9220a1362443df6d0462e582d3 (diff)
Derive Pokémon frontpic dimensions using tools/png_dimensions
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f9bc8510..546074a5 100644
--- a/Makefile
+++ b/Makefile
@@ -53,7 +53,7 @@ silver: pokesilver.gbc
clean:
rm -f $(roms) $(gold_obj) $(silver_obj) $(roms:.gbc=.map) $(roms:.gbc=.sym) rgbdscheck.o
- find gfx \( -name "*.[12]bpp" -o -name "*.lz" -o -name "*.gbcpal" \) -delete
+ find gfx \( -name "*.[12]bpp" -o -name "*.lz" -o -name "*.gbcpal" -o -name "*.dimensions" \) -delete
$(MAKE) clean -C tools/
tidy:
@@ -224,3 +224,6 @@ gfx/sgb/silver_border.2bpp: tools/gfx += --trim-whitespace
%.gbcpal: %.png
$(RGBGFX) -p $@ $<
+
+%.dimensions: %.png
+ tools/png_dimensions $< $@