- fixes cross-compilation when the target system has a different python version as the host system.

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1897 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Raphael Coeffic 16 years ago
parent 3791694fc1
commit 77c8179d2e

@ -1,8 +1,6 @@
plug_in_name = ivr
include Makefile.defs
PY_VER = $(PYTHON_VERSION)
PY_EXE = python$(PY_VER)
COREPATH ?=../../core

@ -2,6 +2,9 @@
#
PYTHON_VERSION ?= $(shell python -c 'import sys;print sys.version[0:3]')
PY_VER = $(PYTHON_VERSION)
PY_EXE = python$(PY_VER)
# For flite text-to-speech set TTS = y
#
TTS ?= n

@ -36,7 +36,7 @@ clean:
.PHONY: compile
compile:
python${PYTHON_VERSION} $(IVRPATH)/py_comp -q .
$(PY_EXE) $(IVRPATH)/py_comp -q .
.PHONY: install
install: all $(extra_install)

@ -48,7 +48,7 @@ py_obj = $(py_src:.py=.pyc)
ifeq (all,$(MAKECMDGOALS))
.PHONY: python_files
python_files:
python$(PY_VER) py_comp -l -q py &&\
$(PY_EXE) py_comp -l -q py &&\
cp py/*.pyc $(COREPATH)/lib
endif
@ -56,20 +56,20 @@ endif
ifeq (,$(MAKECMDGOALS))
.PHONY: python_files
python_files:
python$(PY_VER) py_comp -l -q py &&\
$(PY_EXE) py_comp -l -q py &&\
cp py/*.pyc $(COREPATH)/lib
endif
ifeq (module_package,$(MAKECMDGOALS))
python_files:
python$(PY_VER) py_comp -l -q py
$(PY_EXE) py_comp -l -q py
endif
ifeq (install,$(MAKECMDGOALS))
python_files:
python$(PY_VER) py_comp -l -q py
$(PY_EXE) py_comp -l -q py
endif

Loading…
Cancel
Save