diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2012-06-02 12:00:51 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2012-06-02 12:00:51 +0000 |
commit | 29874f6db7db635e3cb6ee39a595334fc1c6514a (patch) | |
tree | 1609dc340b5786b3562d8f7f84db9f882575d9a1 /LUFA/Build/lufa.sources.in | |
parent | 276eb35d68f6fc9b3c252c17327c8d18ff7017e3 (diff) | |
download | lufa-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.in | 8 |
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)
|