summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoe Carstairs <s1806931@ed.ac.uk>2026-07-01 15:24:01 +0100
committerJoe Carstairs <s1806931@ed.ac.uk>2026-07-01 15:24:01 +0100
commit04e1dad95248a45aa864e084ffcbeda24fdf0ef3 (patch)
tree2e85fae738610feaaaac13f9c29384e0022faf73 /Makefile
parente170bafffc7bc8c5bc82d75abe05d57fcc5ab07b (diff)
pulls out crontab.mk
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 1 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index b0f17fb..63d6382 100644
--- a/Makefile
+++ b/Makefile
@@ -211,20 +211,7 @@ $(foreach module,$(MODULES),$(eval $(openrc_restart_rule)))
/etc/nginx/http.d:
sudo mkdir -p /etc/nginx/http.d
-.PHONY: install_crontab
-install_crontab: /etc/periodic/daily/joeac.net
-
-.PHONY: uninstall_crontab
-uninstall_crontab:
- sudo rm -f /etc/periodic/daily/joeac.net
-
-/etc/periodic/daily/joeac.net:
- echo "#!/bin/sh" > crontab.tmp
- echo "git -C /usr/local/lib/joeac.net pull && $(MAKE) --directory /usr/local/lib/joeac.net && rc-service joeac.net restart" \
- >> crontab.tmp
- sudo mv crontab.tmp /etc/periodic/daily/joeac.net
- sudo chmod +x /etc/periodic/daily/joeac.net
-
+include crontab.mk
include dyndns.mk
.PHONY: clean