~sircmpwn/koio

c350561f91b9e9fe0d42d0bf0e139eb170fa95f7 — Drew DeVault 4 years ago fe222dd
Compile and install man page
1 files changed, 17 insertions(+), 0 deletions(-)

M meson.build
M meson.build => meson.build +17 -0
@@ 60,3 60,20 @@ cat = executable('cat', [
	],
	dependencies: [koio]
)

scdoc = find_program('scdoc', required: false)

if scdoc.found()
	sh = find_program('sh')
	mandir = get_option('mandir')
	custom_target(
		'koio.1',
		input: 'koio.1.scd',
		output: 'koio.1',
		command: [
			sh, '-c', '@0@ < @INPUT@ > koio.1'.format(scdoc.path())
		],
		install: true,
		install_dir: '@0@/man@1@'.format(mandir, '1')
	)
endif