|
@@ -258,7 +258,7 @@ ALL_ASFLAGS = -mmcu=$(MCU) -I. -x assembler-with-cpp $(ASFLAGS)
|
258
|
258
|
|
259
|
259
|
|
260
|
260
|
# Default target.
|
261
|
|
-all: begin gccversion sizebefore build sizeafter finished end clean
|
|
261
|
+all: begin gccversion sizebefore build sizeafter finished end clean_list
|
262
|
262
|
|
263
|
263
|
build: elf hex eep lss sym
|
264
|
264
|
|
|
@@ -386,12 +386,14 @@ extcoff: $(TARGET).elf
|
386
|
386
|
|
387
|
387
|
|
388
|
388
|
# Target: clean project.
|
389
|
|
-clean: begin clean_list finished end
|
|
389
|
+clean: begin clean_2 finished end
|
|
390
|
+
|
|
391
|
+clean_2: clean_list
|
|
392
|
+ $(REMOVE) $(TARGET).hex
|
390
|
393
|
|
391
|
394
|
clean_list :
|
392
|
395
|
@echo
|
393
|
396
|
@echo $(MSG_CLEANING)
|
394
|
|
- $(REMOVE) $(TARGET).hex
|
395
|
397
|
$(REMOVE) $(TARGET).eep
|
396
|
398
|
$(REMOVE) $(TARGET).obj
|
397
|
399
|
$(REMOVE) $(TARGET).cof
|