Browse Source

'Makefile' ändern

master
Jonas Franz 4 years ago
parent
commit
de686de14a
  1. 4
      Makefile

4
Makefile

@ -221,7 +221,7 @@ $(EXECUTABLE): $(SOURCES) @@ -221,7 +221,7 @@ $(EXECUTABLE): $(SOURCES)
$(GO) build $(GOFLAGS) $(EXTRA_GOFLAGS) -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -o $@
.PHONY: release
release: release-dirs release-windows release-linux release-darwin release-copy release-check
release: release-dirs release-linux release-copy release-check
.PHONY: release-dirs
release-dirs:
@ -242,7 +242,7 @@ release-linux: @@ -242,7 +242,7 @@ release-linux:
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
$(GO) get -u github.com/karalabe/xgo; \
fi
xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'linux/386,linux/amd64' -out gitea-$(VERSION) .
xgo -dest $(DIST)/binaries -tags 'netgo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'linux/amd64' -out gitea-$(VERSION) .
ifeq ($(CI),drone)
mv /build/* $(DIST)/binaries
endif

Loading…
Cancel
Save