OSDN Git Service

add go install (#1416)
authorChengcheng Zhang <943420582@qq.com>
Fri, 19 Oct 2018 02:12:29 +0000 (10:12 +0800)
committerPaladz <yzhu101@uottawa.ca>
Fri, 19 Oct 2018 02:12:29 +0000 (10:12 +0800)
* add go install

* update

* update

Makefile

index 929378a..aa26529 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -52,6 +52,11 @@ bytomcli:
        @echo "Building bytomcli to cmd/bytomcli/bytomcli"
        @go build $(BUILD_FLAGS) -o cmd/bytomcli/bytomcli cmd/bytomcli/main.go
 
+install:
+       @echo "Installing bytomd and bytomcli to $(GOPATH)/bin"
+       @go install ./cmd/bytomd
+       @go install ./cmd/bytomcli
+
 target:
        mkdir -p $@
 
@@ -92,6 +97,8 @@ clean:
        @rm -rf cmd/bytomcli/bytomcli
        @rm -rf cmd/miner/miner
        @rm -rf target
+       @rm -rf $(GOPATH)/bin/bytomd
+       @rm -rf $(GOPATH)/bin/bytomcli
        @echo "Cleaning temp test data..."
        @rm -rf test/pseudo_hsm*
        @rm -rf blockchain/pseudohsm/testdata/pseudo/