1
0
mirror of synced 2026-02-06 19:05:55 +00:00
Files
flux2/Makefile
Stefan Prodan 6003d11156 Embed the install manifests in flux binary
- add make target for generating the install manifests using kustomize
- embed the generated manifests in flux binary
- the install and bootstrap commands default to using the embedded manifests
- download the install manifests from GitHub only if the install/bootstrap version arg is set

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
2021-02-25 12:53:04 +02:00

33 lines
530 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: build-manifests tidy fmt vet docs
go test ./... -coverprofile cover.out
build-manifests:
./manifests/scripts/bundle.sh
build:
CGO_ENABLED=0 go build -o ./bin/flux ./cmd/flux
install:
go install cmd/flux
.PHONY: docs
docs:
rm docs/cmd/*
mkdir -p ./docs/cmd && go run ./cmd/flux/ docgen
install-dev:
CGO_ENABLED=0 go build -o /usr/local/bin ./cmd/flux