-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
43 lines (29 loc) · 1.07 KB
/
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
gopath = GOPATH=$(CURDIR)
cgo_ldflags = CGO_LDFLAGS="$(CURDIR)/src/common/erasure/longhair/bin/liblonghair.a -lstdc++"
govars = $(gopath) $(cgo_ldflags)
packages = common common/crypto common/erasure common/log disk network quorum server client
all: submodule-update libraries
submodule-update:
git submodule update --init
fmt:
$(govars) go fmt $(packages)
libraries: fmt
$(govars) go install $(packages)
test: libraries
$(govars) go test -short $(packages)
test-verbose: libraries
$(govars) go test -short -v $(packages)
test-race: libraries
$(govars) go test -short -race $(packages)
test-race-verbose: libraries
$(govars) go test -short -race -v $(packages)
test-long: libraries
$(govars) go test -race $(packages)
test-long-verbose: libraries
$(govars) go test -v -race $(packages)
dependencies: submodule-update race-libs
race-libs:
$(govars) go install -race std
docs:
pdflatex -output-directory=doc/ doc/whitepaper.tex
.PHONY: all submodule-update fmt libraries test test-verbose test-race test-race-verbose test-long test-long-verbose dependencies race-libs docs