urfave-cli/cmd/urfave-cli-genflags/Makefile
Dan Buch 11915a875d
Build and run urfave-cli-genflags via its Makefile
so that `go.mod` files don't get all confused
2022-10-09 11:25:02 -04:00

26 lines
479 B
Makefile

GOTEST_FLAGS ?= -v --coverprofile main.coverprofile --covermode count --cover github.com/urfave/cli/v2/cmd/urfave-cli-genflags
GOBUILD_FLAGS ?= -x
.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
.PHONY: run
run: build
./urfave-cli-genflags