help.mk 565 Bytes
Newer Older
1 2
# this makefile holds the most helpful bits for the toplevel one

3 4 5 6 7 8
ifdef __frontend
define help_body
	@for i in $(2); do echo $$i; done
endef
else
define help_body
9
	echo '** available $(1) targets:'; \
10 11 12 13 14 15
	columnize $(2)
endef
endif

help = $(and $(2),$(help_body))

16
help/distro:
17
	@$(call help,distribution,$(sort $(DISTROS:distro/%=%)))
18 19

help/ve:
20 21
	@[ -n "$(SPACE)" ] && echo; \
	$(call help,virtual environment,$(sort $(VES)))
22

23 24 25 26 27 28
help/vm:
	@[ -n "$(SPACE)" ] && echo; \
	$(call help,virtual machine,$(sort $(VMS)))

help: SPACE = 1
help: help/distro help/ve help/vm; @: