1
0
mirror of https://github.com/janet-lang/janet synced 2025-06-07 00:54:12 +00:00

Conditionally install jpm in meson.

This commit is contained in:
Calvin Rose 2020-06-14 14:27:22 -05:00
parent 1bddb87a0c
commit be1ec1b973

View File

@ -245,9 +245,11 @@ pkg.generate(libjanet,
# Installation
install_man('janet.1')
install_man('jpm.1')
install_headers(['src/include/janet.h', jconf], subdir: 'janet')
patched_jpm = custom_target('patched-jpm',
install_data(sources : ['tools/.keep'], install_dir : join_paths(get_option('libdir'), 'janet'))
if get_option('peg') and not get_option('reduced_os') and get_option('processes')
install_man('jpm.1')
patched_jpm = custom_target('patched-jpm',
input : ['tools/patch-jpm.janet', 'jpm'],
install : true,
install_dir : get_option('bindir'),
@ -257,4 +259,4 @@ patched_jpm = custom_target('patched-jpm',
'--binpath=' + join_paths(get_option('prefix'), get_option('bindir')),
'--libpath=' + join_paths(get_option('prefix'), get_option('libdir'), 'janet'),
'--headerpath=' + join_paths(get_option('prefix'), get_option('includedir'))])
install_data(sources : ['tools/.keep'], install_dir : join_paths(get_option('libdir'), 'janet'))
endif