Add static-binaries
target
Signed-off-by: Ian Campbell <ijc@docker.com>
This commit is contained in:
parent
7709115afe
commit
7008be890f
25
Makefile
25
Makefile
@ -32,16 +32,17 @@ default: help
|
|||||||
help:
|
help:
|
||||||
@echo "Usage: make <target>"
|
@echo "Usage: make <target>"
|
||||||
@echo
|
@echo
|
||||||
@echo " * 'install' - Install binaries to system locations"
|
@echo " * 'install' - Install binaries to system locations"
|
||||||
@echo " * 'binaries' - Build cri-containerd"
|
@echo " * 'binaries' - Build cri-containerd"
|
||||||
@echo " * 'test' - Test cri-containerd"
|
@echo " * 'static-binaries - Build static cri-containerd"
|
||||||
@echo " * 'test-cri' - Test cri-containerd with cri validation test"
|
@echo " * 'test' - Test cri-containerd"
|
||||||
@echo " * 'clean' - Clean artifacts"
|
@echo " * 'test-cri' - Test cri-containerd with cri validation test"
|
||||||
@echo " * 'verify' - Execute the source code verification tools"
|
@echo " * 'clean' - Clean artifacts"
|
||||||
@echo " * 'install.tools' - Install tools used by verify"
|
@echo " * 'verify' - Execute the source code verification tools"
|
||||||
@echo " * 'install.deps' - Install dependencies of cri-containerd (containerd, runc, cni)"
|
@echo " * 'install.tools' - Install tools used by verify"
|
||||||
@echo " * 'uninstall' - Remove installed binaries from system locations"
|
@echo " * 'install.deps' - Install dependencies of cri-containerd (containerd, runc, cni)"
|
||||||
@echo " * 'version' - Print current cri-containerd release version"
|
@echo " * 'uninstall' - Remove installed binaries from system locations"
|
||||||
|
@echo " * 'version' - Print current cri-containerd release version"
|
||||||
|
|
||||||
.PHONY: check-gopath
|
.PHONY: check-gopath
|
||||||
|
|
||||||
@ -84,6 +85,9 @@ clean:
|
|||||||
|
|
||||||
binaries: cri-containerd
|
binaries: cri-containerd
|
||||||
|
|
||||||
|
static-binaries: GO_LDFLAGS=--ldflags '-extldflags "-fno-PIC -static"'
|
||||||
|
static-binaries: cri-containerd
|
||||||
|
|
||||||
install: check-gopath
|
install: check-gopath
|
||||||
install -D -m 755 $(BUILD_DIR)/cri-containerd $(BINDIR)/cri-containerd
|
install -D -m 755 $(BUILD_DIR)/cri-containerd $(BINDIR)/cri-containerd
|
||||||
|
|
||||||
@ -118,6 +122,7 @@ install.tools: .install.gitvalidation .install.gometalinter
|
|||||||
|
|
||||||
.PHONY: \
|
.PHONY: \
|
||||||
binaries \
|
binaries \
|
||||||
|
static-binaries \
|
||||||
boiler \
|
boiler \
|
||||||
clean \
|
clean \
|
||||||
default \
|
default \
|
||||||
|
Loading…
Reference in New Issue
Block a user