Update Makefile target for downloading libs
This commit is contained in:
parent
27f3df54bb
commit
aabe55cc51
|
@ -7,7 +7,7 @@ go:
|
||||||
install:
|
install:
|
||||||
- make install-dev-deps
|
- make install-dev-deps
|
||||||
- dep ensure
|
- dep ensure
|
||||||
- make update-mk-libs
|
- make download-mk-libs-macos
|
||||||
script:
|
script:
|
||||||
- make test-internal
|
- make test-internal
|
||||||
- make build
|
- make build
|
2
Gopkg.lock
generated
2
Gopkg.lock
generated
|
@ -68,7 +68,7 @@
|
||||||
branch = "master"
|
branch = "master"
|
||||||
name = "github.com/measurement-kit/go-measurement-kit"
|
name = "github.com/measurement-kit/go-measurement-kit"
|
||||||
packages = ["."]
|
packages = ["."]
|
||||||
revision = "b44943bb7da37f768d30315a2227dac86feac546"
|
revision = "33cbd62d4a73b68af069f70a797c2250332c059a"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
|
|
9
Makefile
9
Makefile
|
@ -14,10 +14,13 @@ build-windows:
|
||||||
@echo "Building dist/ooni.exe"
|
@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
|
CC=x86_64-w64-mingw32-gcc GOOS=windows GOARCH=amd64 CGO_ENABLED=1 go build -o dist/ooni.exe -x cmd/ooni/main.go
|
||||||
|
|
||||||
update-mk-libs:
|
download-mk-libs:
|
||||||
@echo "updating mk-libs"
|
@echo "updating mk-libs"
|
||||||
@cd vendor/github.com/measurement-kit/go-measurement-kit && curl -L -o master.zip https://github.com/measurement-kit/golang-prebuilt/archive/master.zip && unzip master.zip && mv golang-prebuilt-master libs && rm master.zip # This is a hack to workaround: https://github.com/golang/dep/issues/1240
|
@cd vendor/github.com/measurement-kit/go-measurement-kit && ./download-libs.sh
|
||||||
.PHONY: update-mk-libs
|
download-mk-libs-macos:
|
||||||
|
@echo "updating mk-libs"
|
||||||
|
@cd vendor/github.com/measurement-kit/go-measurement-kit && ./download-libs.sh macos
|
||||||
|
.PHONY: update-mk-libs-macos
|
||||||
|
|
||||||
bindata:
|
bindata:
|
||||||
@$(GO) run vendor/github.com/shuLhan/go-bindata/go-bindata/*.go \
|
@$(GO) run vendor/github.com/shuLhan/go-bindata/go-bindata/*.go \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user