Files
weave-scope/extras/scanner/Makefile
2019-07-02 08:39:28 +00:00

25 lines
405 B
Makefile

.PHONY: all vet lint build test clean
GIT_REVISION := $(shell git rev-parse HEAD)
GO_BUILD_FLAGS=$(GO_BUILD_INSTALL_DEPS) -ldflags "-extldflags \"-static\" -s -w" -tags netgo
all: build test vet lint
vet:
go vet ./...
lint:
golint .
build:
go build $(GO_BUILD_FLAGS)
test:
go test
docker: build
docker build --build-arg=revision=$(GIT_REVISION) -t weaveworks/scope-deleter .
clean:
go clean