diff options
author | Martin Stensgård <mastensg@mastensg.net> | 2025-07-22 23:25:46 +0200 |
---|---|---|
committer | Martin Stensgård <mastensg@mastensg.net> | 2025-07-22 23:25:46 +0200 |
commit | 3302005a360ee3b27cb4eef3c07a93e3a7c82b7e (patch) | |
tree | 0f49526b2b8cf9deeadae8393c3df028721abd27 | |
parent | 48291fc94662b937594a3b7f3838b5844a186446 (diff) |
Makefile: add target to enable service and timer
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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) |