Fix makefile
This commit is contained in:
parent
75431e1ca5
commit
01e7540530
2 changed files with 9 additions and 6 deletions
|
@ -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
|
||||||
|
|
9
Makefile
9
Makefile
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue