Skip to content

Instantly share code, notes, and snippets.

@BenjaminRqt
Last active January 9, 2020 14:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BenjaminRqt/1e9a597ddbf856e6cc89fd1b2d17f9e6 to your computer and use it in GitHub Desktop.
Save BenjaminRqt/1e9a597ddbf856e6cc89fd1b2d17f9e6 to your computer and use it in GitHub Desktop.
Afficher l'aide sur un Makefile

Créer une commande "make help" pour afficher les commentaires d'une commande

.PHONY: help
help: ## This help
	@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(TARGETS) | sort | 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