blob: d13b27efb4f954e257e1d5aaeb9a7ec084400146 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  | 
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
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
  |