diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2012-06-03 12:39:53 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2012-06-03 12:39:53 +0000 |
commit | 5af18ba2883d51c54bad8de23bcea01fb22c4daa (patch) | |
tree | 98fce7d63603d35191b69ffad7d0c4fcffe0b6e3 /LUFA/Build/lufa.dfu.in | |
parent | 88425d7dabd07a712b32995a635a7f883ff5f726 (diff) | |
download | lufa-5af18ba2883d51c54bad8de23bcea01fb22c4daa.tar.gz lufa-5af18ba2883d51c54bad8de23bcea01fb22c4daa.tar.bz2 lufa-5af18ba2883d51c54bad8de23bcea01fb22c4daa.zip |
Add explicit blank checks in the build system for user-set but blank variables that must not be blank.
Diffstat (limited to 'LUFA/Build/lufa.dfu.in')
-rw-r--r-- | LUFA/Build/lufa.dfu.in | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/LUFA/Build/lufa.dfu.in b/LUFA/Build/lufa.dfu.in index 91922d0cb..33b5b7dc0 100644 --- a/LUFA/Build/lufa.dfu.in +++ b/LUFA/Build/lufa.dfu.in @@ -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] :'
|