Skip to content

Commit

Permalink
Add support for 'make CONFIG_clean' as per 'make TARGET_clean' (betaf…
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveCEvans authored Aug 18, 2023
1 parent 5f2d8da commit 08570ca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand All @@ -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

Expand Down

0 comments on commit 08570ca

Please sign in to comment.