summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-06-14 18:32:33 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-06-14 18:32:33 -0400
commit1521f52e37741a9220a1362443df6d0462e582d3 (patch)
tree781277010d81b9ff820931da9be3e617be8cbe17 /Makefile
parent94a70b63cf7f1a9dbfc14fcee8e390791fc17a1b (diff)
Make .gbcpal files for Pokémon and trainer sprites
Pokémon use their back sprites since front sprites differ between Gold and Silver.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f31b1ce0..f9bc8510 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" \) -delete
+ find gfx \( -name "*.[12]bpp" -o -name "*.lz" -o -name "*.gbcpal" \) -delete
$(MAKE) clean -C tools/
tidy:
@@ -221,3 +221,6 @@ gfx/sgb/silver_border.2bpp: tools/gfx += --trim-whitespace
$(RGBGFX) $(rgbgfx) -d1 -o $@ $<
$(if $(tools/gfx),\
tools/gfx $(tools/gfx) -d1 -o $@ $@)
+
+%.gbcpal: %.png
+ $(RGBGFX) -p $@ $<