1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-27 00:40:26 +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,8 +245,10 @@ pkg.generate(libjanet,
# Installation # Installation
install_man('janet.1') install_man('janet.1')
install_man('jpm.1')
install_headers(['src/include/janet.h', jconf], subdir: 'janet') install_headers(['src/include/janet.h', jconf], subdir: 'janet')
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', patched_jpm = custom_target('patched-jpm',
input : ['tools/patch-jpm.janet', 'jpm'], input : ['tools/patch-jpm.janet', 'jpm'],
install : true, install : true,
@ -257,4 +259,4 @@ patched_jpm = custom_target('patched-jpm',
'--binpath=' + join_paths(get_option('prefix'), get_option('bindir')), '--binpath=' + join_paths(get_option('prefix'), get_option('bindir')),
'--libpath=' + join_paths(get_option('prefix'), get_option('libdir'), 'janet'), '--libpath=' + join_paths(get_option('prefix'), get_option('libdir'), 'janet'),
'--headerpath=' + join_paths(get_option('prefix'), get_option('includedir'))]) '--headerpath=' + join_paths(get_option('prefix'), get_option('includedir'))])
install_data(sources : ['tools/.keep'], install_dir : join_paths(get_option('libdir'), 'janet')) endif