|
|
@ -14,6 +14,7 @@ LDFLAGS += -X "code.gitea.io/gitea/modules/setting.BuildGitHash=$(SHA)" |
|
|
|
|
|
|
|
|
|
|
|
TARGETS ?= linux/*,darwin/*,windows/*
|
|
|
|
TARGETS ?= linux/*,darwin/*,windows/*
|
|
|
|
PACKAGES ?= $(shell go list ./... | grep -v /vendor/)
|
|
|
|
PACKAGES ?= $(shell go list ./... | grep -v /vendor/)
|
|
|
|
|
|
|
|
SOURCES ?= $(shell find . -name "*.go" -type f)
|
|
|
|
|
|
|
|
|
|
|
|
TAGS ?=
|
|
|
|
TAGS ?=
|
|
|
|
|
|
|
|
|
|
|
@ -86,8 +87,7 @@ install: $(wildcard *.go) |
|
|
|
.PHONY: build |
|
|
|
.PHONY: build |
|
|
|
build: $(EXECUTABLE) |
|
|
|
build: $(EXECUTABLE) |
|
|
|
|
|
|
|
|
|
|
|
.PHONY: $(EXECUTABLE) |
|
|
|
$(EXECUTABLE): $(SOURCES) |
|
|
|
$(EXECUTABLE): $(wildcard *.go) |
|
|
|
|
|
|
|
go build -v -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -o $@
|
|
|
|
go build -v -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -o $@
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: release |
|
|
|
.PHONY: release |
|
|
|