diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-08-28 16:22:50 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-08-28 16:22:50 -0500 |
commit | 53d208ce4ce459506ad2de6a6860edbef49f21c4 (patch) | |
tree | 8181eb5010f49e18485c09065c9abd00f5410179 | |
parent | ddc4a929058ff103cac5743ca39bb8e4b520ee90 (diff) |
fail fast when the baserom.gbc file doesn't exist
One day this will not be required. But until then, waiting one or more
seconds for the build to fail just to learn that you forgot baserom.gbc
is really silly.
This makes failure almost instantaneous compared to before, which would
take between one and ten seconds depending on system performance.
fixes #167
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -19,8 +19,10 @@ pokecrystal.o: $(TEXTFILES:.asm=.tx) wram.asm constants.asm $(shell find constan .asm.tx: $(eval TEXTQUEUE := $(TEXTQUEUE) $<) @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 $@ $< rgbfix -Cjv -i BYTE -k 01 -l 0x33 -m 0x10 -p 0 -r 3 -t PM_CRYSTAL $@ |