summaryrefslogtreecommitdiff
path: root/python/Makefile.am
blob: 2f2f5143313a104bb5c280d7cff75c5b6f700201 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
EXTRA_DIST = vte.defs vte.override

PYTHON_MODULES = vtemodule.la

if BUILD_PYTHON_MODULES
pythonsiteexecdir = $(pyexecdir)
pythonsiteexec_LTLIBRARIES = $(PYTHON_MODULES)

CLEANFILES = vte.c

vtemodule_la_CFLAGS = @VTE_CFLAGS@ @X_CFLAGS@ @PYTHON_INCLUDES@ @PYGTK_CFLAGS@
vtemodule_la_SOURCES = vtemodule.c vte.c
vtemodule_la_LIBADD = $(top_builddir)/src/libvte.la @LIBS@ @PYGTK_LIBS@ @VTE_LIBS@ @X_LIBS@
vtemodule_la_LDFLAGS = -module -avoid-version -export-symbols-regex initvte

vte.c: vte.defs vte.override
	pygtk-codegen-2.0 -p py$(PACKAGE) -o vte.override --register @PYGTK_DATADIR@/pygtk/2.0/defs/gtk-types.defs --register @PYGTK_DATADIR@/pygtk/2.0/defs/gdk-types.defs --register @PYGTK_DATADIR@/pygtk/2.0/defs/pango-types.defs $< > $@

endif