EXTRA_DIST = vte.defs pyvte.pc.in vte.override cat.py unrealize.py vte-demo.py defsdir = $(datadir)/pygtk/2.0/defs defs_DATA = vte.defs pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = pyvte.pc PYTHON_MODULES = vtemodule.la if BUILD_PYTHON_MODULES pythonsiteexecdir = $(pyexecdir)/gtk-2.0 pythonsiteexec_LTLIBRARIES = $(PYTHON_MODULES) CLEANFILES = vte.c vtemodule_la_SOURCES = vtemodule.c vtemodule_la_CPPFLAGS = -I$(top_builddir)/src $(AM_CPPFLAGS) vtemodule_la_CFLAGS = $(VTE_CFLAGS) $(X_CFLAGS) $(PYTHON_INCLUDES) $(PYGTK_CFLAGS) $(AM_CFLAGS) # we do this to suport building with -Wl,-z,defs which errors on # vtemodule.so as we cannot include $(PYTHON_LIBS) due to bug 410986. vtemodule_la_LDFLAGS = -module -avoid-version -export-symbols-regex initvte $(PYTHON_LDFLAGS) $(AM_LDFLAGS) vtemodule_la_LIBADD = $(top_builddir)/src/libvte.la $(LIBS) $(PYGTK_LIBS) $(VTE_LIBS) $(X_LIBS) nodist_vtemodule_la_SOURCES = vte.c vte.c: vte.defs vte.override .defs.c: $(AM_V_GEN) (cd $(srcdir) \ && $(PYGTK_CODEGEN) \ --register $(PYGTK_DEFSDIR)/pango-types.defs \ --register $(PYGTK_DEFSDIR)/gdk-types.defs \ --register $(PYGTK_DEFSDIR)/gtk-types.defs \ --override $*.override \ --prefix py$* $*.defs) > gen-$*.c \ && cp gen-$*.c $*.c \ && rm -f gen-$*.c endif -include $(top_srcdir)/git.mk