diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2012-06-26 17:37:25 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2012-06-26 17:37:25 +0000 |
commit | 80fab49e1dafaa4eaefd14a34245888bf9ee3804 (patch) | |
tree | 05c482e09062dbdc7938846bc95ab6dd19e30216 /LUFA/Build | |
parent | aba33a03341dd80bd3cb9efea1001f42bd82c715 (diff) | |
download | lufa-80fab49e1dafaa4eaefd14a34245888bf9ee3804.tar.gz lufa-80fab49e1dafaa4eaefd14a34245888bf9ee3804.tar.bz2 lufa-80fab49e1dafaa4eaefd14a34245888bf9ee3804.zip |
Add "mostlyclean" makefile target to the BUILD build system module.
Diffstat (limited to 'LUFA/Build')
-rw-r--r-- | LUFA/Build/lufa.build.in | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/LUFA/Build/lufa.build.in b/LUFA/Build/lufa.build.in index 0e1a4501e..91c54f969 100644 --- a/LUFA/Build/lufa.build.in +++ b/LUFA/Build/lufa.build.in @@ -7,7 +7,7 @@ # LUFA_BUILD_MODULES += BUILD -LUFA_BUILD_TARGETS += size check-source symbol-sizes all lib elf hex lss clean +LUFA_BUILD_TARGETS += size check-source symbol-sizes all lib elf hex lss clean mostlyclean LUFA_BUILD_MANDATORY_VARS += TARGET ARCH MCU SRC F_USB LUFA_PATH LUFA_BUILD_OPTIONAL_VARS += BOARD OPTIMIZATION C_STANDARD CPP_STANDARD F_CPU C_FLAGS CPP_FLAGS ASM_FLAGS CC_FLAGS LD_FLAGS OBJDIR LUFA_BUILD_PROVIDED_VARS += @@ -32,7 +32,10 @@ LUFA_BUILD_PROVIDED_MACROS += # elf - Build application ELF debug object file # hex - Build application HEX object files # lss - Build application LSS assembly listing file -# clean - Remove output files +# clean - Remove all project intermediatary and binary +# output files +# mostlyclean - Remove intermediatary output files, but +# preserve binaries # # MANDATORY PARAMETERS: # @@ -211,11 +214,13 @@ symbol-sizes: $(TARGET).elf @echo $(MSG_NM_CMD) Extracting \"$<\" symbols with decimal byte sizes $(CROSS)-nm --size-sort --demangle --radix=d $< -clean: +mostlyclean: @echo $(MSG_REMOVE_CMD) Removing object files of \"$(TARGET)\" rm -f $(OBJECT_FILES) @echo $(MSG_REMOVE_CMD) Removing dependency files of \"$(TARGET)\" rm -f $(DEPENDENCY_FILES) + +clean: mostlyclean @echo $(MSG_REMOVE_CMD) Removing output files of \"$(TARGET)\" rm -f $(TARGET).elf $(TARGET).hex $(TARGET).eep $(TARGET).map $(TARGET).lss $(TARGET).sym $(TARGET).a @@ -271,4 +276,4 @@ $(OBJDIR)/%.o: %.S $(MAKEFILE_LIST) -include $(DEPENDENCY_FILES) # Phony build targets for this module -.PHONY: build_begin build_end gcc-version check-source size symbol-sizes lib elf hex lss clean +.PHONY: build_begin build_end gcc-version check-source size symbol-sizes lib elf hex lss clean mostlyclean |