diff --git a/Makefile b/Makefile index a1132b5eca4c5914de37f0742e0203b38f6e0f2d..f84e1d9153944173c620973f75c414bf181ebc1f 100644 --- a/Makefile +++ b/Makefile @@ -75,7 +75,8 @@ verifiers: build-cpp getdeps cppcheck fmt static-check # Build various components locally. binlog: @echo "Building binlog ..." - @mkdir -p $(INSTALL_PATH) && go env -w CGO_ENABLED="1" && GO111MODULE=on $(GO) build -o $(INSTALL_PATH)/binlog $(PWD)/cmd/tools/binlog/main.go 1>/dev/null + @source $(PWD)/scripts/setenv.sh && \ + mkdir -p $(INSTALL_PATH) && go env -w CGO_ENABLED="1" && GO111MODULE=on $(GO) build -o $(INSTALL_PATH)/binlog $(PWD)/cmd/tools/binlog/main.go 1>/dev/null BUILD_TAGS = $(shell git describe --tags --always --dirty="-dev") BUILD_TIME = $(shell date -u)