mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 03:20:00 +03:00
Add support for 'make CONFIG_clean' as per 'make TARGET_clean' (#13038)
This commit is contained in:
parent
5f2d8da3b9
commit
08570cadce
1 changed files with 6 additions and 0 deletions
6
Makefile
6
Makefile
|
@ -474,6 +474,8 @@ $(BASE_TARGETS):
|
||||||
|
|
||||||
TARGETS_CLEAN = $(addsuffix _clean,$(BASE_TARGETS))
|
TARGETS_CLEAN = $(addsuffix _clean,$(BASE_TARGETS))
|
||||||
|
|
||||||
|
CONFIGS_CLEAN = $(addsuffix _clean,$(BASE_CONFIGS))
|
||||||
|
|
||||||
## clean : clean up temporary / machine-generated files
|
## clean : clean up temporary / machine-generated files
|
||||||
clean:
|
clean:
|
||||||
@echo "Cleaning $(TARGET_NAME)"
|
@echo "Cleaning $(TARGET_NAME)"
|
||||||
|
@ -492,6 +494,10 @@ test_clean:
|
||||||
$(TARGETS_CLEAN):
|
$(TARGETS_CLEAN):
|
||||||
$(V0) $(MAKE) -j TARGET=$(subst _clean,,$@) clean
|
$(V0) $(MAKE) -j TARGET=$(subst _clean,,$@) clean
|
||||||
|
|
||||||
|
## <CONFIG>_clean : clean up one specific target (alias for above)
|
||||||
|
$(CONFIGS_CLEAN):
|
||||||
|
$(V0) $(MAKE) -j CONFIG=$(subst _clean,,$@) clean
|
||||||
|
|
||||||
## clean_all : clean all targets
|
## clean_all : clean all targets
|
||||||
clean_all: $(TARGETS_CLEAN) test_clean
|
clean_all: $(TARGETS_CLEAN) test_clean
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue