Skip to content
This repository has been archived by the owner on Dec 2, 2021. It is now read-only.

Commit

Permalink
FAB-13063 basic build and clean
Browse files Browse the repository at this point in the history
 - put created artifact into bin directory
 - check that evmcc also compiles
 - clean removes output directory and node_modules from running tests

Change-Id: Ic6b8bb1e0c3aeb8ef39ac4a9815af989cc82f050
Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>
  • Loading branch information
MHBauer committed Dec 3, 2018
1 parent 3219f63 commit 867f3bf
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ all: checks integration-test

checks: basic-checks unit-test

basic-checks: license spelling linter
basic-checks: license spelling linter build

.PHONY: spelling
spelling:
Expand All @@ -43,6 +43,13 @@ spelling:
license:
@scripts/check_license.sh

.PHONY: build
build: bin/fab3 bin/evmcc

.PHONY: clean
clean:
rm -rf bin/ node_modules/

include gotools.mk

.PHONY: gotools
Expand Down Expand Up @@ -78,6 +85,17 @@ integration-test: docker-images gotool.ginkgo
@echo "Running integration-test"
@scripts/run-integration-tests.sh

.PHONY: bin/fab3 # let 'go build' handle caching and whether to rebuild
bin/fab3:
mkdir -p bin/
go build -o bin/fab3 github.com/hyperledger/fabric-chaincode-evm/fabproxy/cmd

.PHONY: bin/evmcc # let 'go build' handle caching and whether to rebuild
bin/evmcc:
mkdir -p bin/
go build -o bin/evmcc github.com/hyperledger/fabric-chaincode-evm/evmcc
rm bin/evmcc # checking that it compiled, evmcc not meant to be run directly

.PHONY:
update-mocks:
@go generate ./fabproxy/

0 comments on commit 867f3bf

Please # to comment.