summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-07-02 09:35:47 +0100
committerJoe Carstairs <me@joeac.net>2026-07-02 09:35:47 +0100
commitf39c4a51ddc101db462cf64cbee14a351d911cc7 (patch)
tree9d29358465e7d7b6e1ba6c0957d58fb4f1ba282b /make
parent8e857abf293f7d9d598a5dc99aa8758e9136b3d1 (diff)
adds empty build, push rules
Diffstat (limited to 'make')
-rw-r--r--make/container.mk15
1 files changed, 9 insertions, 6 deletions
diff --git a/make/container.mk b/make/container.mk
index 101e4e4..84a6483 100644
--- a/make/container.mk
+++ b/make/container.mk
@@ -6,21 +6,24 @@ REGISTRY_DOMAIN := git.joeac.net
REGISTRY_USER := joeac
container_image_name = $(REGISTRY_DOMAIN)/$(REGISTRY_USER)/$(CONTAINER_PREFIX)joeac.net-$(module)
+is_containerised = $(filter $(COMPOSE_SERVICES),$(module))
define build_module_rule =
.PHONY: build_$(module)
-build_$(module): make_$(module) $(module).Dockerfile
- IMAGE_PREFIX="$(IMAGE_PREFIX)" podman-compose build $(module)
+build_$(module): $(if $(is_containerised),make_$(module) $(module).Dockerfile)
+ $(if $(is_containerised),\
+ IMAGE_PREFIX="$(IMAGE_PREFIX)" podman-compose build $(module))
endef
define push_module_rule =
.PHONY: push_$(module)
-push_$(module): login_registry build_$(module)
- podman push $(container_image_name)
+push_$(module): $(if $(is_containerised),login_registry build_$(module))
+ $(if $(is_containerised),\
+ podman push $(container_image_name))
endef
-$(foreach module,$(COMPOSE_SERVICES),$(eval $(call build_module_rule)))
-$(foreach module,$(COMPOSE_SERVICES),$(eval $(call push_module_rule)))
+$(foreach module,$(MODULES),$(eval $(call build_module_rule)))
+$(foreach module,$(MODULES),$(eval $(call push_module_rule)))
.PHONY: login_registry
login_registry: