Shell brace expansion is non-POSIX

Preparation of base-pistachio fails on Ubuntu with dash as /bin/sh as it
does not support non-POSIX features like brace expansion. In this case
expanding in the Makefile via $(addprefix ...) fixes this shortcoming.
This commit is contained in:
Christian Helmuth 2012-10-31 23:07:58 +01:00
parent 2a03c78dfb
commit 45f007fa9f
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ $(call check_tool,autoconf)
#
# Determine python version to use for CML2
#
PYTHON2 := $(notdir $(lastword $(shell which python2 python2.{4,5,6,7,8})))
PYTHON2 := $(notdir $(lastword $(shell which python2 $(addprefix python2.,4 5 6 7 8))))
ifeq ($(PYTHON2),)
prepare: python_not_installed
python_not_installed: