mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 06:42:16 +00:00
makefile: minor cleanup (#3994)
- goimports is not used as a tool anymore - correct me if wrong - rename devtools folder to merely tools.mk - remove slate_header.txt Signed-off-by: Marko Baricevic <marbar3778@yahoo.com>
This commit is contained in:
parent
45ddd67bd6
commit
9d4a480f54
6
Makefile
6
Makefile
@ -15,7 +15,7 @@ BUILD_FLAGS = -mod=readonly -ldflags "$(LD_FLAGS)"
|
|||||||
all: check build test install
|
all: check build test install
|
||||||
|
|
||||||
# The below include contains the tools.
|
# The below include contains the tools.
|
||||||
include scripts/devtools/Makefile
|
include tools.mk
|
||||||
include tests.mk
|
include tests.mk
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
@ -153,10 +153,6 @@ lint:
|
|||||||
|
|
||||||
DESTINATION = ./index.html.md
|
DESTINATION = ./index.html.md
|
||||||
|
|
||||||
rpc-docs:
|
|
||||||
cat rpc/core/slate_header.txt > $(DESTINATION)
|
|
||||||
godoc2md -template rpc/core/doc_template.txt github.com/tendermint/tendermint/rpc/core | grep -v -e "pipe.go" -e "routes.go" -e "dev.go" | sed 's,/src/target,https://github.com/tendermint/tendermint/tree/master/rpc/core,' >> $(DESTINATION)
|
|
||||||
|
|
||||||
###########################################################
|
###########################################################
|
||||||
### Docker image
|
### Docker image
|
||||||
|
|
||||||
|
@ -1,15 +1,5 @@
|
|||||||
# Tendermint RPC
|
# Tendermint RPC
|
||||||
|
|
||||||
We are using [Slate](https://github.com/lord/slate) to power our RPC
|
|
||||||
documentation. For generating markdown use:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
go get github.com/davecheney/godoc2md
|
|
||||||
|
|
||||||
# from root of this repo
|
|
||||||
make rpc-docs
|
|
||||||
```
|
|
||||||
|
|
||||||
## Pagination
|
## Pagination
|
||||||
|
|
||||||
Requests that return multiple items will be paginated to 30 items by default.
|
Requests that return multiple items will be paginated to 30 items by default.
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
---
|
|
||||||
title: RPC Reference
|
|
||||||
|
|
||||||
language_tabs: # must be one of https://git.io/vQNgJ
|
|
||||||
- shell
|
|
||||||
- go
|
|
||||||
|
|
||||||
toc_footers:
|
|
||||||
- <a href='https://tendermint.com/'>Tendermint</a>
|
|
||||||
- <a href='https://github.com/lord/slate'>Documentation Powered by Slate</a>
|
|
||||||
|
|
||||||
search: true
|
|
||||||
---
|
|
@ -40,7 +40,6 @@ mkfile_dir := $(shell cd $(shell dirname $(mkfile_path)); pwd)
|
|||||||
|
|
||||||
TOOLS_DESTDIR ?= $(GOPATH)/bin
|
TOOLS_DESTDIR ?= $(GOPATH)/bin
|
||||||
|
|
||||||
GOIMPORTS = $(TOOLS_DESTDIR)/goimports
|
|
||||||
CERTSTRAP = $(TOOLS_DESTDIR)/certstrap
|
CERTSTRAP = $(TOOLS_DESTDIR)/certstrap
|
||||||
PROTOBUF = $(TOOLS_DESTDIR)/protoc
|
PROTOBUF = $(TOOLS_DESTDIR)/protoc
|
||||||
GOX = $(TOOLS_DESTDIR)/gox
|
GOX = $(TOOLS_DESTDIR)/gox
|
||||||
@ -48,7 +47,7 @@ GOODMAN = $(TOOLS_DESTDIR)/goodman
|
|||||||
|
|
||||||
all: tools
|
all: tools
|
||||||
|
|
||||||
tools: goimports certstrap protobuf gox goodman
|
tools: certstrap protobuf gox goodman
|
||||||
|
|
||||||
check: check_tools
|
check: check_tools
|
||||||
|
|
||||||
@ -57,11 +56,6 @@ check_tools:
|
|||||||
@echo "Found tools: $(foreach tool,$(notdir $(GOTOOLS)),\
|
@echo "Found tools: $(foreach tool,$(notdir $(GOTOOLS)),\
|
||||||
$(if $(shell which $(tool)),$(tool),$(error "No $(tool) in PATH")))"
|
$(if $(shell which $(tool)),$(tool),$(error "No $(tool) in PATH")))"
|
||||||
|
|
||||||
goimports: $(GOIMPORTS)
|
|
||||||
$(GOIMPORTS):
|
|
||||||
@echo "Get goimports@v0.0.0-20190628034336-212fb13d595e"
|
|
||||||
@go get golang.org/x/tools/cmd/goimports@v0.0.0-20190628034336-212fb13d595e
|
|
||||||
|
|
||||||
certstrap: $(CERTSTRAP)
|
certstrap: $(CERTSTRAP)
|
||||||
$(CERTSTRAP):
|
$(CERTSTRAP):
|
||||||
@echo "Get Certstrap"
|
@echo "Get Certstrap"
|
||||||
@ -86,7 +80,7 @@ $(GOODMAN):
|
|||||||
@go get github.com/snikch/goodman/cmd/goodman@10e37e294daa3c9a90abded60ff9924bafab3888
|
@go get github.com/snikch/goodman/cmd/goodman@10e37e294daa3c9a90abded60ff9924bafab3888
|
||||||
|
|
||||||
tools-clean:
|
tools-clean:
|
||||||
rm -f $(CERTSTRAP) $(GOIMPORTS) $(PROTOBUF) $(GOX) $(GOODMAN)
|
rm -f $(CERTSTRAP) $(PROTOBUF) $(GOX) $(GOODMAN)
|
||||||
rm -f tools-stamp
|
rm -f tools-stamp
|
||||||
|
|
||||||
.PHONY: all tools tools-clean
|
.PHONY: all tools tools-clean
|
Loading…
x
Reference in New Issue
Block a user