Merge pull request #169 from kanzure/fail-fast-without-baserom

Fail fast when the baserom.gbc file doesn't exist.
This commit is contained in:
Bryan Bishop 2013-08-29 09:51:32 -07:00
commit 61dd634698
1 changed files with 3 additions and 1 deletions

View File

@ -19,8 +19,10 @@ pokecrystal.o: $(TEXTFILES:.asm=.tx) wram.asm constants.asm $(shell find constan
.asm.tx: .asm.tx:
$(eval TEXTQUEUE := $(TEXTQUEUE) $<) $(eval TEXTQUEUE := $(TEXTQUEUE) $<)
@rm -f $@ @rm -f $@
baserom:
python -c "import os; assert 'baserom.gbc' in os.listdir('.'), 'Wait! Need baserom.gbc first. Check README and INSTALL for details.';"
pokecrystal.gbc: pokecrystal.o pokecrystal.gbc: baserom pokecrystal.o
rgblink -n pokecrystal.sym -m pokecrystal.map -o $@ $< rgblink -n pokecrystal.sym -m pokecrystal.map -o $@ $<
rgbfix -Cjv -i BYTE -k 01 -l 0x33 -m 0x10 -p 0 -r 3 -t PM_CRYSTAL $@ rgbfix -Cjv -i BYTE -k 01 -l 0x33 -m 0x10 -p 0 -r 3 -t PM_CRYSTAL $@