diff options
| author | octorock <79596758+octorock@users.noreply.github.com> | 2021-06-22 23:20:04 +0200 |
|---|---|---|
| committer | octorock <79596758+octorock@users.noreply.github.com> | 2021-06-23 08:30:45 +0200 |
| commit | 68b65dfd9ab6eabc211c782b2bc1fb2fa993abcc (patch) | |
| tree | f4ec4e29a1dfd9cfa3e83c3409c178cb9b4a139b /Makefile | |
| parent | 5a301b97fa1c41df0ad88542097e013be5870ab7 (diff) | |
Detect necessary baseroms in Makefile without change in scaninc
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
@@ -35,6 +35,43 @@ endif endif endif +# Check that the required baseroms are available. +ifeq ($(GAME_VERSION), USA) +baserom.gba: + $(error Missing baserom.gba) +.PHONY: baserom_demo.gba baserom_jp.gba baserom_eu.gba +baserom_demo.gba: +baserom_jp.gba: +baserom_eu.gba: +endif +ifeq ($(GAME_VERSION), DEMO) +baserom.gba: + $(error Missing baserom.gba) +baserom_demo.gba: + $(error Missing baserom_demo.gba) +.PHONY: baserom_jp.gba baserom_eu.gba +baserom_jp.gba: +baserom_eu.gba: +endif +ifeq ($(GAME_VERSION), JP) +baserom.gba: + $(error Missing baserom.gba) +baserom_jp.gba: + $(error Missing baserom_jp.gba) +.PHONY: baserom_demo.gba baserom_eu.gba +baserom_demo.gba: +baserom_eu.gba: +endif +ifeq ($(GAME_VERSION), EU) +baserom.gba: + $(error Missing baserom.gba) +baserom_jp.gba: + $(error Missing baserom_jp.gba) +baserom_eu.gba: + $(error Missing baserom_eu.gba) +.PHONY: baserom_demo.gba +baserom_demo.gba: +endif SHELL := /bin/bash -o pipefail |
