summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-07-02 22:27:50 +0100
committerJoe Carstairs <me@joeac.net>2026-07-02 22:27:50 +0100
commit24c55e142bd15e14495901552d766866979eae86 (patch)
tree8610f26406b7b35112c54d1966f99dd0761fc574 /make
parentde19519be0299e5cde667945e924f7aaecd43e6e (diff)
PORT_module is aliased to MODULE_PORT
Diffstat (limited to 'make')
-rw-r--r--make/vars.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/make/vars.mk b/make/vars.mk
index f5806e6..d52309b 100644
--- a/make/vars.mk
+++ b/make/vars.mk
@@ -1,3 +1,5 @@
+capitalise = $(shell _v="$(1)"; echo $${_v^^})
+
HOSTNAME := $(shell cat /etc/hostname)
HOSTNAMES := pi-broughton blade-canongate
MASTER_NODE := pi-broughton
@@ -23,6 +25,9 @@ PORT_gemini := 1965
PORT_smtp := 2500
PORT_vaultwarden := 9000
+$(foreach module,$(ALL_MODULES),$(if $(PORT_$(module)),$(eval \
+ export $(call capitalise,$(module))_PORT := $(PORT_$(module)))))
+
SUBDOMAINS := $(foreach module,$(MODULES),$(SUBDOMAIN_$(module)))
NGINX_SUBDOMAINS := $(foreach module,$(NGINX_MODULES),$(SUBDOMAIN_$(module)))