]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
build: Use $(PYTHON) instead of python for the keycode map generator
authorMatthias Bolte <matthias.bolte@googlemail.com>
Fri, 22 Jul 2011 14:16:33 +0000 (16:16 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Fri, 22 Jul 2011 14:16:33 +0000 (16:16 +0200)
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.

src/Makefile.am
src/util/virkeycode-mapgen.py [changed mode: 0644->0755]

index 481caba356298fe4e2c4deae1eb7ed7903d4ec8c..eef06696ffe6d1f150fa8fd01c35f26480fa429b 100644 (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
 
old mode 100644 (file)
new mode 100755 (executable)
index f0a4290..acf7364
@@ -1,4 +1,4 @@
-#!/bin/python
+#!/usr/bin/python
 
 """
 Generate the big keycodes table for virkeys.