blob: 33dc7242f31fc766dd43b431408cf841b0045e80 (
plain)
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
|
PKG := github.com/network-quality/goresponsiveness
GIT_VERSION := $(shell git describe --always --long)
LDFLAGS := -ldflags "-X $(PKG)/utilities.GitVersion=$(GIT_VERSION)"
all: build test
build:
go build $(LDFLAGS) networkQuality.go
install:
go install $(LDFLAGS)
test:
go test ./timeoutat/ ./traceable/ ./utilities/ ./lgc ./qualityattenuation ./rpm ./series
golines:
find . -name '*.go' -exec ~/go/bin/golines -w {} \;
clean:
go clean -testcache
rm -f *.o core
apple:
./networkQuality --config mensura.cdn-apple.com --port 443 --path /api/v1/gm/config
# makes a .deb package
debian:
# you have to symlink this if you are building it from somewhere else
# ln -s ~/go/src/github.com/network-quality/goresponsiveness -> ../../go.wit.com/apps/networkQuality
~/go/bin/go-deb --ldflags "$(PKG)/utilities.GitVersion=$(GIT_VERSION)" --no-gui --repo go.wit.com/apps/networkQuality
|