# -----------------------------------------------------------------------------\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
dfu-ee: $(TARGET).eep $(MAKEFILE_LIST)\r
@echo $(MSG_DFU_CMD) Programming EEPROM with dfu-programmer using \"$(TARGET).eep\"\r
dfu-programmer $(MCU) eeprom-flash $(TARGET).eep\r
- dfu-programmer $(MCU) reset
\ No newline at end of file
+ dfu-programmer $(MCU) reset\r
+ \r
+# Phony build targets for this module\r
+.PHONY: flip flip-ee dfu dfu-ee
\ No newline at end of file