Skip to content

Commit

Permalink
make: add clean target (#344)
Browse files Browse the repository at this point in the history
Signed-off-by: xhe <xw897002528@gmail.com>
  • Loading branch information
xhebox authored Aug 24, 2023
1 parent 44234f6 commit bcb0848
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ endif
IMAGE_TAG ?= latest
EXECUTABLE_TARGETS := $(patsubst cmd/%,cmd_%,$(wildcard cmd/*))

.PHONY: cmd_% test lint docker docker-release golangci-lint gocovmerge
.PHONY: cmd_% test lint docker docker-release golangci-lint gocovmerge clean

default: cmd

Expand Down Expand Up @@ -79,6 +79,9 @@ test: gocovmerge
rm -f .cover.*
go tool cover -html=.cover -o .cover.html

clean:
rm -rf bin dist grafonnet-lib

docker:
docker build -t "$(DOCKERPREFIX)tiproxy:$(IMAGE_TAG)" --build-arg "GOPROXY=$(shell go env GOPROXY)" --build-arg "VERSION=$(VERSION)" --build-arg "COMMIT=$(COMMIT)" -f docker/Dockerfile .

Expand Down

0 comments on commit bcb0848

Please sign in to comment.