From 34bf7efcd2ece2b0d5f96183da4e79d4258fe559 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sun, 30 Dec 2018 14:31:36 +0100 Subject: Add smolbote.5 manpage Configuration file and Options description manpage --- doc/meson.build | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'doc/meson.build') diff --git a/doc/meson.build b/doc/meson.build index 6e51e39..d45aea1 100644 --- a/doc/meson.build +++ b/doc/meson.build @@ -11,4 +11,18 @@ if get_option('manpage').enabled() install: true, install_dir: join_paths(get_option('mandir'), 'man7') ) + custom_target('manpage.5', + # list of files this target depends on + depend_files: ['smolbote.5.asciidoc'], + + input: 'smolbote.5.asciidoc', + output: 'smolbote.5', + + command: [asciidoctor, '--backend=manpage', '--out-file=@OUTPUT@', '@INPUT@'], + + build_by_default: true, + install: true, + install_dir: get_option('mandir') / 'man5' + ) + endif -- cgit v1.2.1