MSG_DFU_CMD := ' [DFU] :'\r
\r
flip: $(TARGET).hex $(MAKEFILE_LIST)\r
- @echo $(MSG_DFU_CMD) Programming FLASH with batchisp using \"$(TARGET).hex\"\r
+ @echo $(MSG_DFU_CMD) Programming FLASH with batchisp using \"$<\"\r
batchisp -hardware usb -device $(MCU) -operation erase f\r
- batchisp -hardware usb -device $(MCU) -operation loadbuffer $(TARGET).hex program\r
+ batchisp -hardware usb -device $(MCU) -operation loadbuffer $< program\r
batchisp -hardware usb -device $(MCU) -operation start reset 0\r
\r
flip-ee: $(TARGET).eep $(MAKEFILE_LIST)\r
- @echo $(MSG_DFU_CMD) Copying EEP file to temporary file \"$(TARGET)eep.hex\"\r
- cp $(TARGET).eep $(TARGET)eep.hex\r
- @echo $(MSG_DFU_CMD) Programming EEPROM with batchisp using \"$(TARGET).eep\"\r
+ @echo $(MSG_DFU_CMD) Copying EEP file to temporary file \"$<.hex\"\r
+ cp $< $<.hex\r
+ @echo $(MSG_DFU_CMD) Programming EEPROM with batchisp using \"$<.hex\"\r
batchisp -hardware usb -device $(MCU) -operation memory EEPROM erase\r
- batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $(TARGET)eep.hex program\r
+ batchisp -hardware usb -device $(MCU) -operation memory EEPROM loadbuffer $<.hex program\r
batchisp -hardware usb -device $(MCU) -operation start reset 0\r
- @echo $(MSG_DFU_CMD) Removing temporary file \"$(TARGET)eep.hex\"\r
- rm $(TARGET)eep.hex\r
+ @echo $(MSG_DFU_CMD) Removing temporary file \"$<.hex\"\r
+ rm $<.hex\r
\r
dfu: $(TARGET).hex $(MAKEFILE_LIST)\r
- @echo $(MSG_DFU_CMD) Programming FLASH with dfu-programmer using \"$(TARGET).hex\"\r
+ @echo $(MSG_DFU_CMD) Programming FLASH with dfu-programmer using \"$<\"\r
dfu-programmer $(MCU) erase\r
- dfu-programmer $(MCU) flash $(TARGET).hex\r
+ dfu-programmer $(MCU) flash $<\r
dfu-programmer $(MCU) reset\r
\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
+ @echo $(MSG_DFU_CMD) Programming EEPROM with dfu-programmer using \"$<\"\r
+ dfu-programmer $(MCU) eeprom-flash $<\r
dfu-programmer $(MCU) reset\r
\r
# Phony build targets for this module\r