Make clean target silent in Makefile

This commit is contained in:
Mario Hüttel 2020-03-01 21:05:50 +01:00
parent a338831d69
commit 9b90af8405

View File

@ -109,10 +109,11 @@ disassemble: $(target).elf
objcopy: $(target).bin $(target).hex
mrproper: clean
rm -f $(target).pro
$(QUIET)rm -f $(target).pro
clean:
rm -f $(target).elf $(target).bin $(target).hex $(OBJ) $(ASOBJ) $(mapfile).map $(CFILES:%.c=$(OBJDIR)/%.c.d) $(ASFILES:%.S=$(OBJDIR)/%.S.d)
@echo "Cleaning up derived files..."
$(QUIET)rm -f $(target).elf $(target).bin $(target).hex $(OBJ) $(ASOBJ) $(mapfile).map $(CFILES:%.c=$(OBJDIR)/%.c.d) $(ASFILES:%.S=$(OBJDIR)/%.S.d)
qtproject:
echo -e "TEMPLATE = app\nCONFIG -= console app_bundle qt" > $(target).pro
echo -e "SOURCES += $(CFILES) $(ASFILES)" >> $(target).pro