add vendor target for non-vgo projects, as required

This commit is contained in:
Jesse Hallam 2018-07-25 14:36:43 -04:00
parent 77bd9e8255
commit 9bc9e1aeb8
No known key found for this signature in database
GPG key ID: E7959EB6518AF966

View file

@ -31,9 +31,13 @@ all: test dist
apply:
./build/bin/manifest apply
# vendor ensures the server dependencies are installed
vendor:
# Nothing required for vgo-based projects.
# server builds the server, if it exists, including support for multiple architectures
.PHONY: server
server:
server: vendor
ifneq ($(HAS_SERVER),)
mkdir -p server/dist;
cd server && env GOOS=linux GOARCH=amd64 $(GO) build -o dist/plugin-linux-amd64;