download dependencies before build
This commit is contained in:
parent
f5bb38bfad
commit
407b0f56a7
@ -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)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user