|
|
@ -1,4 +1,5 @@
|
|
|
|
VERSION?=$(shell grep 'VERSION' cmd/flux/main.go | awk '{ print $$4 }' | head -n 1 | tr -d '"')
|
|
|
|
VERSION?=$(shell grep 'VERSION' cmd/flux/main.go | awk '{ print $$4 }' | head -n 1 | tr -d '"')
|
|
|
|
|
|
|
|
DEV_VERSION?=0.0.0-$(shell git rev-parse --abbrev-ref HEAD)-$(shell git rev-parse --short HEAD)-$(shell date +%s)
|
|
|
|
EMBEDDED_MANIFESTS_TARGET=cmd/flux/.manifests.done
|
|
|
|
EMBEDDED_MANIFESTS_TARGET=cmd/flux/.manifests.done
|
|
|
|
TEST_KUBECONFIG?=/tmp/flux-e2e-test-kubeconfig
|
|
|
|
TEST_KUBECONFIG?=/tmp/flux-e2e-test-kubeconfig
|
|
|
|
# Architecture to use envtest with
|
|
|
|
# Architecture to use envtest with
|
|
|
@ -55,6 +56,9 @@ $(EMBEDDED_MANIFESTS_TARGET): $(call rwildcard,manifests/,*.yaml *.json)
|
|
|
|
build: $(EMBEDDED_MANIFESTS_TARGET)
|
|
|
|
build: $(EMBEDDED_MANIFESTS_TARGET)
|
|
|
|
CGO_ENABLED=0 go build -ldflags="-s -w -X main.VERSION=$(VERSION)" -o ./bin/flux ./cmd/flux
|
|
|
|
CGO_ENABLED=0 go build -ldflags="-s -w -X main.VERSION=$(VERSION)" -o ./bin/flux ./cmd/flux
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
build-dev: $(EMBEDDED_MANIFESTS_TARGET)
|
|
|
|
|
|
|
|
CGO_ENABLED=0 go build -ldflags="-s -w -X main.VERSION=$(DEV_VERSION)" -o ./bin/flux ./cmd/flux
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
.PHONY: install
|
|
|
|
install:
|
|
|
|
install:
|
|
|
|
CGO_ENABLED=0 go install ./cmd/flux
|
|
|
|
CGO_ENABLED=0 go install ./cmd/flux
|
|
|
|