Makefile: Cleanup whole obj/ dir when clean
This commit is contained in:
parent
bd82f55966
commit
90da880386
@ -109,7 +109,9 @@ mrproper: clean
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
@echo "Cleaning up derived files..."
|
@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)
|
$(QUIET)rm -f $(target).elf $(target).bin $(target).hex $(OBJ) $(ASOBJ) $(mapfile).map $(CFILES:%.c=$(OBJDIR)/%.c.d) $(ASFILES:%.S=$(OBJDIR)/%.S.d)
|
||||||
|
$(QUIET)rm -rf $(OBJDIR)/*
|
||||||
|
|
||||||
qtproject:
|
qtproject:
|
||||||
echo -e "TEMPLATE = app\nCONFIG -= console app_bundle qt" > $(target).pro
|
echo -e "TEMPLATE = app\nCONFIG -= console app_bundle qt" > $(target).pro
|
||||||
echo -e "SOURCES += $(CFILES) $(ASFILES)" >> $(target).pro
|
echo -e "SOURCES += $(CFILES) $(ASFILES)" >> $(target).pro
|
||||||
|
Loading…
Reference in New Issue
Block a user