Last active 1707331072

Makefile that shows targets names automatically, (I don't remember the source, if you know the source or are the source please contact me)

jmjl's Avatar jmjl revised this gist 1707331072. Go to revision

No changes

jmjl's Avatar jmjl revised this gist 1707331014. Go to revision

1 file changed, 9 insertions

Makefile(file created)

@@ -0,0 +1,9 @@
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
Newer Older