From 3302005a360ee3b27cb4eef3c07a93e3a7c82b7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Stensg=C3=A5rd?= Date: Tue, 22 Jul 2025 23:25:46 +0200 Subject: Makefile: add target to enable service and timer --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e0f9f4f..7b5f2c2 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,10 @@ clean: rm -f sqlite.o rm -f sqlite3 +enable: + systemctl enable opplysning-forfrisk.timer + systemctl enable opplysning-vis.service + install: all mkdir -p /opt/opplysning/bin cp -f bin/opplysning-endre /opt/opplysning/bin/ @@ -38,7 +42,7 @@ install: all cp -f systemd/opplysning-vis.service /lib/systemd/system systemctl daemon-reload -.PHONY: all check clean install +.PHONY: all check clean enable install bin/opplysning-endre: opplysning-endre.c sqlite.o $(CC) $(CFLAGS) -o $@ opplysning-endre.c sqlite.o $(LIBS_LIBICAL) $(LIBS_SQLITE) -- cgit v1.2.3