main.mk: Added vm/, ve/ targets into everything target

For check all targets.
This commit is contained in:
Anton Midyukov 2020-08-27 23:39:54 +07:00
parent a2122b6943
commit ffac3c6f10

View File

@ -61,8 +61,10 @@ VE_TARGETS := $(call targets,ve)
VM_TARGETS := $(call targets,vm)
DISTROS := $(call addsuffices,$(DISTRO_EXTS),$(DISTRO_TARGETS))
VES := $(call addsuffices,$(VE_EXTS),$(VE_TARGETS))
VES_TAR := $(call addsuffices,.tar,$(VE_TARGETS))
VMS := $(call addsuffices,$(VM_EXTS),$(VM_TARGETS)) \
$(call addsuffices,$(VM_TAVOLGA_EXTS), $(filter vm/tavolga-%, $(VM_TARGETS)))
VMS_IMG := $(call addsuffices,.img,$(VM_TARGETS))
IMAGES := $(DISTROS) $(VES) $(VMS)
.PHONY: $(IMAGES) $(DISTRO_TARGETS) $(VE_TARGETS) $(VM_TARGETS)
@ -73,8 +75,8 @@ export LC_MESSAGES=C
### duplicate but still needed
everything:
@n=1; sum=$(words $(DISTROS)); \
for distro in $(DISTROS); do \
@n=1; sum=$(words $(DISTROS) $(VES_TAR) $(VMS_IMG)); \
for distro in $(DISTROS) $(VES_TAR) $(VMS_IMG); do \
echo "** building $$distro [$$n/$$sum]:"; \
$(MAKE) -f main.mk --no-print-directory $$distro; \
[ "$$n" -lt "$$sum" ] && echo; \