Browse Source

make will install

pull/96/head
Jae Kwon 10 years ago
parent
commit
a55950e1d0
2 changed files with 10 additions and 2 deletions
  1. +7
    -2
      Makefile
  2. +3
    -0
      cmd/tendermint/main.go

+ 7
- 2
Makefile View File

@ -1,6 +1,11 @@
.PHONY: get_deps build all list_deps
.PHONY: get_deps build all list_deps install
all: build
all: install
install:
go install github.com/tendermint/tendermint/cmd/tendermint
go install github.com/tendermint/tendermint/cmd/barak
go install github.com/tendermint/tendermint/cmd/debora
build:
go build -o build/tendermint github.com/tendermint/tendermint/cmd/tendermint


+ 3
- 0
cmd/tendermint/main.go View File

@ -21,6 +21,7 @@ Commands:
gen_validator Generate new validator keypair
gen_tx Generate new transaction
probe_upnp Test UPnP functionality
version Show version info
`)
return
}
@ -43,6 +44,8 @@ Commands:
probe_upnp()
case "unsafe_reset_priv_validator":
reset_priv_validator()
case "version":
fmt.Println(config.GetString("version"))
default:
fmt.Printf("Unknown command %v\n", args[0])
}


Loading…
Cancel
Save