images/Makefile
Sean Eagan ec7e6f3fc9 Optimize image build/publish jobs
Zuul jobs are running out of space and failing. This attempts to
resolve by cleaning up between the build/publish of each image.

Switched to the ansible command module, since the make module doesn't
support multiple make targets.

Added a clean target to any image which didn't already have one, which
was just the ipa-downloader-image.

Signed-off-by: Sean Eagan <seaneagan1@gmail.com>
Change-Id: I36747a7cd858eef612f654f50a5c65f596e4a59d
2021-04-02 16:07:56 -05:00

9 lines
186 B
Makefile

TOPTGTS := images lint all docs run_images tests clean
IMAGES := $(wildcard */Makefile)
$(TOPTGTS): $(IMAGES)
$(IMAGES):
$(MAKE) -C $(@D) $(MAKECMDGOALS)
.PHONY: $(TOPTGTS) $(IMAGES)