2018-02-12 17:29:03 +01:00
|
|
|
GO_BINDATA_VERSION = $(shell go-bindata --version | cut -d ' ' -f2 | head -n 1 || echo "missing")
|
|
|
|
REQ_GO_BINDATA_VERSION = 3.2.0
|
2018-02-07 19:02:18 +01:00
|
|
|
GO ?= go
|
|
|
|
|
|
|
|
build:
|
|
|
|
@echo "Building ./ooni"
|
|
|
|
@$(GO) build -o ooni cmd/ooni/main.go
|
|
|
|
.PHONY: build
|
2018-02-12 17:29:03 +01:00
|
|
|
|
|
|
|
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 \
|
2018-02-12 17:30:27 +01:00
|
|
|
data/...;
|
2018-02-12 17:29:03 +01:00
|
|
|
.PHONY: bindata
|