Fixed bug of insufficient isolation of build environment
This commit is contained in:
parent
3b696d677e
commit
95f6b78b6f
@ -7,8 +7,6 @@ LDFLAGS := -X blockbook/common.version=$(VERSION) -X blockbook/common.gitcommit=
|
||||
BLOCKBOOK_SRC := $(GOPATH)/src/blockbook
|
||||
ARGS ?=
|
||||
|
||||
export BLOCKBOOK_SRC
|
||||
|
||||
all: build tools
|
||||
|
||||
build: prepare-sources generate-data
|
||||
@ -36,7 +34,8 @@ test-all: prepare-sources generate-data
|
||||
|
||||
prepare-sources:
|
||||
@ [ -n "`ls /src 2> /dev/null`" ] || (echo "/src doesn't exist or is empty" 1>&2 && exit 1)
|
||||
[ -d $(BLOCKBOOK_SRC) ] || cp -r /src $(BLOCKBOOK_SRC)
|
||||
[ -d $(BLOCKBOOK_SRC) ] && rm -rf $(BLOCKBOOK_SRC)
|
||||
cp -r /src $(BLOCKBOOK_SRC)
|
||||
$(MAKE) prepare-vendor
|
||||
|
||||
prepare-vendor:
|
||||
|
||||
@ -14,7 +14,7 @@ shift 2
|
||||
mkdir -p build
|
||||
cp -r /src/build/templates build
|
||||
cp -r /src/configs .
|
||||
ln -s /src/ /go/src/blockbook
|
||||
mkdir -p /go/src/blockbook/build && cp -r /src/build/tools /go/src/blockbook/build/tools
|
||||
go run build/templates/generate.go $coin
|
||||
|
||||
# backend
|
||||
|
||||
Loading…
Reference in New Issue
Block a user