forked from hyperledger/fabric-private-chaincode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (27 loc) · 758 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright 2019 Intel Corporation
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
TOP = ..
include $(TOP)/build.mk
build: ercc
ercc: ercc_dependencies
# ERCC's binary is created here.
# The binary is then referenced by the fpc-peer cli, inserted in the ERCC package,
# and eventually run by the external launcher.
$(GO) build $(GOTAGS) -o ercc main.go
ercc_dependencies:
# hard to list explicitly, so just leave empty target,
# which forces ecc to always be built
test: build
$(GO) test $(GOTAGS) -v ./...
clean: docker-clean
$(GO) clean
rm -f ercc
generate:
$(GO) generate ./...
DOCKER_IMAGE?=fpc/ercc
docker: ercc
$(DOCKER) build -t $(DOCKER_IMAGE) .
docker-clean:
$(DOCKER) rmi -f $(DOCKER_IMAGE)