Makefile will now check if the user forgot to add in a baserom

This commit is contained in:
David Benepe
2021-06-30 15:44:50 -05:00
parent 86b19cfeac
commit 8a7d31b924
+7
View File
@@ -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