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 committed 2011-07-22 16:16:33 +02:00
1 parent 379efa109f
commit 1a80a4e0d4
2 files changed
+2 -2

No files matched your search

+1 -1
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
Regular → Executable
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/python
#!/usr/bin/python
"""
Generate the big keycodes table for virkeys.