-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (34 loc) · 1006 Bytes
/
Makefile
File metadata and controls
47 lines (34 loc) · 1006 Bytes
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
.PHONY : test build ci
all :
go build -o bin/ ./cmd/client
go build -o bin/ ./cmd/modem_manager
build: | all
arm64:
GOOS=linux GOARCH=arm64 go build -o bin/client_arm64 ./cmd/client
GOOS=linux GOARCH=arm64 go build -o bin/modem_manager_arm64 ./cmd/modem_manager
deps:
go get -u -t ./...
go mod tidy
go mod vendor
clean:
rm -rf bin/
run:
go run cmd/modem_manager/main.go --config ./config/config.toml
client:
make build
./bin/client --config ./config/$(config) --debug
sample_conf:
go build -o bin/ ./cmd/sample_conf
./bin/sample_conf
licenses:
go install github.com/google/go-licenses@latest
go install github.com/google/addlicense@latest
addlicense -c "LeoCommon" -l "GPL-3.0-or-later" -s=only -ignore "**/vendor/**" -ignore "**/*.{toml,sh}" .
mkdir -p reports
go-licenses report --template scripts/licenses.tpl ./... > reports/licenses.md
coverage:
go test -coverprofile coverage.out ./...
go tool cover -html=coverage.out
test:
go test --race -v ./...
ci: | all test