OSDN Git Service

Remove copy in Makefile
authorLiu-Cheng Xu <xuliuchengxlc@gmail.com>
Tue, 31 Oct 2017 00:54:56 +0000 (08:54 +0800)
committerLiu-Cheng Xu <xuliuchengxlc@gmail.com>
Tue, 31 Oct 2017 00:54:56 +0000 (08:54 +0800)
Makefile

index 1a9fbf5..7c591dd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,11 @@
-GOTOOLS  = github.com/mitchellh/gox \
+GOTOOLS  = \
+                  github.com/mitchellh/gox \
                   github.com/Masterminds/glide
 PACKAGES = $(shell go list ./... | grep -v '/vendor/' | grep -v '/rpc/')
 
 all: install test
 
-install: get_vendor_deps copy
+install: get_vendor_deps
        @go install --ldflags '-extldflags "-static"' \
                --ldflags "-X github.com/Bytom/blockchain/version.GitCommit=`git rev-parse HEAD`" ./node/
        @echo "====> Done!"
@@ -17,16 +18,8 @@ get_vendor_deps: ensure_tools
 ensure_tools:
        go get $(GOTOOLS)
 
-# In case of the terrible network condition
-copy:
-       @cp -r vendor/github.com/golang/crypto vendor/golang.org/x/crypto
-       @cp -r vendor/github.com/golang/net    vendor/golang.org/x/net
-       @cp -r vendor/github.com/golang/text   vendor/golang.org/x/text
-       @cp -r vendor/github.com/golang/tools  vendor/golang.org/x/tools
-       @cp -r vendor/github.com/golang/time   vendor/golang.org/x/time
-
 test:
-       @echo "=====> Running go test"
+       @echo "====> Running go test"
        @go test $(PACKAGES)
 
-.PHONY: install get_vendor_deps ensure_tools copy test
+.PHONY: install get_vendor_deps ensure_tools test