aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Build/lufa.sources.in
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2012-06-02 12:00:51 +0000
committerDean Camera <dean@fourwalledcubicle.com>2012-06-02 12:00:51 +0000
commit29874f6db7db635e3cb6ee39a595334fc1c6514a (patch)
tree1609dc340b5786b3562d8f7f84db9f882575d9a1 /LUFA/Build/lufa.sources.in
parent276eb35d68f6fc9b3c252c17327c8d18ff7017e3 (diff)
downloadlufa-29874f6db7db635e3cb6ee39a595334fc1c6514a.tar.gz
lufa-29874f6db7db635e3cb6ee39a595334fc1c6514a.tar.bz2
lufa-29874f6db7db635e3cb6ee39a595334fc1c6514a.zip
Simplify build system mandatory parameter/variable sanity checks.
Diffstat (limited to 'LUFA/Build/lufa.sources.in')
-rw-r--r--LUFA/Build/lufa.sources.in8
1 files changed, 2 insertions, 6 deletions
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)