Subject: Install program and manpage as check_tang Author: Christoph Biedl Date: 2020-12-28 Bug: https://github.com/latchset/nagios-tang/issues/2 --- a/meson.build +++ b/meson.build @@ -63,18 +63,18 @@ asciidoctor = find_program('asciidoctor', required: false) if asciidoctor.found() - custom_target('nagios-tang.1', - command: [asciidoctor, '--attribute', 'reproducible', '--backend=manpage', '-D', meson.current_build_dir(), '@INPUT@'], + custom_target('check_tang.1', + command: [asciidoctor, '--attribute', 'reproducible', '--backend=manpage', '-D', meson.current_build_dir(), '@INPUT@', '-o', '@OUTPUT@' ], install_dir: join_paths(get_option('mandir'), 'man1'), input: 'nagios-tang.1.adoc', - output: 'nagios-tang.1', + output: 'check_tang.1', install: true, ) else warning('Will not install man page due to missing dependencies!') endif -executable('tang', 'tang.c', +executable('check_tang', 'tang.c', install_dir: join_paths(get_option('libdir'), 'nagios', 'plugins'), dependencies: [http, jose], install: true, --- a/tang +++ b/tang @@ -40,4 +40,4 @@ export PID=$! sleep 0.5 -tang -u http://127.0.0.1:$port +check_tang -u http://127.0.0.1:$port