forked from gnolang/gno
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
45 lines (35 loc) · 936 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
43
44
45
all: gnoland goscan logos
.PHONY: logos goscan gnoland
# The main show
gnoland:
echo "Building gnoland"
go build -o gnoland ./cmd/gnoland
# goscan scans go code to determine its AST
goscan:
echo "Building goscan"
go build -o goscan ./cmd/goscan
# Logos is the interface to Gnoland
logos:
echo "building logos"
go build -o logos ./logos/cmd/logos.go
clean:
rm -rf build
test:
echo "Running tests"
go test
go test tests/*.go -v -test.short
test2:
# -p 1 shows test failures as they come
# maybe another way to do this?
go test ./pkgs/... -p 1 -count 1
stringer:
stringer -type=Op
genproto:
rm -rf proto/*
find pkgs/crypto/ | grep "\.proto" | xargs rm
find pkgs/crypto/ | grep "pbbindings" | xargs rm
find pkgs/crypto/ | grep "pb.go" | xargs rm
find pkgs/bft/ | grep "\.proto" | xargs rm
find pkgs/bft/ | grep "pbbindings" | xargs rm
find pkgs/bft/ | grep "pb.go" | xargs rm
go run cmd/genproto/genproto.go