Fix mrpropewr make target to clean debug and release projects
This commit is contained in:
parent
cc6e922d1b
commit
ab4499a284
@ -14,7 +14,7 @@ LIBRARIES = -larm_cortexM4lf_math -lm
|
|||||||
|
|
||||||
DEFINES = -DSTM32F407xx -DSTM32F4XX -DARM_MATH_CM4 -DHSE_VALUE=8000000UL
|
DEFINES = -DSTM32F407xx -DSTM32F4XX -DARM_MATH_CM4 -DHSE_VALUE=8000000UL
|
||||||
MAPFILE_BASE = memory-mapping
|
MAPFILE_BASE = memory-mapping
|
||||||
LINKER_SCRIPT=stm32f407vet6_flash.ld
|
LINKER_SCRIPT=stm32f407vet6_flash.ld
|
||||||
|
|
||||||
export GIT_VER = $(shell git describe --always --dirty --tags)
|
export GIT_VER = $(shell git describe --always --dirty --tags)
|
||||||
DEFINES += -DGIT_VER=$(GIT_VER)
|
DEFINES += -DGIT_VER=$(GIT_VER)
|
||||||
@ -149,8 +149,16 @@ disassemble: $(target).elf
|
|||||||
objcopy: $(target).bin $(target).hex
|
objcopy: $(target).bin $(target).hex
|
||||||
|
|
||||||
mrproper: clean
|
mrproper: clean
|
||||||
@echo "Purging project files..."
|
ifneq ($(DEBUGBUILD),true)
|
||||||
|
@echo "Purging RELEASE project files"
|
||||||
|
else
|
||||||
|
@echo "Purging DEBUG project files"
|
||||||
|
endif
|
||||||
$(QUIET)rm -f $(target).pro $(target).creator $(target).files $(target).cflags $(target).cxxflags $(target).includes $(target).config
|
$(QUIET)rm -f $(target).pro $(target).creator $(target).files $(target).cflags $(target).cxxflags $(target).includes $(target).config
|
||||||
|
ifneq ($(DEBUGBUILD),true)
|
||||||
|
$(QUIET)$(MAKE) DEBUGBUILD=true mrproper
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@echo -n "Cleaning up derived files for "
|
@echo -n "Cleaning up derived files for "
|
||||||
|
Loading…
Reference in New Issue
Block a user