Generate man pages using pandoc

Add nohang.manpage.md
Update Makefile: add reinstall-deb target
This commit is contained in:
Alexey Avramov
2020-05-24 23:09:41 +09:00
parent dafbab6d93
commit e1bfb84dd1
9 changed files with 247 additions and 109 deletions

View File

@@ -15,7 +15,13 @@ MANDIR ?= $(DATADIR)/man
all:
@ echo "Use: make install, make install-openrc, make uninstall"
base:
manpages:
-pandoc docs/nohang.manpage.md -s -t man > man/nohang.8
-pandoc docs/oom-sort.manpage.md -s -t man > man/oom-sort.1
-pandoc docs/psi2log.manpage.md -s -t man > man/psi2log.1
-pandoc docs/psi-top.manpage.md -s -t man > man/psi-top.1
base: manpages
install -d $(DESTDIR)$(SBINDIR)
install -m0755 src/nohang $(DESTDIR)$(SBINDIR)/nohang
@@ -86,6 +92,11 @@ daemon-reload:
build_deb: base units
reinstall-deb:
set -v
deb/build.sh
sudo apt install --reinstall ./deb/package.deb
install: base units chcon daemon-reload
openrc: