ooni-probe-cli/Makefile

35 lines
917 B
Makefile
Raw Normal View History

GO ?= go
install-dev-deps:
@$(GO) get -u github.com/golang/dep/...
@$(GO) get golang.org/x/tools/cmd/cover
@$(GO) get github.com/mattn/goveralls
build:
@echo "Building dist/ooni"
2018-03-22 15:58:10 +01:00
@$(GO) build -i -o dist/ooni cmd/ooni/main.go
.PHONY: build
build-windows:
@echo "Building dist/ooni.exe"
CC=x86_64-w64-mingw32-gcc GOOS=windows GOARCH=amd64 CGO_ENABLED=1 go build -o dist/ooni.exe -x cmd/ooni/main.go
download-mk-libs:
2018-05-31 08:00:42 +02:00
@echo "updating mk-libs"
@cd vendor/github.com/measurement-kit/go-measurement-kit && ./download-libs.sh
download-mk-libs-macos:
@echo "updating mk-libs"
@cd vendor/github.com/measurement-kit/go-measurement-kit && ./download-libs.sh macos
.PHONY: update-mk-libs-macos
bindata:
@$(GO) run vendor/github.com/shuLhan/go-bindata/go-bindata/*.go \
-nometadata \
-o internal/bindata/bindata.go -pkg bindata \
2018-02-12 17:30:27 +01:00
data/...;
test-internal:
@$(GO) test -v ./internal/...
.PHONY: bindata