mkimage-profiles/lib/help.mk

29 lines
565 B
Makefile
Raw Normal View History

# this makefile holds the most helpful bits for the toplevel one
2012-05-12 17:22:15 +04:00
ifdef __frontend
define help_body
@for i in $(2); do echo $$i; done
endef
else
define help_body
echo '** available $(1) targets:'; \
2012-05-12 17:22:15 +04:00
columnize $(2)
endef
endif
help = $(and $(2),$(help_body))
help/distro:
@$(call help,distribution,$(sort $(DISTROS:distro/%=%)))
help/ve:
@[ -n "$(SPACE)" ] && echo; \
$(call help,virtual environment,$(sort $(VES)))
help/vm:
@[ -n "$(SPACE)" ] && echo; \
$(call help,virtual machine,$(sort $(VMS)))
help: SPACE = 1
help: help/distro help/ve help/vm; @: