Last active
January 4, 2020 14:37
-
-
Save otsuarez/0c963fcd01cee8acfc9c8ff2c4dc9459 to your computer and use it in GitHub Desktop.
Makefile for docs
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
all: help | |
save: ## save work | |
git add . ; git commit -am'doc updates' ; git pull ; git push | |
watch: ## run save in tmux | |
tmux new-session -s "docs" \; send-keys 'watch make save' C-m \; split-window -v \; | |
.PHONY: help | |
help: | |
@grep -E '^[0-9a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) \ | |
| awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment