frostfs-dev-env/help.mk
Angira Kekteeva f8d2708e1a [#172] Makefile: Fix help regex
Made it print targets with / symbol

Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
2022-10-26 19:08:08 +03:00

11 lines
315 B
Makefile

.PHONY: help
# Show this help prompt
help:
@echo ' Usage:'
@echo ''
@echo ' make <target>'
@echo ''
@echo ' Targets:'
@echo ''
@awk '/^#/{ comment = substr($$0,3) } comment && /^[a-zA-Z][a-zA-Z0-9._/-]+ ?:/{ print " ", $$1, comment }' $(MAKEFILE_LIST) | column -t -s ':' | grep -v 'IGNORE' | sort -u