Strip trailing slash from the user-supplied LUFA_PATH directory, to prevent double...
[pub/lufa.git] / LUFA / Build / lufa.dfu.in
index 8c478db..c3a102b 100644 (file)
@@ -36,15 +36,15 @@ LUFA_BUILD_OPTIONAL_VARS  +=
 #\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
+\r
 # Output Messages\r
 MSG_COPY_CMD    = ' [CP]      :'\r
 MSG_REMOVE_CMD  = ' [RM]      :'\r
 MSG_DFU_CMD     = ' [DFU]     :'\r
 \r
-# Sanity check the user MCU and TARGET makefile options\r
-MCU            ?= $(error Makefile MCU value not set.)\r
-TARGET         ?= $(error Makefile TARGET value not set.)\r
-\r
 flip: $(TARGET).hex\r
        @echo $(MSG_DFU_CMD) Programming FLASH with batchisp using \"$(TARGET).hex\"\r
        batchisp -hardware usb -device $(MCU) -operation erase f\r