# -----------------------------------------------------------------------------\r
\r
# Sanity-check values of mandatory user-supplied variables\r
-MCU ?= $(error Makefile MCU value not set.)\r
-TARGET ?= $(error Makefile TARGET value not set.)\r
+MCU ?= $(error Makefile MCU value not set)\r
+TARGET ?= $(error Makefile TARGET value not set)\r
+\r
+ifeq ($(MCU),)\r
+ $(error Makefile MCU option cannot be blank)\r
+endif\r
+ifeq ($(TARGET),)\r
+ $(error Makefile TARGET option cannot be blank)\r
+endif\r
\r
# Default values of optionally user-supplied variables\r
AVRDUDE_PROGRAMMER ?= jtagicemkii\r
# -----------------------------------------------------------------------------\r
\r
# Sanity-check values of mandatory user-supplied variables\r
-MCU ?= $(error Makefile MCU value not set.)\r
-TARGET ?= $(error Makefile TARGET value not set.)\r
-ARCH ?= $(error Makefile ARCH value not set.)\r
-SRC ?= $(error Makefile SRC value not set.)\r
-F_USB ?= $(error Makefile F_USB value not set.)\r
-LUFA_PATH ?= $(error Makefile LUFA_PATH value not set.)\r
+MCU ?= $(error Makefile MCU value not set)\r
+TARGET ?= $(error Makefile TARGET value not set)\r
+ARCH ?= $(error Makefile ARCH value not set)\r
+SRC ?= $(error Makefile SRC value not set)\r
+F_USB ?= $(error Makefile F_USB value not set)\r
+LUFA_PATH ?= $(error Makefile LUFA_PATH value not set)\r
+\r
+ifeq ($(MCU),)\r
+ $(error Makefile MCU option cannot be blank)\r
+endif\r
+ifeq ($(TARGET),)\r
+ $(error Makefile TARGET option cannot be blank)\r
+endif\r
+ifeq ($(ARCH),)\r
+ $(error Makefile ARCH option cannot be blank)\r
+endif\r
+ifeq ($(F_USB),)\r
+ $(error Makefile F_USB option cannot be blank)\r
+endif\r
\r
# Default values of optionally user-supplied variables\r
BOARD ?= NONE\r
else ifeq ($(ARCH), UC3)\r
CROSS := avr32-\r
else\r
- $(error Unsupported architecture.)\r
+ $(error Unsupported architecture "$(ARCH)".)\r
endif\r
\r
# Output Messages\r
# -----------------------------------------------------------------------------\r
\r
# Sanity-check values of mandatory user-supplied variables\r
-MCU ?= $(error Makefile MCU value not set.)\r
-TARGET ?= $(error Makefile TARGET value not set.)\r
+MCU ?= $(error Makefile MCU value not set)\r
+TARGET ?= $(error Makefile TARGET value not set)\r
+\r
+ifeq ($(MCU),)\r
+ $(error Makefile MCU option cannot be blank)\r
+endif\r
+ifeq ($(TARGET),)\r
+ $(error Makefile TARGET option cannot be blank)\r
+endif\r
\r
# Output Messages\r
MSG_COPY_CMD := ' [CP] :'\r
# -----------------------------------------------------------------------------\r
\r
# Sanity-check values of mandatory user-supplied variables\r
-LUFA_PATH ?= $(error Makefile LUFA_PATH value not set.)\r
+LUFA_PATH ?= $(error Makefile LUFA_PATH value not set)\r
\r
# Default values of optionally user-supplied variables\r
DOXYGEN_CONF ?= Doxygen.conf\r
# -----------------------------------------------------------------------------\r
\r
# Sanity-check values of mandatory user-supplied variables\r
-ARCH ?= $(error Makefile ARCH value not set.)\r
-LUFA_PATH ?= $(error Makefile LUFA_PATH value not set.)\r
+ARCH ?= $(error Makefile ARCH value not set)\r
+LUFA_PATH ?= $(error Makefile LUFA_PATH value not set)\r
+\r
+ifeq ($(ARCH),)\r
+ $(error Makefile ARCH option cannot be blank)\r
+endif\r
\r
# Allow LUFA_ROOT_PATH to be overridden elsewhere to support legacy LUFA makefiles\r
LUFA_ROOT_PATH ?= $(patsubst %/,%,$(LUFA_PATH))\r