summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSandro Santilli <strk@kbt.io>2016-11-30 16:59:17 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2016-11-30 23:59:17 +0800
commita3fb627350e5ba293d240ab14ec52995bdefa102 (patch)
treea72625e34c4201c24416c3303e6d72931441522e /Makefile
parent6dc6926abee7183280a34deac1fef31938b56d00 (diff)
downloadgitea-a3fb627350e5ba293d240ab14ec52995bdefa102.tar.gz
gitea-a3fb627350e5ba293d240ab14ec52995bdefa102.zip
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
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 26ee700165..5676a836bf 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