From 29874f6db7db635e3cb6ee39a595334fc1c6514a Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sat, 2 Jun 2012 12:00:51 +0000 Subject: Simplify build system mandatory parameter/variable sanity checks. --- LUFA/Build/lufa.sources.in | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'LUFA/Build/lufa.sources.in') diff --git a/LUFA/Build/lufa.sources.in b/LUFA/Build/lufa.sources.in index 37263b602..a2e02e979 100644 --- a/LUFA/Build/lufa.sources.in +++ b/LUFA/Build/lufa.sources.in @@ -36,12 +36,8 @@ LUFA_BUILD_OPTIONAL_VARS += # ----------------------------------------------------------------------------- # Sanity check the user LUFA_PATH and ARCH makefile options -ifeq ($(LUFA_PATH),) - $(error Makefile LUFA_PATH value not set.) -endif -ifeq ($(ARCH),) - $(error Makefile ARCH value not set.) -endif +ARCH ?= $(error Makefile ARCH value not set.) +LUFA_PATH ?= $(error Makefile LUFA_PATH value not set.) # Allow LUFA_ROOT_PATH to be overridden elsewhere to support legacy LUFA makefiles LUFA_ROOT_PATH ?= $(LUFA_PATH) -- cgit v1.2.3