From 8a7d31b924649b15f9e212527a74d46da2292433 Mon Sep 17 00:00:00 2001 From: David Benepe Date: Wed, 30 Jun 2021 15:44:50 -0500 Subject: [PATCH] Makefile will now check if the user forgot to add in a baserom --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index dc15bee4..30574c4a 100755 --- a/Makefile +++ b/Makefile @@ -27,6 +27,13 @@ ifneq ($(MAKECMDGOALS),clean_lib) ifneq ($(MAKECMDGOALS),clean_src) ifneq ($(MAKECMDGOALS),reset) +################ Check if a baserom exists ################ + +numberOfFilesInBaseromsDirectory := $(words $(wildcard baseroms/*)) +ifeq ($(shell test $(numberOfFilesInBaseromsDirectory) -lt 1; echo $$?),0) + $(error Make sure you have a DKR rom in the /baseroms/ directory) +endif + ########## Make tools ########## DUMMY != make -s -C tools >&2 || echo FAIL