Skip to contentSkip to conversation

automation: Add an 'all' target for container maintenance

PATCH In review Andrew Cooper 2 participants 2 messages Jun 10, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 automation: Add an 'all' target for container maintenance

---
CC: Wei Liu <[email protected]>
CC: Doug Goldstein <[email protected]>

---
 automation/build/Makefile | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
automation/build/Makefile +5 -3
index 773b160..7c7612b 100644
@@ -1,13 +1,12 @@
 
 # the base of where these containers will appear
 REGISTRY := registry.gitlab.com/xen-project/xen
+CONTAINERS = $(subst .dockerfile,,$(wildcard */*.dockerfile))
 
 help:
 	@echo "Builds containers for building Xen based on different distros"
 	@echo "To build one run 'make DISTRO/VERSION'. Available containers:"
-	@$(foreach file,$(sort $(subst .dockerfile,,$(wildcard */*.dockerfile))), \
-		echo ${file} ; \
-	)
+	@$(foreach file,$(sort $(CONTAINERS)),echo ${file};)
 	@echo "To push container builds, set the env var PUSH"
 
 %: %.dockerfile ## Builds containers
@@ -15,3 +14,6 @@ help:
 	@if [ ! -z $${PUSH+x} ]; then \
 		docker push $(REGISTRY)/$(@D):$(@F); \
 	fi
+
+.PHONY: all
+all: $(CONTAINERS)
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel