Add explicit blank checks in the build system for user-set but blank variables that must not be blank.

This commit is contained in:
Dean Camera 2012-06-03 12:39:53 +00:00
parent 88425d7dab
commit 5af18ba288
5 changed files with 45 additions and 14 deletions

View file

@ -37,8 +37,15 @@ LUFA_BUILD_OPTIONAL_VARS +=
# -----------------------------------------------------------------------------
# Sanity-check values of mandatory user-supplied variables
MCU ?= $(error Makefile MCU value not set.)
TARGET ?= $(error Makefile TARGET value not set.)
MCU ?= $(error Makefile MCU value not set)
TARGET ?= $(error Makefile TARGET value not set)
ifeq ($(MCU),)
$(error Makefile MCU option cannot be blank)
endif
ifeq ($(TARGET),)
$(error Makefile TARGET option cannot be blank)
endif
# Output Messages
MSG_COPY_CMD := ' [CP] :'