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:
Matthias Bolte 2011-07-22 16:16:33 +02:00
parent 379efa109f
commit 1a80a4e0d4
2 changed files with 2 additions and 2 deletions

View File

@ -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
View File

@ -1,4 +1,4 @@
#!/bin/python
#!/usr/bin/python
"""
Generate the big keycodes table for virkeys.