ooni-probe-cli/Makefile
2018-02-12 18:29:03 +02:00

19 lines
448 B
Makefile

GO_BINDATA_VERSION = $(shell go-bindata --version | cut -d ' ' -f2 | head -n 1 || echo "missing")
REQ_GO_BINDATA_VERSION = 3.2.0
GO ?= go
build:
@echo "Building ./ooni"
@$(GO) build -o ooni cmd/ooni/main.go
.PHONY: build
bindata:
ifneq ($(GO_BINDATA_VERSION),$(REQ_GO_BINDATA_VERSION))
go get -u github.com/shuLhan/go-bindata/...;
endif
@go-bindata \
-nometadata \
-o internal/bindata/bindata.go -pkg bindata \
data;
.PHONY: bindata