2018-02-07 19:02:18 +01:00
GO ?= go
build :
2018-05-11 11:21:34 +02:00
@echo "Building dist/ooni"
2018-03-22 15:58:10 +01:00
@$( GO) build -i -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 :
@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
2018-03-23 12:41:06 +01:00
update-mk :
@echo "updating mk"
@dep ensure -update github.com/measurement-kit/go-measurement-kit
2018-05-11 11:21:34 +02:00
@test -f vendor/github.com/measurement-kit/go-measurement-kit/libs/ || cd vendor && git submodule add https://github.com/measurement-kit/golang-prebuilt.git github.com/measurement-kit/go-measurement-kit/libs # This is a hack to workaround: https://github.com/golang/dep/issues/1240
2018-03-23 12:41:06 +01:00
.PHONY : update -mk
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-02-12 17:29:03 +01:00
.PHONY : bindata