From 1c7575f7cd4117f6ea72486ad2367049b0eab4c4 Mon Sep 17 00:00:00 2001 From: Matt Keeler Date: Wed, 27 Jun 2018 14:25:49 -0400 Subject: [PATCH] Fix default make target to build everything --- GNUmakefile | 3 ++- build-support/functions/20-build.sh | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index 0948a8775..5df83416b 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -108,7 +108,8 @@ endif # all builds binaries for all targets all: bin -bin: tools dev-build +bin: tools + @$(SHELL) $(CURDIR)/build-support/scripts/build-local.sh # dev creates binaries for testing locally - these are put into ./bin and $GOPATH dev: changelogfmt vendorfmt dev-build diff --git a/build-support/functions/20-build.sh b/build-support/functions/20-build.sh index 6f6c25934..4118a654c 100644 --- a/build-support/functions/20-build.sh +++ b/build-support/functions/20-build.sh @@ -424,11 +424,18 @@ function build_consul_local { do outdir="pkg.bin.new/${extra_dir}${os}_${arch}" osarch="${os}/${arch}" - if test "${osarch}" == "darwin/arm" -o "${osarch}" == "darwin/arm64" + if test "${osarch}" == "darwin/arm" -o "${osarch}" == "darwin/arm64" -o "${osarch}" == "freebsd/arm64" -o "${osarch}" == "windows/arm" -o "${osarch}" == "windows/arm64" then continue fi + if test "${os}" == "solaris" -a "${arch}" != "amd64" + then + continue + fi + + echo "---> ${osarch}" + mkdir -p "${outdir}" CGO_ENABLED=0 GOOS=${os} GOARCH=${arch} go install -ldflags "${GOLDFLAGS}" -tags "${GOTAGS}" && cp "${MAIN_GOPATH}/bin/consul" "${outdir}/consul" if test $? -ne 0