diff options
author | Matt Fleming <matt.fleming@intel.com> | 2012-11-12 15:38:33 +0000 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2012-11-12 15:38:33 +0000 |
commit | 4dec62ce9c2c0d170f21b3ae2d7c618eb7a30c05 (patch) | |
tree | a8d48692f2529f879005bc28e7898524b8b412af | |
parent | 6387f043f7f870e4f0b402dae0b921d99eb82c39 (diff) | |
download | syslinux-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>
-rw-r--r-- | com32/cmenu/Makefile | 2 | ||||
-rw-r--r-- | mk/syslinux.mk | 1 |
2 files changed, 2 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 diff --git a/mk/syslinux.mk b/mk/syslinux.mk index 4cf34e36..1378b6d5 100644 --- a/mk/syslinux.mk +++ b/mk/syslinux.mk @@ -36,6 +36,7 @@ NASM = nasm NASMOPT = -Ox PERL = perl +PYTHON = python UPX = upx CHMOD = chmod |