summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--make/nginx.mk2
-rw-r--r--make/openrc.mk2
-rw-r--r--make/vars.mk2
4 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 974b72a..8da5087 100644
--- a/Makefile
+++ b/Makefile
@@ -31,7 +31,7 @@ define uninstall_module_rule =
.PHONY: uninstall_$(module)
uninstall_$(module): uninstall_openrc_$(module) uninstall_dyndns_$(module)
$(if $(install_submake_file),\
- $(MAKE) --makefile=$(notdir (install_submake_file)) --directory $(dir $(install_submake_file)) uninstall
+ $(MAKE) --makefile=$(notdir $(install_submake_file)) --directory $(dir $(install_submake_file)) uninstall
)
endef
diff --git a/make/nginx.mk b/make/nginx.mk
index b8b558a..4e49600 100644
--- a/make/nginx.mk
+++ b/make/nginx.mk
@@ -23,7 +23,7 @@ endef
define uninstall_nginx_module_rule =
.PHONY: uninstall_nginx_$(module)
uninstall_nginx_$(module):
- (if $(SUBDOMAIN_$(module)),rm -f /etc/nginx/http.d/$(SUBDOMAIN_$(module)).joeac.net.conf)
+ $(if $(SUBDOMAIN_$(module)),sudo rm -f /etc/nginx/http.d/$(SUBDOMAIN_$(module)).joeac.net.conf)
endef
define remove_nginx_site_rule =
diff --git a/make/openrc.mk b/make/openrc.mk
index 85bdc3e..92a527c 100644
--- a/make/openrc.mk
+++ b/make/openrc.mk
@@ -21,7 +21,7 @@ uninstall_openrc_$(module):
$(if $(is_openrc_module),\
rc-service -U joeac.net.$(module) stop; \
rc-update -U del joeac.net.$(module) default; \
- rm ~/.config/rc/init.d/joeac.net.$(module); \
+ rm -f ~/.config/rc/init.d/joeac.net.$(module); \
)
endef
diff --git a/make/vars.mk b/make/vars.mk
index e9f1ec4..27044cf 100644
--- a/make/vars.mk
+++ b/make/vars.mk
@@ -1,4 +1,4 @@
-capitalise = $(shell _v="$(1)"; echo $${_v^^})
+capitalise = $(shell echo "$(1)" | tr '[:lower:]' '[:upper:]')
USER := $(shell whoami)
HOSTNAME := $(shell cat /etc/hostname)