Skip to content

Commit 822bef2

Browse files
committed
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
1 parent 6dc6926 commit 822bef2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ install: $(wildcard *.go)
8686
go install -v -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)'
8787

8888
.PHONY: build
89-
build: $(BIN)/$(EXECUTABLE)
89+
build: $(EXECUTABLE)
9090

91-
$(BIN)/$(EXECUTABLE): $(wildcard *.go)
91+
$(EXECUTABLE): $(wildcard *.go)
9292
go build -v -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -o $@
9393

9494
.PHONY: release

0 commit comments

Comments
 (0)