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

View file

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