From 3cb09b472c97fffe93ae70a5f2c64cf61ffe5430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?King=20K=C3=A9vin?= Date: Thu, 18 Feb 2016 10:55:49 +0100 Subject: [PATCH] fix multiple rules for same target --- Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 2f85639..880db8d 100644 --- a/Makefile +++ b/Makefile @@ -141,13 +141,10 @@ hex: $(BINARY).hex srec: $(BINARY).srec list: $(BINARY).list -%.bin: %.elf -%.hex: %.elf -%.srec: %.elf +%.bin %.hex %.srec: %.elf $(Q)$(OBJCOPY) -Osrec $(<) $(@) -%.map: %.elf -%.list: %.elf +%.map %.list: %.elf $(Q)$(OBJDUMP) -S $(<) > $(@) %.elf: $(LDSCRIPT) $(LIB_DIR)/lib$(LIBNAME).a $(OBJ) $(LIB_OBJ)