mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Acked-by: Doug Goldstein <cardoe@cardoe.com>
20 lines
620 B
Makefile
20 lines
620 B
Makefile
|
|
# 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 $(CONTAINERS)),echo ${file};)
|
|
@echo "To push container builds, set the env var PUSH"
|
|
|
|
%: %.dockerfile ## Builds containers
|
|
docker build -t $(REGISTRY)/$(@D):$(@F) -f $< $(<D)
|
|
@if [ ! -z $${PUSH+x} ]; then \
|
|
docker push $(REGISTRY)/$(@D):$(@F); \
|
|
fi
|
|
|
|
.PHONY: all
|
|
all: $(CONTAINERS)
|