mirror of
https://github.com/gogs/gogs.git
synced 2025-05-31 11:42:13 +00:00
Makefile: use go build to replace go install
This commit is contained in:
parent
a04de87584
commit
1a17c2ba1f
8
Makefile
8
Makefile
@ -33,16 +33,14 @@ govet:
|
||||
$(GOVET) models pkg routes
|
||||
|
||||
build: $(GENERATED)
|
||||
go install $(BUILD_FLAGS) -ldflags '$(LDFLAGS)' -tags '$(TAGS)'
|
||||
cp '$(GOPATH)/bin/gogs' .
|
||||
go build $(BUILD_FLAGS) -ldflags '$(LDFLAGS)' -tags '$(TAGS)' -o gogs
|
||||
|
||||
build-dev: $(GENERATED) govet
|
||||
go install $(BUILD_FLAGS) -tags '$(TAGS)'
|
||||
go build $(BUILD_FLAGS) -tags '$(TAGS)' -o gogs
|
||||
cp '$(GOPATH)/bin/gogs' .
|
||||
|
||||
build-dev-race: $(GENERATED) govet
|
||||
go install $(BUILD_FLAGS) -race -tags '$(TAGS)'
|
||||
cp '$(GOPATH)/bin/gogs' .
|
||||
go build $(BUILD_FLAGS) -race -tags '$(TAGS)' -o gogs
|
||||
|
||||
pack:
|
||||
rm -rf $(RELEASE_GOGS)
|
||||
|
Loading…
x
Reference in New Issue
Block a user