From 264de96461a275fdb7c08992c611a55ae26a4f56 Mon Sep 17 00:00:00 2001 From: Forest Belton Date: Thu, 1 Jul 2021 06:17:55 -0400 Subject: [PATCH] Allow overriding Python executable --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a905c66..f539418 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +PYTHON ?= python + # Graphics SPRITE_PNG := $(shell find png/sprite -type f -name '*.png') @@ -26,10 +28,10 @@ $(OFILES): $(SPRITE_2BPP) rgbasm -i inc -o $@ $< png/map/%.s png/map/%.inc: png/map/%.png png/map/%_coll.png - python scripts/generate_map.py $< + $(PYTHON) scripts/generate_map.py $< png/sprite/%.2bpp: png/sprite/%.png rgbgfx -o $@ $< clean: - rm -f is.gb is.gb.sym $(OFILES) $(MAP_S) $(MAP_INC) $(SPRITE_2BPP) \ No newline at end of file + rm -f is.gb is.gb.sym $(OFILES) $(MAP_S) $(MAP_INC) $(SPRITE_2BPP)