summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-01-08 09:55:38 +0100
committerErich Eckner <git@eckner.net>2018-01-08 09:55:38 +0100
commit00fc3c1c9191292584c2c5f5d69c1b6d7ec33245 (patch)
tree7fa81ffff0e5ef5dfa29cd4d5e5d883dd392681e /Makefile
parent94b2c7e4e9ab91f3e7794fb142ff27207c3fff6c (diff)
downloadcheck-kernel-00fc3c1c9191292584c2c5f5d69c1b6d7ec33245.tar.xz
man page new
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 83a64e4..a30b8e7 100644
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,7 @@ MANDIR = /usr/share/man
VERSION = 0.0
-all: check-kernel
+all: man.commons check-kernel check-kernel.1
%: %.in
sed " \
@@ -37,10 +37,17 @@ all: check-kernel
" $< > $@
[ "$@" = "check-kernel" ] && chmod +x "$@" || true
+%.1: % man.commons
+ grep -v "^$<(" man.commons | sed '/^\[SEE ALSO]$$/{n;:a;N;/\[/b;s/\n/, /;ta;}' > "$<.common" && \
+ help2man \
+ -n 'Check if the installed kernel is currently running' \
+ -o "$@" -N --include $<.common --no-discard-stderr "./$<"
+
.PHONY: install dist clean
install: all
install -D -m0755 check-kernel $(DESTDIR)$(BINDIR)/check-kernel
+ install -D -m0644 check-kernel.1 $(DESTDIR)$(MANDIR)/man1/check-kernel.1
clean:
ls -A | \