Skip to content

Commit

Permalink
Makefile: add clean-workdir target
Browse files Browse the repository at this point in the history
This means it's easier to run e2e tests locally with a clean
starting point e.g make clean-workdir test-e2e-sharded-minimal
  • Loading branch information
Steven Hardy committed Feb 1, 2023
1 parent 867f13e commit a40856e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -382,10 +382,15 @@ verify-modules: modules ## Verify go modules are up to date
hack/verify-go-modules.sh

.PHONY: clean
clean:
clean: clean-workdir
rm -fr $(TOOLS_DIR)
rm -f $(GOBIN_DIR)/*

.PHONY: clean-workdir
clean-workdir: WORK_DIR ?= .
clean-workdir:
rm -fr $(WORK_DIR)/.kcp*

.PHONY: help
help: ## Show this help.
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

0 comments on commit a40856e

Please sign in to comment.