mirror of https://github.com/docker/docs.git
adding additional 'make static' command to create static builds of server and signer
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
This commit is contained in:
parent
3fcfa2043c
commit
6d091596bc
11
Makefile
11
Makefile
|
@ -71,6 +71,14 @@ ${PREFIX}/bin/notary-signer: NOTARY_VERSION $(shell find . -type f -name '*.go')
|
||||||
@echo "+ $@"
|
@echo "+ $@"
|
||||||
@godep go build -tags ${NOTARY_BUILDTAGS} -o $@ ${GO_LDFLAGS} ./cmd/notary-signer
|
@godep go build -tags ${NOTARY_BUILDTAGS} -o $@ ${GO_LDFLAGS} ./cmd/notary-signer
|
||||||
|
|
||||||
|
${PREFIX}/bin/static/notary-server: NOTARY_VERSION $(shell find . -type f -name '*.go')
|
||||||
|
@echo "+ $@"
|
||||||
|
@godep go build -tags ${NOTARY_BUILDTAGS} -o $@ ${GO_LDFLAGS_STATIC} ./cmd/notary-server
|
||||||
|
|
||||||
|
${PREFIX}/bin/static/notary-signer: NOTARY_VERSION $(shell find . -type f -name '*.go')
|
||||||
|
@echo "+ $@"
|
||||||
|
@godep go build -tags ${NOTARY_BUILDTAGS} -o $@ ${GO_LDFLAGS_STATIC} ./cmd/notary-signer
|
||||||
|
|
||||||
vet: go_version
|
vet: go_version
|
||||||
@echo "+ $@"
|
@echo "+ $@"
|
||||||
ifeq ($(shell uname -s), Darwin)
|
ifeq ($(shell uname -s), Darwin)
|
||||||
|
@ -153,6 +161,9 @@ clean-protos:
|
||||||
binaries: go_version ${PREFIX}/bin/notary-server ${PREFIX}/bin/notary ${PREFIX}/bin/notary-signer
|
binaries: go_version ${PREFIX}/bin/notary-server ${PREFIX}/bin/notary ${PREFIX}/bin/notary-signer
|
||||||
@echo "+ $@"
|
@echo "+ $@"
|
||||||
|
|
||||||
|
static: go_version ${PREFIX}/bin/static/notary-server ${PREFIX}/bin/static/notary-signer
|
||||||
|
@echo "+ $@"
|
||||||
|
|
||||||
define template
|
define template
|
||||||
mkdir -p ${PREFIX}/cross/$(1)/$(2);
|
mkdir -p ${PREFIX}/cross/$(1)/$(2);
|
||||||
GOOS=$(1) GOARCH=$(2) CGO_ENABLED=0 go build -o ${PREFIX}/cross/$(1)/$(2)/notary -a -tags "static_build netgo" -installsuffix netgo ${GO_LDFLAGS_STATIC} ./cmd/notary;
|
GOOS=$(1) GOARCH=$(2) CGO_ENABLED=0 go build -o ${PREFIX}/cross/$(1)/$(2)/notary -a -tags "static_build netgo" -installsuffix netgo ${GO_LDFLAGS_STATIC} ./cmd/notary;
|
||||||
|
|
Loading…
Reference in New Issue