]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
automation: Add an 'all' target for container maintenance
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 10 Jun 2019 17:52:04 +0000 (18:52 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 11 Jun 2019 10:06:52 +0000 (11:06 +0100)
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Doug Goldstein <cardoe@cardoe.com>
automation/build/Makefile

index 773b16037c6e2e049db6cc3259d66601b4c03632..7c7612b1d9c921092ecd9163c03a13f6fa741cb8 100644 (file)
@@ -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)