summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2021-03-22 14:45:47 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2021-03-24 07:19:06 +1000
commit06be3e84bd1bf7016a85d4aff5d7851b17d1b16d (patch)
tree83442a82338799cee6fc2021dc9fe05bbd45f93d
parentf38bc689e3045787c02dd1ad97fa5e7d6e1255bd (diff)
downloadlibwacom-06be3e84bd1bf7016a85d4aff5d7851b17d1b16d.tar.gz
meson/autotools: run the hwdb-generator explicitly through python
This punts the responsibility of finding where python is to the build system instead of the shebang in the script itself. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--meson.build2
-rw-r--r--tools/Makefile.am2
2 files changed, 2 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index a0efc98..dfc099d 100644
--- a/meson.build
+++ b/meson.build
@@ -141,7 +141,7 @@ tools_cflags = ['-DDATABASEPATH="@0@"'.format(dir_src_data)]
hwdb_generator = find_program('tools/generate-hwdb.py')
custom_target('hwdb',
- command: [hwdb_generator,
+ command: [python, hwdb_generator,
'--include-wireless-accessory-kit',
dir_src_data],
capture: true,
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 280ccdd..d08ec97 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -32,7 +32,7 @@ udev_hwdbdir=$(UDEV_DIR)/hwdb.d
dist_udev_hwdb_DATA = $(hwdb)
$(hwdb): $(srcdir)/generate-hwdb.py
- $(srcdir)/generate-hwdb.py --include-wireless-accessory-kit $(abs_top_srcdir)/data > $@
+ $(PYTHON) $(srcdir)/generate-hwdb.py --include-wireless-accessory-kit $(abs_top_srcdir)/data > $@
bin_SCRIPTS = libwacom-show-stylus
libwacom-show-stylus: show-stylus.py