Browse Source

Allow overriding Python executable

master
Forest Belton 3 years ago
parent
commit
264de96461
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      Makefile

+ 4
- 2
Makefile View File

@ -1,3 +1,5 @@
PYTHON ?= python
# Graphics # Graphics
SPRITE_PNG := $(shell find png/sprite -type f -name '*.png') SPRITE_PNG := $(shell find png/sprite -type f -name '*.png')
@ -26,10 +28,10 @@ $(OFILES): $(SPRITE_2BPP)
rgbasm -i inc -o $@ $< rgbasm -i inc -o $@ $<
png/map/%.s png/map/%.inc: png/map/%.png png/map/%_coll.png 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 png/sprite/%.2bpp: png/sprite/%.png
rgbgfx -o $@ $< rgbgfx -o $@ $<
clean: clean:
rm -f is.gb is.gb.sym $(OFILES) $(MAP_S) $(MAP_INC) $(SPRITE_2BPP)
rm -f is.gb is.gb.sym $(OFILES) $(MAP_S) $(MAP_INC) $(SPRITE_2BPP)

Loading…
Cancel
Save