From 1b5b297c398a547b506029ac5a527ba9a5891ffb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20=22BKC=22=20Carlb=C3=A4cker?= Date: Mon, 5 Dec 2016 18:35:22 +0100 Subject: [PATCH] Actually fix 'make build' (#353) * Actually fix bloddy 'make build' --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 03b4c7cb5..75aef7f3c 100644 --- a/Makefile +++ b/Makefile @@ -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