Add explicit blank checks in the build system for user-set but blank variables that...
[pub/lufa.git] / LUFA / Build / lufa.avrdude.in
index 52cb44b..a0bef19 100644 (file)
@@ -39,8 +39,15 @@ LUFA_BUILD_OPTIONAL_VARS  += AVRDUDE_PROGRAMMER AVRDUDE_PORT AVRDUDE_FLAGS
 # -----------------------------------------------------------------------------\r
 \r
 # Sanity-check values of mandatory user-supplied variables\r
-MCU                ?= $(error Makefile MCU value not set.)\r
-TARGET             ?= $(error Makefile TARGET value not set.)\r
+MCU                ?= $(error Makefile MCU value not set)\r
+TARGET             ?= $(error Makefile TARGET value not set)\r
+\r
+ifeq ($(MCU),)\r
+   $(error Makefile MCU option cannot be blank)\r
+endif\r
+ifeq ($(TARGET),)\r
+   $(error Makefile TARGET option cannot be blank)\r
+endif\r
 \r
 # Default values of optionally user-supplied variables\r
 AVRDUDE_PROGRAMMER ?= jtagicemkii\r