Procházet zdrojové kódy

Fix clean behaviour

Vladimir Shilov před 5 roky
rodič
revize
8de6fb6d6e
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      Makefile

+ 3 - 3
Makefile

@@ -147,7 +147,7 @@ VPATH := $(SOURCEDIRS)
 
 # List of files to remove with "make clean"
 #-------------------------------------------------------------------------------
-#TOREMOVE += $(TARGET).elf $(TARGET).hex $(TARGET).map
+TOREMOVE += $(TARGET).elf $(TARGET).hex $(TARGET).map
 TOREMOVE += $(addsuffix /*.o, $(SOURCEDIRS))
 TOREMOVE += .dep/*.d
 #TOREMOVE += $(STDPERIPH_SRC_PATH)/*.o
@@ -170,7 +170,7 @@ mcu_reset:
 # Cleaning
 #-------------------------------------------------------------------------------
 clean:
-	@$(RM) -f $(TARGET).elf $(TARGET).hex $(TARGET).map
+	@$(RM) -f $(TOREMOVE)
 
 # Create .hex
 #-------------------------------------------------------------------------------
@@ -182,7 +182,7 @@ $(TARGET).hex: $(TARGET).elf
 size:
 	@echo "---------------------------------------------------"
 	@$(SZ) $(TARGET).elf
-	@rm -f $(TOREMOVE)
+	@rm -f $(STDPERIPH_SRC_PATH)/*.o
 
 # Linking
 #-------------------------------------------------------------------------------