summaryrefslogtreecommitdiff
path: root/contrib/python/Makefile.am
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@openedhand.com>2008-03-05 09:52:10 +0000
committerEmmanuele Bassi <ebassi@openedhand.com>2008-03-05 09:52:10 +0000
commit0353f99f9b26aeedd0f23eebf75ddab84794c4a2 (patch)
treed15c36844a259e2ab8f6ed6bbdfb5189113aaf96 /contrib/python/Makefile.am
parent1b6134e4e8eddcb249a7469bd199c7a15b2ed00f (diff)
downloadjson-glib-python-bindings.tar.gz
Fix compilation issues of the JSON-GLib Python bindingspython-bindings
Apparently, if you have a dash in the module name defs files the Python code generation script goes bang and produces invalid C files.
Diffstat (limited to 'contrib/python/Makefile.am')
-rw-r--r--contrib/python/Makefile.am23
1 files changed, 12 insertions, 11 deletions
diff --git a/contrib/python/Makefile.am b/contrib/python/Makefile.am
index 30fb7fd..37f3eba 100644
--- a/contrib/python/Makefile.am
+++ b/contrib/python/Makefile.am
@@ -1,26 +1,27 @@
-INCLUDES = $(PYTHON_INCLUDES) $(PYBEAGLE_CFLAGS) -I$(top_srcdir)
+INCLUDES = $(PYTHON_INCLUDES) $(PYJSON_CFLAGS) -I$(top_srcdir)
-libjson_glib_1_0_ladir = $(pyexecdir)
-libjson_glib_1_0_la_LTLIBRARIES = libjson-glib-1.0.la
-libjson_glib_1_0_la_LDFLAGS = -module -avoid-version -export-symbols-regex initjsonglib
-libjson_glib_1_0_la_LIBADD = \
+libjson_glib_ladir = $(pyexecdir)
+libjson_glib_la_LTLIBRARIES = libjson-glib.la
+libjson_glib_la_LDFLAGS = -module -avoid-version -export-symbols-regex initjsonglib
+libjson_glib_la_LIBADD = \
$(PYJSON_LIBS) \
$(JSON_LIBS) \
../../json-glib/libjson-glib-1.0.la
-libjson_glib_1_0_la_SOURCES = json-glib-module.c
-nodist_libjson_glib_1_0_la_SOURCES = json-glib.c
+libjson_glib_la_SOURCES = jsonglib-module.c
+nodist_libjson_glib_la_SOURCES = jsonglib.c
-CLEANFILES = json-glib.c
+CLEANFILES = jsonglib.c
EXTRA_DIST = \
- json-glib.defs \
- json-glib.override \
+ jsonglib.defs \
+ jsonglib.override \
gen-defs.sh
-json-glib.c: json-glib.defs
+jsonglib.c: jsonglib.defs
.defs.c:
(cd $(srcdir) \
&& $(PYGTK_CODEGEN) \
+ --py_ssize_t-clean \
--override $*.override \
--register $(PYGTK_DEFSDIR)/gtk-types.defs \
--register $(PYGTK_DEFSDIR)/gdk-types.defs \