Skip to content

Instantly share code, notes, and snippets.

@otsuarez
Last active January 4, 2020 14:37
Show Gist options
  • Save otsuarez/0c963fcd01cee8acfc9c8ff2c4dc9459 to your computer and use it in GitHub Desktop.
Save otsuarez/0c963fcd01cee8acfc9c8ff2c4dc9459 to your computer and use it in GitHub Desktop.
Makefile for docs
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