mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 08:00:08 +01:00
meson: Fix bindir usage in install script
Since the install script cannot know the correct bindir, just pass it from Meson directly. Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
582e3c00b7
commit
0843fa8e5e
2 changed files with 6 additions and 7 deletions
|
|
@ -496,7 +496,8 @@ configure_file(input : 'tools/libinput.man',
|
||||||
install_dir : join_paths(get_option('mandir'), 'man1')
|
install_dir : join_paths(get_option('mandir'), 'man1')
|
||||||
)
|
)
|
||||||
|
|
||||||
meson.add_install_script('tools/install-compat-scripts.sh')
|
meson.add_install_script('tools/install-compat-scripts.sh',
|
||||||
|
join_paths(get_option('prefix'), get_option('bindir')))
|
||||||
|
|
||||||
ptraccel_debug_sources = [ 'tools/ptraccel-debug.c' ]
|
ptraccel_debug_sources = [ 'tools/ptraccel-debug.c' ]
|
||||||
executable('ptraccel-debug',
|
executable('ptraccel-debug',
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
|
||||||
# This does not honor $bindir properly, because we cannot get to it
|
bindir="${DESTDIR}${1}"
|
||||||
# here. Does anyone build to something but prefix/bin?
|
|
||||||
#
|
# Do not create bindir, because if it is not there now, we have a problem
|
||||||
bindir="${DESTDIR}/${MESON_INSTALL_PREFIX}/bin"
|
|
||||||
mkdir -p "$bindir"
|
|
||||||
cp "${MESON_SOURCE_ROOT}/tools/libinput-list-devices.compat" "${bindir}/libinput-list-devices"
|
cp "${MESON_SOURCE_ROOT}/tools/libinput-list-devices.compat" "${bindir}/libinput-list-devices"
|
||||||
cp "${MESON_SOURCE_ROOT}/tools/libinput-debug-events.compat" "${bindir}/libinput-debug-events"
|
cp "${MESON_SOURCE_ROOT}/tools/libinput-debug-events.compat" "${bindir}/libinput-debug-events"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue