0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-30 18:54:26 +01:00

Actually fix 'make build' (#353)

* Actually fix bloddy 'make build'
This commit is contained in:
Kim "BKC" Carlbäcker 2016-12-05 18:35:22 +01:00 committed by GitHub
parent 2b63f32b8a
commit 1b5b297c39

View file

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