Skip to content

Commit 6c4f1b8

Browse files
author
Nao
committed
Add orderer target to all target in Makefile
New architecture needs orderer. But all target only includes peer and membersrvc. This patch added orderer target to it. Change-Id: I8e6c799f995cd292d481005d1e6cd54c5c3a5cd5 Signed-off-by: Nao Nishijima <[email protected]>
1 parent 5274bb1 commit 6c4f1b8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Makefile

+5-3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
# - all (default) - builds all targets and runs all tests/checks
2222
# - checks - runs all tests/checks
2323
# - peer - builds the fabric peer binary
24+
# - orderer - builds the fabric orderer binary
2425
# - membersrvc - builds the membersrvc binary
2526
# - unit-test - runs the go-test based unit tests
2627
# - behave - runs the behave test
@@ -29,6 +30,7 @@
2930
# - linter - runs all code checks
3031
# - images[-clean] - ensures all docker images are available[/cleaned]
3132
# - peer-image[-clean] - ensures the peer-image is available[/cleaned] (for behave, etc)
33+
# - orderer-image[-clean] - ensures the orderer-image is available[/cleaned] (for behave, etc)
3234
# - membersrvc-image[-clean] - ensures the membersrvc-image is available[/cleaned] (for behave, etc)
3335
# - protos - generate all protobuf artifacts based on .proto files
3436
# - clean - cleans the build area
@@ -70,7 +72,7 @@ PROJECT_FILES = $(shell git ls-files)
7072
IMAGES = src ccenv peer membersrvc javaenv orderer
7173

7274

73-
all: peer membersrvc checks
75+
all: peer orderer membersrvc checks
7476

7577
checks: linter unit-test behave
7678

@@ -142,7 +144,7 @@ build/bin/chaintool: Makefile
142144
# JIRA FAB-243 - Mark build/docker/bin artifacts explicitly as secondary
143145
# since they are never referred to directly. This prevents
144146
# the makefile from deleting them inadvertently.
145-
.SECONDARY: build/docker/bin/peer build/docker/bin/membersrvc
147+
.SECONDARY: build/docker/bin/peer build/docker/bin/orderer build/docker/bin/membersrvc
146148

147149
# We (re)build a package within a docker context but persist the $GOPATH/pkg
148150
# directory so that subsequent builds are faster
@@ -241,7 +243,7 @@ build/image/%/.dummy: build/image/src/.dummy build/docker/bin/%
241243
protos: gotools
242244
./devenv/compile_protos.sh
243245

244-
src-image-clean: ccenv-image-clean peer-image-clean membersrvc-image-clean
246+
src-image-clean: ccenv-image-clean peer-image-clean orderer-image-clean membersrvc-image-clean
245247

246248
%-image-clean:
247249
$(eval TARGET = ${patsubst %-image-clean,%,${@}})

0 commit comments

Comments
 (0)