From 1a80a4e0d4f72f2827f45a67970f35a96af6e0f1 Mon Sep 17 00:00:00 2001 From: Matthias Bolte Date: Fri, 22 Jul 2011 16:16:33 +0200 Subject: [PATCH] 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. --- src/Makefile.am | 2 +- src/util/virkeycode-mapgen.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 src/util/virkeycode-mapgen.py diff --git a/src/Makefile.am b/src/Makefile.am index 481caba356..eef06696ff 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -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 diff --git a/src/util/virkeycode-mapgen.py b/src/util/virkeycode-mapgen.py old mode 100644 new mode 100755 index f0a4290704..acf7364215 --- a/src/util/virkeycode-mapgen.py +++ b/src/util/virkeycode-mapgen.py @@ -1,4 +1,4 @@ -#!/bin/python +#!/usr/bin/python """ Generate the big keycodes table for virkeys. -- GitLab