summaryrefslogtreecommitdiff
path: root/dyndns.mk
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-07-01 18:26:22 +0100
committerJoe Carstairs <me@joeac.net>2026-07-01 18:26:22 +0100
commitf73512107c7cf8d95fb1f97fa69706a1519e5ca3 (patch)
treed814c781098e5b73e6e80344d2f6d94bc4e51351 /dyndns.mk
parentf8401d00a43f16b83009241aa7f34041d73a25b3 (diff)
renames some module rules
Diffstat (limited to 'dyndns.mk')
-rw-r--r--dyndns.mk12
1 files changed, 6 insertions, 6 deletions
diff --git a/dyndns.mk b/dyndns.mk
index 4598c85..08566a6 100644
--- a/dyndns.mk
+++ b/dyndns.mk
@@ -1,16 +1,16 @@
define install_dyndns_module_rule =
-.PHONY: install_dyndns_module_$(module)
+.PHONY: install_dyndns_$(module)
install_dyndns_module_$(module): $(if $(SUBDOMAIN_$(module)),/etc/periodic/daily/dyndns-$(SUBDOMAIN_$(module)).joeac.net install_dyndns)
endef
define reinstall_dyndns_module_rule =
-.PHONY: reinstall_dyndns_module_$(module)
-reinstall_dyndns_module_$(module): $(if $(SUBDOMAIN_$(module)),/etc/periodic/daily/dyndns-$(SUBDOMAIN_$(module)).joeac.net reinstall_dyndns)
+.PHONY: reinstall_dyndns_$(module)
+reinstall_dyndns_$(module): $(if $(SUBDOMAIN_$(module)),/etc/periodic/daily/dyndns-$(SUBDOMAIN_$(module)).joeac.net reinstall_dyndns)
endef
define uninstall_dyndns_module_rule =
-.PHONY: uninstall_dyndns_module_$(module)
-uninstall_dyndns_module_$(module):
+.PHONY: uninstall_dyndns_$(module)
+uninstall_dyndns_$(module):
$(if $(SUBDOMAIN_$(module)), \
sudo rm -f /etc/periodic/daily/dyndns-$(SUBDOMAIN_$(module)).joeac.net
)
@@ -28,7 +28,7 @@ $(foreach module,$(ALL_MODULES), $(eval $(uninstall_dyndns_module_rule)))
sudo chmod +x $@
.PHONY: uninstall_dyndns
-uninstall_dyndns: $(foreach module,$(ALL_MODULES),$(uninstall_dyndns_module_rule))
+uninstall_dyndns: $(foreach module,$(ALL_MODULES),$(uninstall_dyndns_$(module)))
sudo rm -rf \
/usr/local/bin/dyndns.sh \
/usr/local/bin/get_ip_addr.sh \