-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
60 lines (48 loc) · 1.35 KB
/
Makefile
File metadata and controls
60 lines (48 loc) · 1.35 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
53
54
55
56
57
58
59
60
all: build
build: bin/havenet
bin/havenet: src/*.go
python build.py # fill in the version
# CGO_ENABLED=0 to enable a static build
CGO_ENABLED=0 go build -o bin/havenet `ls src/*.go | grep -v '_test.go'`
clean:
-@rm -f bin/*
test-all:
make test-version
make test-help
make test-standard
make test-monochrome
test-standard: bin/havenet
bin/havenet
bin/havenet -6
test-monochrome: bin/havenet
bin/havenet -nc
bin/havenet -nc -6
test-help: bin/havenet
bin/havenet -h || true
test-version: bin/havenet
bin/havenet -V
unittest: bin/havenet
(cd src && go test -v -coverprofile ../coverage.out)
all-archs:
-@rm -f dist/*
# Darwin arm
# GOOS=darwin GOARCH=aarch64 make clean build
# @mv bin/havenet dist/havenet-darwin64-arm
# Darwin x86
GOOS=darwin GOARCH=amd64 make clean build
@mv bin/havenet dist/havenet-darwin64
# Freebsd x86
GOOS=freebsd GOARCH=386 make clean build
@mv bin/havenet dist/havenet-freebsd32
GOOS=freebsd GOARCH=amd64 make clean build
@mv bin/havenet dist/havenet-freebsd64
# Linux x86
GOOS=linux GOARCH=386 make clean build
@mv bin/havenet dist/havenet-linux32
GOOS=linux GOARCH=amd64 make clean build
@mv bin/havenet dist/havenet-linux64
# Windows x86
GOOS=windows GOARCH=386 make clean build
@mv bin/havenet dist/havenet-win32.exe
GOOS=windows GOARCH=amd64 make clean build
@mv bin/havenet dist/havenet-win64.exe