mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
Makefile: add build target
This commit is contained in:
parent
a68a4ec4fb
commit
02dc1ae1e9
1 changed files with 6 additions and 0 deletions
6
Makefile
6
Makefile
|
@ -20,11 +20,17 @@ HOSTMOUNT_PREFIX := /host-
|
|||
KUBECONFIG :=
|
||||
E2E_TEST_CONFIG :=
|
||||
|
||||
LDFLAGS = -ldflags "-s -w -X sigs.k8s.io/node-feature-discovery/pkg/version.version=$(VERSION)"
|
||||
|
||||
yaml_templates := $(wildcard *.yaml.template)
|
||||
yaml_instances := $(patsubst %.yaml.template,%.yaml,$(yaml_templates))
|
||||
|
||||
all: image
|
||||
|
||||
build:
|
||||
@mkdir -p bin
|
||||
$(GO_CMD) build -v -o bin $(LDFLAGS) ./cmd/...
|
||||
|
||||
image: yamls
|
||||
$(IMAGE_BUILD_CMD) --build-arg NFD_VERSION=$(VERSION) \
|
||||
--build-arg HOSTMOUNT_PREFIX=$(HOSTMOUNT_PREFIX) \
|
||||
|
|
Loading…
Reference in a new issue