1
0
mirror of synced 2026-02-06 10:55:56 +00:00
Files
flux2/Makefile
Hidde Beydals e2752e4508 Rename gotk binary to flux
Signed-off-by: Hidde Beydals <hello@hidde.co>
2020-10-29 16:25:16 +01:00

29 lines
450 B
Makefile

VERSION?=$(shell grep 'VERSION' cmd/flux/main.go | awk '{ print $$4 }' | tr -d '"')
all: test build
tidy:
go mod tidy
fmt:
go fmt ./...
vet:
go vet ./...
test: tidy fmt vet docs
go test ./... -coverprofile cover.out
build:
CGO_ENABLED=0 go build -o ./bin/flux ./cmd/flux
install:
go install cmd/flux
.PHONY: docs
docs:
mkdir -p ./docs/cmd && go run ./cmd/flux/ docgen
install-dev:
CGO_ENABLED=0 go build -o /usr/local/bin ./cmd/flux