mirror of
https://github.com/izzy2lost/Diddy-Kong-Racing.git
synced 2026-06-19 01:16:26 -07:00
Makefile will now check if the user forgot to add in a baserom
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user