Make it simple and hard-code that we are carrying only man8 pages so
far.

Signed-off-by: Jan Kiszka <[email protected]>
---
 scripts/include.mk | 2 ++
 tools/Makefile     | 8 +++++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/scripts/include.mk b/scripts/include.mk
index 50785e09c..b2c70e7ac 100644
--- a/scripts/include.mk
+++ b/scripts/include.mk
@@ -25,6 +25,7 @@ sbindir               ?= $(exec_prefix)/sbin
 libexecdir     ?= $(exec_prefix)/libexec
 datarootdir    ?= $(prefix)/share
 datadir                ?= $(datarootdir)
+man8dir                ?= $(datarootdir)/man/man8
 completionsdir ?= /usr/share/bash-completion/completions
 firmwaredir ?= /lib/firmware
 
@@ -32,6 +33,7 @@ firmwaredir ?= /lib/firmware
 INSTALL_DIRECTORIES := $(sbindir)              \
                       $(libexecdir)            \
                       $(datadir)               \
+                      $(man8dir)               \
                       $(completionsdir)        \
                       $(firmwaredir)
 
diff --git a/tools/Makefile b/tools/Makefile
index c94c7981e..df739cdd9 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -37,6 +37,8 @@ HELPERS := \
        jailhouse-hardware-check
 TEMPLATES := jailhouse-config-collect.tmpl root-cell-config.c.tmpl
 
+MAN8_PAGES := jailhouse.8 jailhouse-cell.8 jailhouse-enable.8
+
 always := $(BINARIES)
 
 HAS_PYTHON_MAKO := \
@@ -93,7 +95,11 @@ install-data: $(TEMPLATES) $(DESTDIR)$(datadir)/jailhouse
 install-completion: jailhouse-completion.bash $(DESTDIR)$(completionsdir)
        $(INSTALL_DATA) $< $(DESTDIR)$(completionsdir)/jailhouse
 
-install: install-bin install-libexec install-data install-completion
+install-man8: $(MAN8_PAGES) $(DESTDIR)$(man8dir)
+       $(INSTALL_DATA) $^
+
+install: install-bin install-libexec install-data install-completion \
+        install-man8
 
 $(obj)/no_python_mako:
        @echo -ne "WARNING: Could not create the helper script to generate" \
-- 
2.13.6

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to