From: Martin Mares Date: Mon, 8 Jul 2019 17:19:03 +0000 (+0200) Subject: Modbus: More makefile cleanups... X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=a7cf7533f232b7289172719d4e415838d076b2a0;p=home-hw.git Modbus: More makefile cleanups... --- diff --git a/test-modbus/Makefile b/test-modbus/Makefile index ddee040..9590e49 100644 --- a/test-modbus/Makefile +++ b/test-modbus/Makefile @@ -10,8 +10,7 @@ DEVICE=stm32f103x8 all: $(BINARY).elf $(BINARY).bin -flash: all - ../bin/st-flash write $(BINARY).bin 0x8000000 +flash: $(BINARY).flash reset: all ../bin/st-flash reset @@ -76,9 +75,9 @@ clean: @printf " CLEAN\n" $(Q)rm -f *.elf *.bin *.o *.d *.map $(LDSCRIPT) -%.stlink-flash: %.bin +%.flash: %.bin @printf " FLASH $<\n" - $(STFLASH) write $(*).bin 0x8000000 + $(Q)../bin/st-flash write $(*).bin 0x8000000 .SECONDEXPANSION: .SECONDARY: