forked from siongui/go-succinct-data-structure-trie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (27 loc) · 707 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
# cannot use relative path in GOROOT, otherwise 6g not found. For example,
# export GOROOT=../go (=> 6g not found)
# it is also not allowed to use relative path in GOPATH
ifndef GOROOT
export GOROOT=$(realpath $(CURDIR)/../go)
export PATH := $(GOROOT)/bin:$(PATH)
endif
test:
@# -v means verbose, can see logs of t.Log
@go test -v -race
run_basic:
@go run example/basic/usage.go
run_pali:
@cd example/pali; go run encode.go
@cd example/pali; go run decode.go
bitsjs:
chromium-browser reference/test.html
fmt:
@go fmt *.go
@go fmt example/basic/*.go
@go fmt example/pali/*.go
help:
@go help
modinit:
go mod init github.com/siongui/go-succinct-data-structure-trie
modtidy:
go mod tidy