mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-26 01:40:36 +00:00
Makefile: Copy installed binary instead 2nd build
This speeds up single build/rebuild rather than install & build which compiles everything twice, we just copy installed binary back to the project root.
This commit is contained in:
parent
2093586241
commit
da607c611d
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -11,7 +11,7 @@ NOW = $(shell date -u '+%Y%m%d%I%M%S')
|
|||
|
||||
build:
|
||||
go install -ldflags '$(LDFLAGS)' -tags '$(TAGS)'
|
||||
go build -ldflags '$(LDFLAGS)' -tags '$(TAGS)'
|
||||
cp '$(GOPATH)/bin/gogs' .
|
||||
|
||||
govet:
|
||||
go tool vet -composites=false -methods=false -structtags=false .
|
||||
|
|
Loading…
Reference in a new issue