From a3fb627350e5ba293d240ab14ec52995bdefa102 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Wed, 30 Nov 2016 16:59:17 +0100 Subject: [PATCH] Have "make" create the executable in root dir (#247) 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 26ee70016..5676a836b 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