Adding help option in makefile

This commit is contained in:
wingaxe 2024-12-02 21:42:15 -05:00
parent c8283e1d08
commit ff241e6757
Signed by: wingaxe
GPG Key ID: 475979C299E0A48A

View File

@ -1,5 +1,14 @@
map.txt: map.ge
grep -v '# unimportant' $< | graph-easy --boxart > $@
.PHONY: help
full_map.txt: map.ge
help: ## Print the help message
@awk 'BEGIN {FS = ":.*?## "} /^[0-9a-zA-Z._-]+:.*?## / {printf "\033[36m%s\033[0m : %s\n", $$1, $$2}' $(MAKEFILE_LIST) | \
sort | \
column -s ':' -t
map.txt: map.ge ## Making map.txt
grep -v '# unimportant' $< | graph-easy --boxart > $@
cat $@
full_map.txt: map.ge ## Generating full_map.txt with graph-easy
graph-easy --boxart < $< > $@
cat $@