meson.build (1144B)
1 # This file is in the public domain 2 3 install_man([ 4 'prebuilt'/'man'/'challenger-admin.1', 5 'prebuilt'/'man'/'challenger-config.1', 6 'prebuilt'/'man'/'challenger-dbconfig.1', 7 'prebuilt'/'man'/'challenger-dbinit.1', 8 'prebuilt'/'man'/'challenger-httpd.1', 9 'prebuilt'/'man'/'challenger.conf.5', 10 ],) 11 12 fs = import('fs') 13 14 fs.copyfile( 15 'prebuilt' / 'texinfo' / 'challenger.texi', 16 'challenger.texi', 17 ) 18 19 makeinfo = find_program('makeinfo', native: true, required: false) 20 21 if makeinfo.found() 22 23 f_info = '@0@.info'.format('challenger') 24 f_texi = meson.current_build_dir() / '@0@.texi'.format('challenger') 25 26 custom_target( 27 f_info, 28 output: f_info, 29 command: [ 30 makeinfo, 31 '--no-split', 32 '--no-headers', 33 f_texi, 34 '-o', 35 '@OUTPUT0@', 36 ], 37 install: true, 38 install_dir: get_option('infodir'), 39 ) 40 41 endif 42 43 44 install_emptydir(get_option('infodir') / 'challenger-figures') 45 install_data( 46 'prebuilt' / 'texinfo' / 'challenger-figures' / 'challenger.png', 47 install_dir: get_option('infodir') / 'challenger-figures', 48 )