Makefile: Cleanup whole obj/ dir when clean
This commit is contained in:
		@@ -109,7 +109,9 @@ mrproper: clean
 | 
			
		||||
 | 
			
		||||
clean:
 | 
			
		||||
	@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:
 | 
			
		||||
	echo -e "TEMPLATE = app\nCONFIG -= console app_bundle qt" > $(target).pro
 | 
			
		||||
	echo -e "SOURCES += $(CFILES) $(ASFILES)" >> $(target).pro
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user