ooni-probe-cli/Makefile

40 lines
802 B
Makefile
Raw Normal View History

GO ?= go
install-dev-deps:
@$(GO) get golang.org/x/tools/cmd/cover
@$(GO) get github.com/mattn/goveralls
build:
@echo "Building dist/ooni"
@$(GO) build -o dist/ooni cmd/ooni/main.go
.PHONY: build
build-windows:
@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
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/...;
2019-05-15 17:55:11 +02:00
release:
2019-05-15 17:55:40 +02:00
goreleaser release --skip-publish
2019-05-15 17:55:11 +02:00
test-internal:
@$(GO) test -v ./internal/...
.PHONY: bindata