aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-10-24 13:09:45 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-10-24 13:09:45 +0200
commitb2fec872deea1e4e08f02ac74df383da3cb6665a (patch)
treedd1f2c26fde464e579094f16eae9e6422e176fba /doc
parentAdd plugins to meson build (diff)
downloadsmolbote-b2fec872deea1e4e08f02ac74df383da3cb6665a.tar.xz
Add missing install items
Diffstat (limited to 'doc')
-rw-r--r--doc/meson.build12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/meson.build b/doc/meson.build
new file mode 100644
index 0000000..0e1b49d
--- /dev/null
+++ b/doc/meson.build
@@ -0,0 +1,12 @@
+if get_option('manpage').enabled()
+ asciidoctor = find_program('asciidoctor', required: true)
+
+ custom_target('manpage',
+ input: 'smolbote.7.asciidoc',
+ output: 'smolbote.7',
+ command: [asciidoctor, '--backend=manpage', '--out-file=@OUTPUT@', '@INPUT@'],
+ build_by_default: true,
+ install: true, install_dir: join_paths(get_option('mandir'), 'man7')
+ )
+
+endif