1
0
Fork 0
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:
Steve Evans 2023-08-18 09:02:00 +01:00 committed by GitHub
parent 5f2d8da3b9
commit 08570cadce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -474,6 +474,8 @@ $(BASE_TARGETS):
TARGETS_CLEAN = $(addsuffix _clean,$(BASE_TARGETS))
CONFIGS_CLEAN = $(addsuffix _clean,$(BASE_CONFIGS))
## clean : clean up temporary / machine-generated files
clean:
@echo "Cleaning $(TARGET_NAME)"
@ -492,6 +494,10 @@ test_clean:
$(TARGETS_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: $(TARGETS_CLEAN) test_clean