Commit 5dba27d0 authored by Michael Shigorin's avatar Michael Shigorin

main.mk: factored out help targets

These are better off in their own lib/help.mk
parent 79bb3f8d
# this makefile holds the most helpful bits for the toplevel one
help/distro:
@echo '** available distribution targets:'; \
echo $(DISTROS) | fmt -sw"$$((COLUMNS>>1))" | column -t
help/ve:
@echo '** available virtual environment targets:'; \
echo $(VES) | fmt -sw"$$((COLUMNS>>1))" | column -t
help: | help/distro help/space help/ve; @:
help/space:; @echo
......@@ -45,17 +45,6 @@ IMAGES := $(DISTROS) $(VES)
.PHONY: $(IMAGES) $(DISTRO_TARGETS) $(VE_TARGETS)
.PHONY: debug everything help space
distro/help:
@echo '** available distribution targets:'
@echo $(DISTROS) | fmt -sw"$$((COLUMNS>>1))" | column -t
ve/help:
@echo '** available virtual environment targets:'
@echo $(VES) | fmt -sw"$$((COLUMNS>>1))" | column -t
help: | distro/help space ve/help
space:; @echo
### duplicate but still needed
everything:
@n=1; sum=$(words $(DISTROS)); \
......@@ -75,7 +64,7 @@ $(IMAGES): debug \
build; @:
# convenience shortcut
$(DISTROS:distro/%=%): %: distro/%
$(DISTROS:distro/%=%): %: distro/%; @:
debug:
ifeq (2,$(DEBUG))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment