fix multiple rules for same target

This commit is contained in:
King Kévin 2016-02-18 10:55:49 +01:00
parent 6954ceea8e
commit 3cb09b472c
1 changed files with 2 additions and 5 deletions

View File

@ -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)