1 | help: |
2 | @echo "targets:" |
3 | @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) \ |
4 | | sed -n 's/^\(.*\): \(.*\)##\(.*\)/ \1|\3/p' \ |
5 | | column -t -s '|' |
6 | |
7 | .PHONY: clean |
8 | clean: ## clean the uneeded files |
9 | code_to_clean_the_files |
Last active
Makefile that shows targets names automatically, (I don't remember the source, if you know the source or are the source please contact me)
1 | help: |
2 | @echo "targets:" |
3 | @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) \ |
4 | | sed -n 's/^\(.*\): \(.*\)##\(.*\)/ \1|\3/p' \ |
5 | | column -t -s '|' |
6 | |
7 | .PHONY: clean |
8 | clean: ## clean the uneeded files |
9 | code_to_clean_the_files |