Skip to content

Commit 5eeba44

Browse files
FAB-4644 add peer to release
add peer binary to release to facilitate chaincode development testing Change-Id: Ie5e07587f8775794464cdd016939d25e696bc0f6 Signed-off-by: Christopher Ferris <[email protected]>
1 parent 0a72230 commit 5eeba44

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Makefile

+11-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ PROJECT_FILES = $(shell git ls-files | grep -v ^test | grep -v ^unit-test | \
8181
grep -v ^LICENSE )
8282
IMAGES = peer orderer ccenv javaenv buildenv testenv zookeeper kafka couchdb tools
8383
RELEASE_PLATFORMS = windows-amd64 darwin-amd64 linux-amd64 linux-ppc64le linux-s390x
84-
RELEASE_PKGS = configtxgen cryptogen configtxlator
84+
RELEASE_PKGS = configtxgen cryptogen configtxlator peer
8585

8686
pkgmap.cryptogen := $(PKGNAME)/common/tools/cryptogen
8787
pkgmap.configtxgen := $(PKGNAME)/common/configtx/tool/configtxgen
@@ -344,6 +344,16 @@ release/%/bin/cryptogen: $(PROJECT_FILES)
344344
mkdir -p $(@D)
345345
$(CGO_FLAGS) GOOS=$(GOOS) GOARCH=$(GOARCH) go build -o $(abspath $@) -tags "$(GO_TAGS)" -ldflags "$(GO_LDFLAGS)" $(pkgmap.$(@F))
346346

347+
release/%/bin/orderer: $(PROJECT_FILES)
348+
@echo "Building $@ for $(GOOS)-$(GOARCH)"
349+
mkdir -p $(@D)
350+
$(CGO_FLAGS) GOOS=$(GOOS) GOARCH=$(GOARCH) go build -o $(abspath $@) -tags "$(GO_TAGS)" -ldflags "$(GO_LDFLAGS)" $(pkgmap.$(@F))
351+
352+
release/%/bin/peer: $(PROJECT_FILES)
353+
@echo "Building $@ for $(GOOS)-$(GOARCH)"
354+
mkdir -p $(@D)
355+
$(CGO_FLAGS) GOOS=$(GOOS) GOARCH=$(GOARCH) go build -o $(abspath $@) -tags "$(GO_TAGS)" -ldflags "$(GO_LDFLAGS)" $(pkgmap.$(@F))
356+
347357
release/%/install: $(PROJECT_FILES)
348358
mkdir -p $(@D)/bin
349359
@cat $(@D)/../templates/get-docker-images.in \

0 commit comments

Comments
 (0)