-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved readme, Makefile and TravisCI config
- Loading branch information
Showing
1 changed file
with
24 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,40 @@ | ||
######################################################################################## | ||
################################################################################ | ||
|
||
# This Makefile generated by GoMakeGen 0.6.0 using next command: | ||
# This Makefile generated by GoMakeGen 0.8.0 using next command: | ||
# gomakegen . | ||
|
||
######################################################################################## | ||
################################################################################ | ||
|
||
.PHONY = fmt all clean deps | ||
.DEFAULT_GOAL := help | ||
.PHONY = fmt all clean deps help | ||
|
||
######################################################################################## | ||
################################################################################ | ||
|
||
all: redis-monitor-top | ||
all: redis-monitor-top ## Build all binaries | ||
|
||
redis-monitor-top: | ||
redis-monitor-top: ## Build redis-monitor-top binary | ||
go build redis-monitor-top.go | ||
|
||
deps: | ||
install: ## Install binaries | ||
cp redis-monitor-top /usr/bin/redis-monitor-top | ||
|
||
uninstall: ## Uninstall binaries | ||
rm -f /usr/bin/redis-monitor-top | ||
|
||
deps: ## Download dependencies | ||
git config --global http.https://pkg.re.followRedirects true | ||
go get -d -v pkg.re/essentialkaos/ek.v9 | ||
|
||
fmt: | ||
fmt: ## Format source code with gofmt | ||
find . -name "*.go" -exec gofmt -s -w {} \; | ||
|
||
clean: | ||
clean: ## Remove generated files | ||
rm -f redis-monitor-top | ||
|
||
######################################################################################## | ||
help: ## Show this info | ||
@echo -e '\nSupported targets:\n' | ||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) \ | ||
| awk 'BEGIN {FS = ":.*?## "}; {printf " \033[33m%-12s\033[0m %s\n", $$1, $$2}' | ||
@echo -e '' | ||
|
||
################################################################################ |