summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authoroctorock <79596758+octorock@users.noreply.github.com>2021-06-22 23:20:04 +0200
committeroctorock <79596758+octorock@users.noreply.github.com>2021-06-23 08:30:45 +0200
commit68b65dfd9ab6eabc211c782b2bc1fb2fa993abcc (patch)
treef4ec4e29a1dfd9cfa3e83c3409c178cb9b4a139b /Makefile
parent5a301b97fa1c41df0ad88542097e013be5870ab7 (diff)
Detect necessary baseroms in Makefile without change in scaninc
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index fbf922d0..e992a477 100644
--- a/Makefile
+++ b/Makefile
@@ -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