summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Stensgård <mastensg@mastensg.net>2025-07-22 23:25:46 +0200
committerMartin Stensgård <mastensg@mastensg.net>2025-07-22 23:25:46 +0200
commit3302005a360ee3b27cb4eef3c07a93e3a7c82b7e (patch)
tree0f49526b2b8cf9deeadae8393c3df028721abd27
parent48291fc94662b937594a3b7f3838b5844a186446 (diff)
Makefile: add target to enable service and timer
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
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)