summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--gfx/gfx.mk3
2 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 903f5db..af03e9f 100644
--- a/Makefile
+++ b/Makefile
@@ -124,6 +124,10 @@ $(BUILD)/%.1bpp: %.1bpp.png tools/gfx | $$(dir $$@)
$(BUILD)/%.tilemap: %.png | $$(dir $$@)
$(RGBGFX) -t $@ $<
+.PRECIOUS: $(BUILD)/%.sgb.tilemap
+$(BUILD)/%.sgb.tilemap: %.bin | $$(dir $$@)
+ tr < $< -d '\000' > $@
+
.PRECIOUS: %/
%/:
mkdir -p $@
diff --git a/gfx/gfx.mk b/gfx/gfx.mk
index 555ae2d..afc5d10 100644
--- a/gfx/gfx.mk
+++ b/gfx/gfx.mk
@@ -29,6 +29,3 @@ $(BUILD)/gfx/minigames/%.bin: gfx/minigames/%.bin
$(BUILD)/gfx/battle_anims/attack_animations_1.2bpp: tools/gfx += --trim-whitespace
$(BUILD)/gfx/battle_anims/attack_animations_2.2bpp: tools/gfx += --trim-whitespace
-
-$(BUILD)/gfx/sgb/%.sgb.tilemap: gfx/sgb/%.bin
- tr < $< -d '\000' > $@