-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (39 loc) · 1.15 KB
/
Makefile
File metadata and controls
52 lines (39 loc) · 1.15 KB
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
43
44
45
46
47
48
49
50
51
52
.PHONY: build clean install lint link-zokrates migrate mod test zokrates
default: build
clean:
rm -rf ./.bin 2>/dev/null || true
go fix ./...
go clean -i ./...
build: mod clean
go fmt ./...
CGO_ENABLED=1 go build -v -o ./.bin/api ./cmd/api
CGO_ENABLED=1 go build -v -o ./.bin/consumer ./cmd/consumer
CGO_ENABLED=1 go build -v -o ./.bin/migrate ./cmd/migrate
install: clean
go install ./...
link-zokrates:
go tool link -o go-zkp -extld clang -linkmode external -v zokrates.a
lint:
./ops/lint.sh
migrate: mod
rm -rf ./.bin/privacy_migrate 2>/dev/null || true
go build -v -o ./.bin/privacy_migrate ./cmd/migrate
./ops/migrate.sh
mod:
go mod init 2>/dev/null || true
go mod tidy
go mod vendor
run_local_dependencies:
./ops/run_local_dependencies.sh
stop_local_dependencies:
./ops/stop_local_dependencies.sh
test: build
./ops/run_local_tests.sh
integration: build
./ops/run_integration_tests.sh
zokrates:
@rm -rf .tmp/zokrates
@mkdir -p .tmp/
git clone --single-branch --branch makefile git@github.com:kthomas/zokrates.git .tmp/zokrates
@pushd .tmp/zokrates && make static && popd
@echo TODO... hoist built zokrates artifacts for linking...