From 4e8d0f2f4b4e158963ac78bb7c1356621fb638c0 Mon Sep 17 00:00:00 2001 From: qwert Date: Wed, 16 Jul 2008 14:54:21 +0000 Subject: [PATCH] Add cleanall alias for codeblocks git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1486 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/rules.mk | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bertos/rules.mk b/bertos/rules.mk index f62c5cd8..583c25fc 100644 --- a/bertos/rules.mk +++ b/bertos/rules.mk @@ -45,7 +45,7 @@ RECURSIVE_TARGETS = all-recursive install-recursive clean-recursive # The default target .PHONY: all -all:: all-recursive $(TRG_TGT) +all:: all-recursive $(TRG_TGT) # Generate project documentation .PHONY: docs @@ -156,7 +156,7 @@ $$($(1)_CPPAOBJ): $$(OBJDIR)/$(1)/%.o : %.S $L "$(1): Assembling with CPP $$<" @$$(MKDIR_P) $$(dir $$@) $Q $$($(1)_CC) -c $$(CPPAFLAGS) $$($(1)_CPPAFLAGS) $$($(1)_CPPFLAGS) $$(CPPFLAGS) $$< -o $$@ - + # Link: instructions to create elf output file from object files $$(OUTDIR)/$(1).elf $$(OUTDIR)/$(1)_nostrip: bumprev $$($(1)_OBJ) $$($(1)_LDSCRIPT) @@ -168,7 +168,7 @@ $$(OUTDIR)/$(1).elf $$(OUTDIR)/$(1)_nostrip: bumprev $$($(1)_OBJ) $$($(1)_LDSCRI $$(OUTDIR)/$(1): $$(OUTDIR)/$(1)_nostrip $L "$(1): Generating stripped executable $$@" $Q $$($(1)_STRIP) -o $$@ $$^ - + # Compile and link (program-at-a-time) $$(OUTDIR)/$(1)_whole.elf: bumprev $$($(1)_SRC) $$($(1)_LDSCRIPT) $L "$(1): Compiling and Linking whole program $$@" @@ -247,6 +247,7 @@ $(foreach t,$(TRG),$(eval $(call build_target,$(t)))) # $(COFFCONVERT) -O coff-avr $< $@ # For use with AVRstudio 3 #make instruction to delete created files +cleanall: clean clean: clean-recursive -$(RM_R) $(OBJDIR) -$(RM_R) $(OUTDIR) -- 2.25.1