diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2020-09-05 20:03:10 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2020-09-05 20:10:47 +0200 |
commit | a75f9905655939eca7d6c276b6c684d8d792c0cd (patch) | |
tree | 52dac13831a8fe4c643f7d83c99775bdc1dc3b3a /meson.build | |
parent | 46fa50749f79e624a16adb081f7e5c5ff4a5b717 (diff) | |
download | pdf-simple-sign-a75f9905655939eca7d6c276b6c684d8d792c0cd.tar.gz pdf-simple-sign-a75f9905655939eca7d6c276b6c684d8d792c0cd.tar.xz pdf-simple-sign-a75f9905655939eca7d6c276b6c684d8d792c0cd.zip |
Add an instructive man page
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 |