meson.build (485B)
1 scdoc_dep = dependency('scdoc', version: '>=1.9.2', native: true, required: false) 2 3 if scdoc_dep.found() 4 scdoc = find_program( 5 scdoc_dep.get_pkgconfig_variable('scdoc'), 6 native: true, 7 ) 8 mandir = get_option('mandir') 9 10 docs = [ 11 'wmenu.1', 12 ] 13 14 foreach path : docs 15 custom_target( 16 path, 17 output: path, 18 input: '@0@.scd'.format(path), 19 capture: true, 20 feed: true, 21 command: [scdoc], 22 install: true, 23 install_dir: '@0@/man1'.format(mandir) 24 ) 25 endforeach 26 endif