Skip to content

Commit

Permalink
build: perform bazel clean --expunge on make clean
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
rickystewart committed Mar 15, 2021
1 parent 77a21a4 commit d97418b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1679,11 +1679,12 @@ cleanshort:
rm -rf $(ARCHIVE) pkg/sql/parser/gen

.PHONY: clean
clean: ## Like cleanshort, but also includes C++ artifacts and the go build cache.
clean: ## Like cleanshort, but also includes C++ artifacts, Bazel artifacts, and the go build cache.
clean: cleanshort clean-c-deps
rm -rf build/defs.mk*
-$(GO) clean $(GOFLAGS) $(GOMODVENDORFLAGS) -tags '$(TAGS)' -ldflags '$(LINKFLAGS)' -i -cache github.com/cockroachdb/cockroach...
$(FIND_RELEVANT) -type f -name 'zcgo_flags*.go' -exec rm {} +
if command -v bazel &> /dev/null; then bazel clean --expunge; fi
rm -rf artifacts bin

.PHONY: maintainer-clean
Expand Down

0 comments on commit d97418b

Please sign in to comment.