aboutsummaryrefslogtreecommitdiffstats
path: root/com32/cmenu/Makefile
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2012-11-12 15:38:33 +0000
committerMatt Fleming <matt.fleming@intel.com>2012-11-12 15:38:33 +0000
commit4dec62ce9c2c0d170f21b3ae2d7c618eb7a30c05 (patch)
treea8d48692f2529f879005bc28e7898524b8b412af /com32/cmenu/Makefile
parent6387f043f7f870e4f0b402dae0b921d99eb82c39 (diff)
downloadsyslinux-4dec62ce9c2c0d170f21b3ae2d7c618eb7a30c05.tar.gz
syslinux-4dec62ce9c2c0d170f21b3ae2d7c618eb7a30c05.tar.xz
syslinux-4dec62ce9c2c0d170f21b3ae2d7c618eb7a30c05.zip
mk: Add Makefile variable for python
Instead of hard-coding the python executable name use a make variable like we do for all other executables used during the build. This has the added bonus of allowing $(PYTHON) to be overridden on the command line, e.g. make PYTHON=python2 which is particularly useful for distributions where /usr/bin/python is actually python3. Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'com32/cmenu/Makefile')
-rw-r--r--com32/cmenu/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/cmenu/Makefile b/com32/cmenu/Makefile
index beb8dd28..181937bd 100644
--- a/com32/cmenu/Makefile
+++ b/com32/cmenu/Makefile
@@ -40,7 +40,7 @@ MENUS = $(LIBS) $(CMENUS) $(IMENUS)
.PRECIOUS: %.c
%.c: %.menu adv_menu.tpl
- python menugen.py --input=$< --output=$@ --template=adv_menu.tpl
+ $(PYTHON) menugen.py --input=$< --output=$@ --template=adv_menu.tpl
all: menus