forked from cosmos/cosmos-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge PR cosmos#5025: Standardize and clean up Makefile
* Attempt to standardise Makefile's conventions Use check- prefix for test- targets to adhere to Make's standard naming convention [1]. Snake-case names are abandoned in favor of kebab-case naming convention. [1] https://www.gnu.org/prep/standards/html_node/Standard-Targets.html * Replace check- with test- * Remove goimports from tools * Update circleci config * Update workflow steps names to match Makefile * Fix circleci config * s/check_statik/update-swagger-docs/
- Loading branch information
1 parent
e6068a8
commit 849e2fb
Showing
3 changed files
with
73 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,12 +44,11 @@ TOOLS_DESTDIR ?= $(GOPATH)/bin | |
|
||
GOLANGCI_LINT = $(TOOLS_DESTDIR)/golangci-lint | ||
STATIK = $(TOOLS_DESTDIR)/statik | ||
GOIMPORTS = $(TOOLS_DESTDIR)/goimports | ||
RUNSIM = $(TOOLS_DESTDIR)/runsim | ||
|
||
all: tools | ||
|
||
tools: statik runsim goimports golangci-lint | ||
tools: statik runsim golangci-lint | ||
|
||
golangci-lint: $(GOLANGCI_LINT) | ||
$(GOLANGCI_LINT): $(mkfile_dir)/install-golangci-lint.sh | ||
|
@@ -60,18 +59,13 @@ $(STATIK): | |
@echo "Get statik" | ||
@go get github.com/rakyll/statik | ||
|
||
goimports: $(GOIMPORTS) | ||
$(GOIMPORTS): | ||
@echo "Get [email protected]" | ||
@go get golang.org/x/tools/cmd/[email protected] | ||
|
||
runsim: $(RUNSIM) | ||
$(RUNSIM): | ||
@echo "Get runsim" | ||
@go get github.com/cosmos/tools/cmd/runsim | ||
|
||
tools-clean: | ||
rm -f $(STATIK) $(GOIMPORTS) $(GOLANGCI_LINT) $(RUNSIM) | ||
rm -f $(STATIK) $(GOLANGCI_LINT) $(RUNSIM) | ||
rm -f tools-stamp | ||
|
||
.PHONY: all tools tools-clean |