Fix makefile

This commit is contained in:
kolaente 2019-01-22 13:13:11 +01:00
parent 75431e1ca5
commit 01e7540530
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B
2 changed files with 9 additions and 6 deletions

View file

@ -114,7 +114,6 @@ steps:
GOPATH: /srv/app
commands:
- make release-windows
- mv /build/* binaries/
depends_on: [ before-static-build ]
- name: static-build-linux
@ -124,7 +123,6 @@ steps:
GOPATH: /srv/app
commands:
- make release-linux
- mv /build/* binaries/
depends_on: [ before-static-build ]
- name: static-build-darwin
@ -134,7 +132,6 @@ steps:
GOPATH: /srv/app
commands:
- make release-darwin
- mv /build/* binaries/
depends_on: [ before-static-build ]
- name: after-build-static
@ -308,7 +305,6 @@ steps:
GOPATH: /srv/app
commands:
- make release-windows
- mv /build/* binaries/
depends_on: [ before-static-build ]
- name: static-build-linux
@ -318,7 +314,6 @@ steps:
GOPATH: /srv/app
commands:
- make release-linux
- mv /build/* binaries/
depends_on: [ before-static-build ]
- name: static-build-darwin
@ -328,7 +323,6 @@ steps:
GOPATH: /srv/app
commands:
- make release-darwin
- mv /build/* binaries/
depends_on: [ before-static-build ]
- name: after-build-static

View file

@ -116,6 +116,9 @@ release-windows:
go install $(GOFLAGS) github.com/karalabe/xgo; \
fi
xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out vikunja-$(VERSION) .
ifneq ($(DRONE_WORKSPACE),'')
mv /build/* $(DIST)/binaries
endif
.PHONY: release-linux
release-linux:
@ -123,6 +126,9 @@ release-linux:
go install $(GOFLAGS) github.com/karalabe/xgo; \
fi
xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'linux/*' -out vikunja-$(VERSION) .
ifneq ($(DRONE_WORKSPACE),'')
mv /build/* $(DIST)/binaries
endif
.PHONY: release-darwin
release-darwin:
@ -130,6 +136,9 @@ release-darwin:
go install $(GOFLAGS) github.com/karalabe/xgo; \
fi
xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '$(LDFLAGS)' -targets 'darwin/*' -out vikunja-$(VERSION) .
ifneq ($(DRONE_WORKSPACE),'')
mv /build/* $(DIST)/binaries
endif
.PHONY: release-copy
release-copy: