~ni/libnxt

ref: 0.4.2 libnxt/doc/meson.build -rw-r--r-- 682 bytes
bbf8634cNicolas Schodet Update version to 0.4.2 1 year, 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
scdoc = find_program('scdoc', required : get_option('build_doc'))
if scdoc.found()
  # Need to feed the input on standard input, so use the shell.
  sh = find_program('sh')
  custom_target(
    'fwflash.1',
    output : 'fwflash.1',
    input : 'fwflash.1.scd',
    command : [sh, '-c', scdoc.full_path() + ' < @INPUT@'],
    capture : true,
    install : true,
    install_dir : join_paths(get_option('mandir'), 'man1'),
  )
  custom_target(
    'fwexec.1',
    output : 'fwexec.1',
    input : 'fwexec.1.scd',
    command : [sh, '-c', scdoc.full_path() + ' < @INPUT@'],
    capture : true,
    install : true,
    install_dir : join_paths(get_option('mandir'), 'man1'),
  )
endif