2018-02-07 19:02:18 +01:00
|
|
|
GO ?= go
|
|
|
|
|
2018-09-07 15:16:20 +02:00
|
|
|
install-dev-deps:
|
|
|
|
@$(GO) get golang.org/x/tools/cmd/cover
|
|
|
|
@$(GO) get github.com/mattn/goveralls
|
|
|
|
|
2018-02-07 19:02:18 +01:00
|
|
|
build:
|
2018-05-11 11:21:34 +02:00
|
|
|
@echo "Building dist/ooni"
|
2019-05-15 14:48:06 +02:00
|
|
|
@$(GO) build -o dist/ooni cmd/ooni/main.go
|
2018-02-07 19:02:18 +01:00
|
|
|
.PHONY: build
|
2018-02-12 17:29:03 +01:00
|
|
|
|
2018-05-11 11:21:34 +02:00
|
|
|
build-windows:
|
2019-05-15 14:48:06 +02:00
|
|
|
@echo "Building dist/windows/amd64/ooni.exe"
|
|
|
|
@./build.sh windows
|
|
|
|
|
|
|
|
build-linux:
|
|
|
|
@echo "Building dist/linux/amd64/ooni"
|
|
|
|
@./build.sh linux
|
|
|
|
|
|
|
|
build-macos:
|
|
|
|
@echo "Building dist/macos/amd64/ooni"
|
|
|
|
@./build.sh macos
|
|
|
|
|
|
|
|
build-all: build-windows build-linux build-macos
|
|
|
|
.PHONY: build-all build-windows build-linux build-macos
|
2018-03-23 12:41:06 +01:00
|
|
|
|
2018-02-12 17:29:03 +01:00
|
|
|
bindata:
|
2018-03-08 20:34:30 +01:00
|
|
|
@$(GO) run vendor/github.com/shuLhan/go-bindata/go-bindata/*.go \
|
2018-02-12 17:29:03 +01:00
|
|
|
-nometadata \
|
|
|
|
-o internal/bindata/bindata.go -pkg bindata \
|
2018-02-12 17:30:27 +01:00
|
|
|
data/...;
|
2018-09-06 16:13:04 +02:00
|
|
|
|
|
|
|
test-internal:
|
|
|
|
@$(GO) test -v ./internal/...
|
|
|
|
|
2018-02-12 17:29:03 +01:00
|
|
|
.PHONY: bindata
|