summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2005-08-06 18:30:02 +0000
committerBastien Nocera <hadess@src.gnome.org>2005-08-06 18:30:02 +0000
commit4d4456cc9f4e7f01c73d87e1c7e4d6f5a258a768 (patch)
tree0a2e2c35488f3d29cd3a45cddfe9449dd06cf909
parentb465a407859b1908948c0db282a7779e663b3435 (diff)
downloadgnome-bluetooth-4d4456cc9f4e7f01c73d87e1c7e4d6f5a258a768.tar.gz
Fix hard-coded h2def path in the Makefiles (Closes: #153429)
2005-08-06 Bastien Nocera <hadess@hadess.net> * configure.in: * src/Makefile.am: Fix hard-coded h2def path in the Makefiles (Closes: #153429)
-rw-r--r--ChangeLog6
-rw-r--r--configure.in2
-rw-r--r--src/Makefile.am4
3 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index e9fb00cd..c5942dc3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-08-06 Bastien Nocera <hadess@hadess.net>
+
+ * configure.in:
+ * src/Makefile.am: Fix hard-coded h2def path in the Makefiles
+ (Closes: #153429)
+
2005-08-01 Bastien Nocera <hadess@hadess.net>
* configure.in:
diff --git a/configure.in b/configure.in
index fa655e53..794c00ec 100644
--- a/configure.in
+++ b/configure.in
@@ -49,6 +49,8 @@ AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
DEFSDIR=`pkg-config --variable=defsdir pygtk-2.0`
AC_SUBST(DEFSDIR)
+CODEGENDIR=`pkg-config --variable codegendir pygtk-2.0`
+AC_SUBST(CODEGENDIR)
BLUEZ_PATH_BLUETOOTH([], AC_MSG_ERROR([libbluetooth is required to build this software - part of bluez-libs]))
diff --git a/src/Makefile.am b/src/Makefile.am
index e9ecdcb0..0a75bc46 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -102,10 +102,10 @@ CLEANFILES = $(PYTHON_CLEANFILES)
regenerate-defs: gnomebt-controller.defs gnomebt-chooser.defs
gnomebt-controller.defs: gnomebt-controller.h
- python /usr/share/pygtk/2.0/codegen/h2def.py -v gnomebt-controller.h > gnomebt-controller.defs
+ python $(CODEGENDIR)/h2def.py -v gnomebt-controller.h > gnomebt-controller.defs
gnomebt-chooser.defs: gnomebt-chooser.h
- python /usr/share/pygtk/2.0/codegen/h2def.py -v gnomebt-chooser.h > gnomebt-chooser.defs
+ python $(CODEGENDIR)/h2def.py -v gnomebt-chooser.h > gnomebt-chooser.defs
gnomebt-controller-py.c: gnomebt-controller.defs gnomebt-controller.override
pygtk-codegen-2.0 --prefix controller \