fix Makefile
This commit is contained in:
parent
f45bf01d2c
commit
5ca91b93be
19
Makefile
19
Makefile
@ -12,16 +12,23 @@ DATADIR ?= $(PREFIX)/share
|
|||||||
DOCDIR ?= $(DATADIR)/doc/nohang
|
DOCDIR ?= $(DATADIR)/doc/nohang
|
||||||
MANDIR ?= $(DATADIR)/man
|
MANDIR ?= $(DATADIR)/man
|
||||||
|
|
||||||
|
PANDOC := $(shell command -v pandoc 2> /dev/null)
|
||||||
|
|
||||||
all:
|
all:
|
||||||
@ echo "Use: make install, make install-openrc, make uninstall"
|
@ echo "Use: make install, make install-openrc, make uninstall"
|
||||||
|
|
||||||
manpages:
|
update-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
|
ifdef PANDOC
|
||||||
|
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
|
||||||
|
else
|
||||||
|
@echo "pandoc is not installed, skipping manpages generation"
|
||||||
|
endif
|
||||||
|
|
||||||
|
base:
|
||||||
install -d $(DESTDIR)$(SBINDIR)
|
install -d $(DESTDIR)$(SBINDIR)
|
||||||
install -m0755 src/nohang $(DESTDIR)$(SBINDIR)/nohang
|
install -m0755 src/nohang $(DESTDIR)$(SBINDIR)/nohang
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user