From 5af18ba2883d51c54bad8de23bcea01fb22c4daa Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sun, 3 Jun 2012 12:39:53 +0000 Subject: Add explicit blank checks in the build system for user-set but blank variables that must not be blank. --- LUFA/Build/lufa.sources.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'LUFA/Build/lufa.sources.in') diff --git a/LUFA/Build/lufa.sources.in b/LUFA/Build/lufa.sources.in index c189e792f..47cda0c99 100644 --- a/LUFA/Build/lufa.sources.in +++ b/LUFA/Build/lufa.sources.in @@ -36,8 +36,12 @@ LUFA_BUILD_OPTIONAL_VARS += # ----------------------------------------------------------------------------- # Sanity-check values of mandatory user-supplied variables -ARCH ?= $(error Makefile ARCH value not set.) -LUFA_PATH ?= $(error Makefile LUFA_PATH value not set.) +ARCH ?= $(error Makefile ARCH value not set) +LUFA_PATH ?= $(error Makefile LUFA_PATH value not set) + +ifeq ($(ARCH),) + $(error Makefile ARCH option cannot be blank) +endif # Allow LUFA_ROOT_PATH to be overridden elsewhere to support legacy LUFA makefiles LUFA_ROOT_PATH ?= $(patsubst %/,%,$(LUFA_PATH)) -- cgit v1.2.3