mirror of
https://github.com/go-gitea/gitea.git
synced 2024-09-05 23:34:19 -04:00
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
This commit is contained in:
parent
6dc6926abe
commit
a3fb627350
4
Makefile
4
Makefile
@ -86,9 +86,9 @@ install: $(wildcard *.go)
|
|||||||
go install -v -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)'
|
go install -v -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)'
|
||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build: $(BIN)/$(EXECUTABLE)
|
build: $(EXECUTABLE)
|
||||||
|
|
||||||
$(BIN)/$(EXECUTABLE): $(wildcard *.go)
|
$(EXECUTABLE): $(wildcard *.go)
|
||||||
go build -v -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -o $@
|
go build -v -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -o $@
|
||||||
|
|
||||||
.PHONY: release
|
.PHONY: release
|
||||||
|
Loading…
Reference in New Issue
Block a user