Skip to content

Commit be1ec1b

Browse files
committed
Conditionally install jpm in meson.
1 parent 1bddb87 commit be1ec1b

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

meson.build

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -245,16 +245,18 @@ pkg.generate(libjanet,
245245

246246
# Installation
247247
install_man('janet.1')
248-
install_man('jpm.1')
249248
install_headers(['src/include/janet.h', jconf], subdir: 'janet')
250-
patched_jpm = custom_target('patched-jpm',
251-
input : ['tools/patch-jpm.janet', 'jpm'],
252-
install : true,
253-
install_dir : get_option('bindir'),
254-
build_by_default : true,
255-
output : ['jpm'],
256-
command : [janet_nativeclient, '@INPUT@', '@OUTPUT@',
257-
'--binpath=' + join_paths(get_option('prefix'), get_option('bindir')),
258-
'--libpath=' + join_paths(get_option('prefix'), get_option('libdir'), 'janet'),
259-
'--headerpath=' + join_paths(get_option('prefix'), get_option('includedir'))])
260249
install_data(sources : ['tools/.keep'], install_dir : join_paths(get_option('libdir'), 'janet'))
250+
if get_option('peg') and not get_option('reduced_os') and get_option('processes')
251+
install_man('jpm.1')
252+
patched_jpm = custom_target('patched-jpm',
253+
input : ['tools/patch-jpm.janet', 'jpm'],
254+
install : true,
255+
install_dir : get_option('bindir'),
256+
build_by_default : true,
257+
output : ['jpm'],
258+
command : [janet_nativeclient, '@INPUT@', '@OUTPUT@',
259+
'--binpath=' + join_paths(get_option('prefix'), get_option('bindir')),
260+
'--libpath=' + join_paths(get_option('prefix'), get_option('libdir'), 'janet'),
261+
'--headerpath=' + join_paths(get_option('prefix'), get_option('includedir'))])
262+
endif

0 commit comments

Comments
 (0)