From 3e8464aa16a5dc4d0d23d1c1c1f4abecb13b085a Mon Sep 17 00:00:00 2001 From: Petr Hrdina Date: Thu, 3 Jul 2025 13:12:36 +0200 Subject: [PATCH] Open podman once for multiple jobs in repo.mk --- mk/repo.mk | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/mk/repo.mk b/mk/repo.mk index 2a9c7496..0f069240 100644 --- a/mk/repo.mk +++ b/mk/repo.mk @@ -104,20 +104,36 @@ endif # Invoke clean.sh, and repo.sh for one of more targets separated by comma cr.%: $(FSTOOLS_TAG) FORCE +ifeq ($(PODMAN_BUILD),1) + $(PODMAN_RUN) $(MAKE) $@ +else $(MAKE) c.$* $(MAKE) r.$* +endif # Invoke unfetch.sh, clean.sh, and repo.sh for one or more targets separated by comma ucr.%: $(FSTOOLS_TAG) FORCE +ifeq ($(PODMAN_BUILD),1) + $(PODMAN_RUN) $(MAKE) $@ +else $(MAKE) u.$* $(MAKE) cr.$* +endif # Invoke unfetch.sh and clean.sh for one or more targets separated by comma uc.%: $(FSTOOLS_TAG) FORCE +ifeq ($(PODMAN_BUILD),1) + $(PODMAN_RUN) $(MAKE) $@ +else $(MAKE) u.$* $(MAKE) c.$* +endif # Invoke unfetch, clean.sh and fetch.sh for one or more targets separated by comma ucf.%: $(FSTOOLS_TAG) FORCE +ifeq ($(PODMAN_BUILD),1) + $(PODMAN_RUN) $(MAKE) $@ +else $(MAKE) uc.$* $(MAKE) f.$* +endif