summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-07-01 17:55:30 +0100
committerJoe Carstairs <me@joeac.net>2026-07-01 17:55:30 +0100
commit2b00e0399973178ec06b5e43673c0345a6a2895a (patch)
treef98f0b3770fc8aef252ff8afddd444a6041d1c61 /Makefile
parentbf2dabe3f48dca6cd49bb703d2b7f244c54dfafa (diff)
pulls out uninstall to openrc.mk
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 1 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index b00474b..3a14e68 100644
--- a/Makefile
+++ b/Makefile
@@ -23,7 +23,6 @@ MAKE_MODULES := $(foreach module,$(MODULES),\
# FUNCTIONS #
#############
-openrc_module_target = $(if $(filter $(COMPOSE_SERVICES),$(module)),~/.config/rc/init.d/joeac.net.$(module))
install_submake_file = $(shell [ -f "$(module)/install.mk" ] && echo "$(module)/install.mk")
define make_module_rule =
@@ -51,12 +50,7 @@ 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) \
- )
+uninstall_$(module): uninstall_openrc_$(module)
$(if $(SUBDOMAIN_$(module)),\
sudo rm -f /etc/nginx/http.d/$(SUBDOMAIN_$(module)).joeac.net.conf; \
$(RESTART_NGINX); \