forked from hyperledger/fabric-private-chaincode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (31 loc) · 871 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
38
39
40
41
42
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
TOP = ..
include $(TOP)/build.mk
PROTO_BUILD_DIR := enclave/protos
BUILD_DIR := _build
.PHONY: protos
protos: $(PROTO_BUILD_DIR)
$(PROTO_BUILD_DIR):
./generate_protos.sh $@
.PHONY: protos-clean
protos-clean:
rm -rf $(PROTO_BUILD_DIR)
$(BUILD_DIR): protos
mkdir -p $(BUILD_DIR) && \
cd $(BUILD_DIR) && \
cmake ./..
build: $(BUILD_DIR) protos
$(MAKE) all --directory=$<
test:
# make test verbose for now as tlcc doesn't abort on many failures just reports them in the logs ...
$(MAKE) $@ --directory=$(BUILD_DIR) ARGS="-V"
gen_testcases:
../integration/deployment_test.sh $(PWD)/test/getLedgerBlocks -o $(PWD)/test/test_blocks
.PHONY: enclave-clean
enclave-clean:
rm -rf $(BUILD_DIR)
rm -f enclave/*_t.*
rm -f trusted_ledger/*_u.*
clean: enclave-clean protos-clean