Skip to content

Instantly share code, notes, and snippets.

@santarinto
Created December 5, 2020 19:52
Show Gist options
  • Save santarinto/f07d36d2a3f4ca813cb341bbb8549b9f to your computer and use it in GitHub Desktop.
Save santarinto/f07d36d2a3f4ca813cb341bbb8549b9f to your computer and use it in GitHub Desktop.
Default Makefile woth help tasks
# Get from https://diamantidis.github.io/tips/2020/07/01/list-makefile-targets
.DEFAULT_GOAL := help
.PHONY: help
help:
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) \
| sed -n 's/^\(.*\): \(.*\)##\(.*\)/\1\3/p' \
| column -t -s ' '
install: ## Install
@echo "Installing..."
run: ## Run
@echo "Running..."
@santarinto
Copy link
Author

If comment great than 2 word all th comment bad view (

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment