From 00d7923d910bdb05cdf5c9721e06d073c9df986f Mon Sep 17 00:00:00 2001 From: Yann Leboulanger <asterix@lagaule.org> Date: Wed, 6 Apr 2005 20:30:37 +0000 Subject: [PATCH] autodetect the python version in the Makefile (thx tab) --- plugins/gtkgui/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/gtkgui/Makefile b/plugins/gtkgui/Makefile index 0646208770..24dd748bc9 100644 --- a/plugins/gtkgui/Makefile +++ b/plugins/gtkgui/Makefile @@ -1,5 +1,6 @@ # Set the C flags to include the GTK+ and Python libraries -CFLAGS = `pkg-config --cflags gtk+-2.0 pygtk-2.0` -I/usr/include/python2.4/ -I. +PYTHONVER = `python -V 2>&1 | awk '{print $2}' | cut -f1,2 -d.` +CFLAGS = `pkg-config --cflags gtk+-2.0 pygtk-2.0` -I/usr/include/python$(PYTHONVER) -I. LDFLAGS = `pkg-config --libs gtk+-2.0 pygtk-2.0` # Build the shared object -- GitLab