Browse Source

Install go-bindata

remove-logs
Andreas Linz 3 years ago
parent
commit
ecb1263bc2
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      build/gitea/Makefile

+ 6
- 2
build/gitea/Makefile View File

@ -7,14 +7,18 @@ GITEA_BUILD_TAGS :=bindata
all: gitea
gitea: $(GITEA_SRC) checkout-version $(GOPATH)
cd $(GOPATH)/src/code.gitea.io/gitea && TAGS=$(GITEA_BUILD_TAGS) make generate build
gitea: $(GITEA_SRC) checkout-version $(GOPATH) $(GOPATH)/bin/go-bindata
cd $(GOPATH)/src/code.gitea.io/gitea\
&& PATH=$(GOPATH)/bin:$$PATH TAGS=$(GITEA_BUILD_TAGS) make generate build
cp $(GITEA_SRC)/$@ $@
$(GOPATH): $(GITEA_SRC)
mkdir -p $@/src/code.gitea.io
ln -sf $(shell pwd)/$(GITEA_SRC) $(GOPATH)/src/code.gitea.io/gitea
$(GOPATH)/bin/go-bindata: $(GOPATH)
go get github.com/jteeuwen/go-bindata/...
$(GITEA_SRC):
git clone https://github.com/go-gitea/gitea.git $@

Loading…
Cancel
Save