diff options
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meson.build b/meson.build index ec6c73b..57be9e1 100644 --- a/meson.build +++ b/meson.build @@ -10,3 +10,14 @@ cryptodep = dependency('libcrypto') executable('pdf-simple-sign', 'pdf-simple-sign.cpp', install : true, dependencies : cryptodep) + +asciidoctor = find_program('asciidoctor') +foreach page : ['pdf-simple-sign'] + custom_target('manpage for ' + page, + input: page + '.adoc', output: page + '.1', + command: [asciidoctor, '-b', 'manpage', + '-a', 'release-version=' + meson.project_version(), + '@INPUT@', '-o', '@OUTPUT@'], + install: true, + install_dir: join_paths(get_option('mandir'), 'man1')) +endforeach |