aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
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