From 1444b29faed24bee3ead1582364e3606ba24f7a9 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Wed, 1 Jul 2026 16:58:20 +0100 Subject: [PATCH] removes duplicate module rule funcs in Makefile --- Makefile | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/Makefile b/Makefile index af03bb7..eb00946 100644 --- a/Makefile +++ b/Makefile @@ -35,7 +35,6 @@ container_image_name = $(REGISTRY_DOMAIN)/$(REGISTRY_USER)/joeac.net-$(module) nginx_module_target = $(if $(SUBDOMAIN_$(module)),/etc/nginx/http.d/$(SUBDOMAIN_$(module)).joeac.net.conf) dyndns_module_target = $(if $(SUBDOMAIN_$(module)),/etc/periodic/daily/dyndns-$(SUBDOMAIN_$(module)).joeac.net) - define install_module_rule = .PHONY: install_$(module) install_$(module): install_openrc_$(module) $(nginx_module_target) $(dyndns_module_target) $(install_submake_file) @@ -73,36 +72,6 @@ $(module)/.env: .env cp .env $(module)/.env endef -define install_module_rule = -.PHONY: install_$(module) -install_$(module): install_openrc_$(module) $(nginx_module_target) $(dyndns_module_target) $(install_submake_file) - $(if $(install_submake_file),$(MAKE) --makefile=$(notdir $(install_submake_file)) --directory=$(dir $(install_submake_file)) install) -endef - -define reinstall_module_rule = -.PHONY: reinstall_$(module) -reinstall_$(module): reinstall_openrc_$(module) $(nginx_module_target) $(dyndns_module_target) $(install_submake_file) - $(if $(install_submake_file),$(MAKE) --makefile=$(notdir $(install_submake_file)) --directory=$(dir $(install_submake_file)) reinstall) -endef - -define uninstall_module_rule = -.PHONY: uninstall_$(module) -uninstall_$(module): - $(if $(openrc_module_target),\ - rc-service -U joeac.net.$(module) stop \ - rc-update -U del joeac.net.$(module) default \ - rm ~/.config/rc/init.d/joeac.net.$(module) \ - ) - $(if $(SUBDOMAIN_$(module)),\ - sudo rm -f /etc/nginx/http.d/$(SUBDOMAIN_$(module)).joeac.net.conf; \ - $(RESTART_NGINX); \ - sudo rm -f /etc/periodic/daily/dyndns-$(SUBDOMAIN_$(module)).joeac.net; \ - ) - $(if $(install_submake_file),\ - $(MAKE) --makefile=$(notdir (install_submake_file)) --directory $(dir $(install_submake_file)) uninstall - ) -endef - ######### # RULES #