From 032786bf47dc247caa9fb304fbc5bb72b687bce7 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 6 May 2006 16:27:45 +0000 Subject: [PATCH] build idle with corre3ct python version --- src/Makefile | 2 +- src/common/Makefile | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Makefile b/src/Makefile index c07daba95..664b8241b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,5 +1,5 @@ # Set the C flags to include the GTK+ and Python libraries -PYTHON = python +PYTHON ?= python PYTHONVER = `$(PYTHON) -c 'import sys; print sys.version[:3]'` CFLAGS = `pkg-config --cflags gtk+-2.0 pygtk-2.0` -fPIC -I/usr/include/python$(PYTHONVER) -I. LDFLAGS = `pkg-config --libs gtk+-2.0 pygtk-2.0` -lpython$(PYTHONVER) diff --git a/src/common/Makefile b/src/common/Makefile index df4b61d77..aa7ec66f7 100644 --- a/src/common/Makefile +++ b/src/common/Makefile @@ -1,5 +1,6 @@ # Set the C flags to include the GTK+ and Python libraries -PYTHONVER = `python -c 'import sys; print sys.version[:3]'` +PYTHON ?= python +PYTHONVER = `$(PYTHON) -c 'import sys; print sys.version[:3]'` HAVE_XSCRNSAVER = $(shell pkg-config --exists xscrnsaver && echo 'YES')