2022-10-10 12:48:50 +00:00
|
|
|
GOIMPORTS_BIN ?= $(shell which goimports || true)
|
2022-08-14 14:02:07 +00:00
|
|
|
GOTEST_FLAGS ?= -v --coverprofile main.coverprofile --covermode count --cover github.com/urfave/cli/v2/cmd/urfave-cli-genflags
|
|
|
|
GOBUILD_FLAGS ?= -x
|
|
|
|
|
2022-10-10 12:48:50 +00:00
|
|
|
export GOIMPORTS_BIN
|
|
|
|
|
2022-08-14 14:02:07 +00:00
|
|
|
.PHONY: all
|
|
|
|
all: test build smoke-test
|
|
|
|
|
|
|
|
.PHONY: test
|
|
|
|
test:
|
|
|
|
go test $(GOTEST_FLAGS) ./...
|
|
|
|
|
|
|
|
.PHONY: build
|
|
|
|
build:
|
|
|
|
go build $(GOBUILD_FLAGS) ./...
|
|
|
|
|
|
|
|
.PHONY: smoke-test
|
|
|
|
smoke-test: build
|
|
|
|
./urfave-cli-genflags --help
|
|
|
|
|
|
|
|
.PHONY: show-cover
|
|
|
|
show-cover:
|
|
|
|
go tool cover -func main.coverprofile
|
2022-10-09 15:25:02 +00:00
|
|
|
|
|
|
|
.PHONY: run
|
|
|
|
run: build
|
2022-10-29 23:24:31 +00:00
|
|
|
./urfave-cli-genflags
|