From 822bef2c0aff91c5bd3c4113a8ecd2b8d55f8650 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Thu, 24 Nov 2016 23:36:14 +0100 Subject: [PATCH] Have "make" create the executable in root dir Same as "go build". Makes it functional by default as it'd then find template/ and public/ by default w/out setting GITEA_WORK_DIR --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 26ee700165bc9..5676a836bf50f 100644 --- a/Makefile +++ b/Makefile @@ -86,9 +86,9 @@ install: $(wildcard *.go) go install -v -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' .PHONY: build -build: $(BIN)/$(EXECUTABLE) +build: $(EXECUTABLE) -$(BIN)/$(EXECUTABLE): $(wildcard *.go) +$(EXECUTABLE): $(wildcard *.go) go build -v -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -o $@ .PHONY: release