From a7cf7533f232b7289172719d4e415838d076b2a0 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 8 Jul 2019 19:19:03 +0200 Subject: [PATCH] Modbus: More makefile cleanups... --- test-modbus/Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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: -- 2.39.2