diff options
| author | 2020-06-14 14:04:23 -0500 | |
|---|---|---|
| committer | 2020-06-14 14:04:23 -0500 | |
| commit | 853b33b67caca3607d40e301a054d8bbecd26c1d (patch) | |
| tree | 7016618a95e3219b0294fa1afed47b47af6ba1ce /meson.build | |
| parent | Update for 1.10.0. (diff) | |
On nix platforms, patch jpm with path information.
This means we no longer need to guess paths after install.
Custom directory layouts can now be better supported at install
time without need for environment variables.
Diffstat (limited to 'meson.build')
| -rw-r--r-- | meson.build | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/meson.build b/meson.build index ee68cb56..7b545801 100644 --- a/meson.build +++ b/meson.build @@ -247,5 +247,14 @@ pkg.generate(libjanet, install_man('janet.1') install_man('jpm.1') install_headers(['src/include/janet.h', jconf], subdir: 'janet') -install_data(sources : ['jpm'], install_dir : get_option('bindir')) +patched_jpm = custom_target('patched-jpm', + input : ['tools/patch-jpm.janet', 'jpm'], + install : true, + install_dir : get_option('bindir'), + build_by_default : true, + output : ['jpm'], + command : [janet_nativeclient, '@INPUT@', '@OUTPUT@', + '--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')) |
