xed/plugin-loaders/python/bindings/Makefile.am

116 lines
3.2 KiB
Makefile
Raw Normal View History

2011-11-07 13:46:58 -06:00
## Process this file with automake to produce Makefile.in
noinst_LTLIBRARIES = \
2016-01-25 08:13:49 -06:00
xedit.la
2011-11-07 13:46:58 -06:00
2016-01-25 08:13:49 -06:00
nodist_xedit_la_SOURCES = \
xedit.c \
xeditutils.c \
xeditcommands.c
2011-11-07 13:46:58 -06:00
2016-01-25 08:13:49 -06:00
xedit_la_LDFLAGS = \
2011-11-07 13:46:58 -06:00
-module -avoid-version
2016-01-25 08:13:49 -06:00
xedit_la_LIBADD = \
2011-11-07 13:46:58 -06:00
$(PYTHON_LIB_LOC) \
$(PYTHON_LIBS) \
$(PYTHON_EXTRA_LIBS) \
$(PYGTK_LIBS)
2016-01-25 08:13:49 -06:00
xedit_la_CFLAGS = \
2011-11-07 13:46:58 -06:00
-I$(top_srcdir) \
-I$(top_builddir) \
2016-01-25 08:13:49 -06:00
-I$(top_srcdir)/xedit \
-I$(top_builddir)/xedit \
2011-11-07 13:46:58 -06:00
-I$(top_srcdir)/plugin-loaders/python \
-I$(top_builddir)/plugin-loaders/python \
2016-01-25 08:13:49 -06:00
$(XEDIT_CFLAGS) \
2011-11-07 13:46:58 -06:00
$(NO_STRICT_ALIASING_CFLAGS) \
$(PYGTK_CFLAGS) \
$(PYTHON_CFLAGS) \
$(AM_CFLAGS)
2016-01-25 08:13:49 -06:00
$(top_builddir)/xedit/xedit-enum-types.h:
cd $(top_builddir)/xedit && $(MAKE) xedit-enum-types.h
2011-11-07 13:46:58 -06:00
2016-01-25 08:13:49 -06:00
xedit.c: xedit.defs xedit.override xeditplugin.override xeditmessage.override $(top_builddir)/xedit/xedit-enum-types.h
2011-11-07 13:46:58 -06:00
( cd $(srcdir) && $(PYGTK_CODEGEN) \
--register $(PYGTK_DEFSDIR)/pango-types.defs \
--register $(PYGTK_DEFSDIR)/gdk-types.defs \
--register $(PYGTK_DEFSDIR)/gtk-types.defs \
--register $(PYGTK_DEFSDIR)/gtksourceview2.defs \
--register $(PYGOBJECT_DEFSDIR)/gio-types.defs \
--override $*.override \
--prefix py$* $(<F) ) > $@
2016-01-25 08:13:49 -06:00
xeditutils.c: xeditutils.defs xeditutils.override
2011-11-07 13:46:58 -06:00
( cd $(srcdir) && $(PYGTK_CODEGEN) \
--override $*.override \
--prefix py$* $(<F) ) > $@
2016-01-25 08:13:49 -06:00
xeditcommands.c: xeditcommands.defs xeditcommands.override xedit.defs
2011-11-07 13:46:58 -06:00
( cd $(srcdir) && $(PYGTK_CODEGEN) \
2016-01-25 08:13:49 -06:00
--register xedit.defs \
2011-11-07 13:46:58 -06:00
--register $(PYGTK_DEFSDIR)/gtk-types.defs \
--override $*.override \
--prefix py$* $(<F) ) > $@
2016-01-25 08:13:49 -06:00
BINDING_XEDIT_HEADERS_SRCDIR_IN = \
xedit/xedit-app.h \
xedit/xedit-document.h \
xedit/xedit-encodings.h \
xedit/xedit-plugin.h \
plugin-loaders/python/xedit-plugin-python.h \
xedit/xedit-view.h \
xedit/xedit-statusbar.h \
xedit/xedit-tab.h \
xedit/xedit-panel.h \
xedit/xedit-window.h \
xedit/xedit-help.h \
xedit/xedit-debug.h \
xedit/xedit-message-type.h \
xedit/xedit-message.h \
xedit/xedit-message-bus.h \
xedit/xedit-language-manager.h
2011-11-07 13:46:58 -06:00
BINDING_UTILS_HEADERS_SRCDIR_IN = \
2016-01-25 08:13:49 -06:00
xedit/xedit-utils.h
2011-11-07 13:46:58 -06:00
BINDING_COMMANDS_HEADERS_SRCDIR_IN = \
2016-01-25 08:13:49 -06:00
xedit/xedit-commands.h
2011-11-07 13:46:58 -06:00
BINDING_HEADERS_BUILDDIR_IN =
2016-01-25 08:13:49 -06:00
BINDING_XEDIT_HEADERS_SRCDIR := $(addprefix $(top_srcdir)/,$(BINDING_XEDIT_HEADERS_SRCDIR_IN))
2011-11-07 13:46:58 -06:00
BINDING_UTILS_HEADERS_SRCDIR := $(addprefix $(top_srcdir)/,$(BINDING_UTILS_HEADERS_SRCDIR_IN))
BINDING_COMMANDS_HEADERS_SRCDIR := $(addprefix $(top_srcdir)/,$(BINDING_COMMANDS_HEADERS_SRCDIR_IN))
BINDING_HEADERS_BUILDDIR := $(addprefix $(top_builddir)/,$(BINDING_HEADERS_BUILDDIR_IN))
regenerate-python-binding:
2016-01-25 08:13:49 -06:00
$(PYGTK_H2DEF) $(sort $(BINDING_XEDIT_HEADERS_SRCDIR) $(BINDING_HEADERS_BUILDDIR)) > xedit.defs.new
$(PYGTK_H2DEF) $(sort $(BINDING_UTILS_HEADERS_SRCDIR) $(BINDING_HEADERS_BUILDDIR)) > xeditutils.defs.new
$(PYGTK_H2DEF) $(sort $(BINDING_COMMANDS_HEADERS_SRCDIR) $(BINDING_HEADERS_BUILDDIR)) > xeditcommands.defs.new
2011-11-07 13:46:58 -06:00
BUILT_SOURCES = \
2016-01-25 08:13:49 -06:00
xedit.c \
xeditutils.c \
xeditcommands.c
2011-11-07 13:46:58 -06:00
EXTRA_DIST = \
2016-01-25 08:13:49 -06:00
xedit.override \
xedit.defs \
xeditutils.override \
xeditutils.defs \
xeditcommands.override \
xeditcommands.defs \
xeditmessage.override \
xeditplugin.override
2011-11-07 13:46:58 -06:00
CLEANFILES = $(BUILT_SOURCES)
dist-hook:
cd $(distdir); rm -f $(BUILT_SOURCES)
-include $(top_srcdir)/git.mk