Skip to content
Closed
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions release-tools/build.make
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ endif

build-%:
mkdir -p bin
CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-X main.version=$(REV) -extldflags "-static"' -o ./bin/$* ./cmd/$*
GO111MODULE=on CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-X main.version=$(REV) -extldflags "-static"' -o ./bin/$* ./cmd/$*

container-%: build-%
docker build -t $*:latest -f $(shell if [ -e ./cmd/$*/Dockerfile ]; then echo ./cmd/$*/Dockerfile; else echo Dockerfile; fi) --label revision=$(REV) .
Expand Down Expand Up @@ -122,10 +122,11 @@ test-fmt:
test: test-vendor
test-vendor:
@ echo; echo "### $@:"
@ case "$$(dep version 2>/dev/null | grep 'version *:')" in \
*v0.[56789]*) dep check && echo "vendor up-to-date" || false;; \
*) echo "skipping check, dep >= 0.5 required";; \
esac
# is this necessary? we don't use dep now
# @ case "$$(dep version 2>/dev/null | grep 'version *:')" in \
# *v0.[56789]*) dep check && echo "vendor up-to-date" || false;; \
# *) echo "skipping check, dep >= 0.5 required";; \
# esac

.PHONY: test-subtree
test: test-subtree
Expand All @@ -150,4 +151,4 @@ test-shellcheck:
echo "$$dir:"; \
./release-tools/verify-shellcheck.sh "$$dir" || ret=1; \
done; \
exit $$ret
exit $$ret