@@ -245,16 +245,18 @@ pkg.generate(libjanet,
245
245
246
246
# Installation
247
247
install_man (' janet.1' )
248
- install_man (' jpm.1' )
249
248
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' ))])
260
249
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