forked from taikoxyz/taiko-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (32 loc) · 982 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
GIT_COMMIT := $(shell git rev-parse HEAD)
GIT_DATE := $(shell git show -s --format='%ct')
LD_FLAGS_ARGS +=-X github.com/taikoxyz/taiko-client/version.GitCommit=$(GIT_COMMIT)
LD_FLAGS_ARGS +=-X github.com/taikoxyz/taiko-client/version.GitDate=$(GIT_DATE)
LD_FLAGS := -ldflags "$(LD_FLAGS_ARGS)"
build:
GO111MODULE=on go build -v $(LD_FLAGS) -o bin/taiko-client cmd/main.go
clean:
@rm -rf bin/*
lint:
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.51.1 \
&& golangci-lint run
test:
@TAIKO_MONO_DIR=${TAIKO_MONO_DIR} \
COMPILE_PROTOCOL=${COMPILE_PROTOCOL} \
PACKAGE=${PACKAGE} \
RUN_TESTS=true \
./integration_test/entrypoint.sh
dev_net:
@TAIKO_MONO_DIR=${TAIKO_MONO_DIR} \
COMPILE_PROTOCOL=${COMPILE_PROTOCOL} \
./integration_test/entrypoint.sh
gen_bindings:
@TAIKO_MONO_DIR=${TAIKO_MONO_DIR} \
TAIKO_GETH_DIR=${TAIKO_GETH_DIR} \
./scripts/gen_bindings.sh
.PHONY: build \
clean \
lint \
test \
dev_net \
gen_bindings