Codebase list go-md2man-v2 / 4d1d1b50-0835-4434-ab55-3c288bfae07f/upstream Makefile
4d1d1b50-0835-4434-ab55-3c288bfae07f/upstream

Tree @4d1d1b50-0835-4434-ab55-3c288bfae07f/upstream (Download .tar.gz)

Makefile @4d1d1b50-0835-4434-ab55-3c288bfae07f/upstreamraw · history · blame

GO111MODULE ?= on
LINTER_BIN ?= golangci-lint

export GO111MODULE

.PHONY:
build: bin/go-md2man

.PHONY: clean
clean:
	@rm -rf bin/*

.PHONY: test
test:
	@go test $(TEST_FLAGS) ./...

bin/go-md2man: actual_build_flags := $(BUILD_FLAGS) -o bin/go-md2man
bin/go-md2man: bin
	@CGO_ENABLED=0 go build $(actual_build_flags)

bin:
	@mkdir ./bin

.PHONY: mod
mod:
	@go mod tidy

.PHONY: check-mod
check-mod: # verifies that module changes for go.mod and go.sum are checked in
	@hack/ci/check_mods.sh

.PHONY: vendor
vendor: mod
	@go mod vendor -v