autodetect the python version in the Makefile (thx tab)

This commit is contained in:
Yann Leboulanger 2005-04-06 20:30:37 +00:00
parent 5f5b647717
commit 00d7923d91
1 changed files with 2 additions and 1 deletions

View File

@ -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