aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGibheer <gibheer+git@zero-knowledge.org>2023-09-05 15:07:38 +0200
committerGibheer <gibheer+git@zero-knowledge.org>2023-09-05 15:07:38 +0200
commit26a4ca6ab56d23054f606bc378ba355cebce485a (patch)
treebc5568b6e520eb262a61374fd1da83c12baff208 /Makefile
parent8e6e01f47c320f862b9ba44815587006ba80cf77 (diff)
migrate moncheck to slog
With this moncheck itself is also changed to use slog. The early config parsing is still using log as we do not have any idea what else to use. But from then slog is used at all points. With the additional config options a man page was also added to explain the new config options.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3f43128..a9e9418 100644
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,7 @@ exec_prefix ?= ${prefix}
bindir ?= ${exec_prefix}/bin
sysconfdir ?= ${prefix}/etc/${NAME}
datarootdir ?= ${prefix}/share
+man1dir ?= ${datarootdir}/man/man1
datadir ?= ${datarootdir}/${NAME}
WRKDIR ?= build
GOBIN ?= go
@@ -51,6 +52,7 @@ preinstall:
install-moncheck: preinstall
install -m 0755 ${WRKDIR}/moncheck ${DESTDIR}${bindir}
install -m 0644 moncheck.conf.example ${DESTDIR}${sysconfdir}
+ install -m 0644 man/moncheck.1 ${DESTDIR}${man1dir}
install-monwork: preinstall
install -m 0755 ${WRKDIR}/monwork ${DESTDIR}${bindir}