Put windows dependencies into a separate Godeps file

This commit is contained in:
Cameron Sparr
2016-01-29 11:02:54 -07:00
parent 93bb679f9d
commit 338341add8
3 changed files with 71 additions and 1 deletions

View File

@@ -9,6 +9,9 @@ endif
# Standard Telegraf build
default: prepare build
# Windows build
windows: prepare-windows build
# Only run the build (no dependency grabbing)
build:
go build -o telegraf -ldflags \
@@ -26,6 +29,11 @@ prepare:
go get github.com/sparrc/gdm
gdm restore
# Use the windows godeps file to prepare dependencies
prepare-windows:
go get github.com/sparrc/gdm
gdm restore -f Godeps_windows
# Run all docker containers necessary for unit tests
docker-run:
ifeq ($(UNAME), Darwin)