mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 20:45:18 +00:00
build: Use $(PYTHON) instead of python for the keycode map generator
Also prepend $(AM_V_GEN) to the command line, mark virkeycode-mapgen.py as executable and switch the shebang line from /bin/python to the commonly use /usr/bin/python.
This commit is contained in:
parent
379efa109f
commit
1a80a4e0d4
@ -90,7 +90,7 @@ EXTRA_DIST += $(srcdir)/util/virkeymaps.h $(srcdir)/util/keymaps.csv \
|
||||
|
||||
$(srcdir)/util/virkeymaps.h: $(srcdir)/util/keymaps.csv \
|
||||
$(srcdir)/util/virkeycode-mapgen.py
|
||||
python $(srcdir)/util/virkeycode-mapgen.py <$(srcdir)/util/keymaps.csv >$@
|
||||
$(AM_V_GEN)$(PYTHON) $(srcdir)/util/virkeycode-mapgen.py <$(srcdir)/util/keymaps.csv >$@
|
||||
|
||||
$(srcdir)/util/virkeycode.c: $(srcdir)/util/virkeycode.h $(srcdir)/util/virkeymaps.h
|
||||
|
||||
|
2
src/util/virkeycode-mapgen.py
Normal file → Executable file
2
src/util/virkeycode-mapgen.py
Normal file → Executable file
@ -1,4 +1,4 @@
|
||||
#!/bin/python
|
||||
#!/usr/bin/python
|
||||
|
||||
"""
|
||||
Generate the big keycodes table for virkeys.
|
||||
|
Loading…
x
Reference in New Issue
Block a user