download dependencies before build

This commit is contained in:
Matthias Hannig 2017-05-29 10:27:52 +02:00
parent f5bb38bfad
commit 407b0f56a7

View File

@ -30,13 +30,18 @@ endif
LDFLAGS=-ldflags="-X main.version=$(APP_VERSION)"
all: $(TARGET)
@echo "Built $(VERSION) @ $(TARGET)"
osx:
deps:
go get .
osx: deps
GOARCH=$(ARCH) GOOS=darwin go build $(LDFLAGS) -o $(PROG)-osx-$(ARCH)
linux:
linux: deps
GOARCH=$(ARCH) GOOS=linux go build $(LDFLAGS) -o $(PROG)-linux-$(ARCH)