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 = \
2011-11-07 16:52:18 -06:00
pluma.la
2011-11-07 13:46:58 -06:00
2011-11-07 16:52:18 -06:00
nodist_pluma_la_SOURCES = \
pluma.c \
plumautils.c \
plumacommands.c
2011-11-07 13:46:58 -06:00
2011-11-07 16:52:18 -06:00
pluma_la_LDFLAGS = \
2011-11-07 13:46:58 -06:00
-module -avoid-version
2011-11-07 16:52:18 -06:00
pluma_la_LIBADD = \
2011-11-07 13:46:58 -06:00
$(PYTHON_LIB_LOC) \
$(PYTHON_LIBS) \
$(PYTHON_EXTRA_LIBS) \
$(PYGTK_LIBS)
2011-11-07 16:52:18 -06:00
pluma_la_CFLAGS = \
2011-11-07 13:46:58 -06:00
-I$(top_srcdir) \
-I$(top_builddir) \
2011-11-07 16:52:18 -06:00
-I$(top_srcdir)/pluma \
-I$(top_builddir)/pluma \
2011-11-07 13:46:58 -06:00
-I$(top_srcdir)/plugin-loaders/python \
-I$(top_builddir)/plugin-loaders/python \
2011-11-07 16:52:18 -06:00
$(PLUMA_CFLAGS) \
2011-11-07 13:46:58 -06:00
$(NO_STRICT_ALIASING_CFLAGS) \
$(PYGTK_CFLAGS) \
$(PYTHON_CFLAGS) \
$(AM_CFLAGS)
2011-11-07 16:52:18 -06:00
$(top_builddir)/pluma/pluma-enum-types.h:
cd $(top_builddir)/pluma && $(MAKE) pluma-enum-types.h
2011-11-07 13:46:58 -06:00
2011-11-07 16:52:18 -06:00
pluma.c: pluma.defs pluma.override plumaplugin.override plumamessage.override $(top_builddir)/pluma/pluma-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) ) > $@
2011-11-07 16:52:18 -06:00
plumautils.c: plumautils.defs plumautils.override
2011-11-07 13:46:58 -06:00
( cd $(srcdir) && $(PYGTK_CODEGEN) \
--override $*.override \
--prefix py$* $(<F) ) > $@
2011-11-07 16:52:18 -06:00
plumacommands.c: plumacommands.defs plumacommands.override pluma.defs
2011-11-07 13:46:58 -06:00
( cd $(srcdir) && $(PYGTK_CODEGEN) \
2011-11-07 16:52:18 -06:00
--register pluma.defs \
2011-11-07 13:46:58 -06:00
--register $(PYGTK_DEFSDIR)/gtk-types.defs \
--override $*.override \
--prefix py$* $(<F) ) > $@
2011-11-07 16:52:18 -06:00
BINDING_PLUMA_HEADERS_SRCDIR_IN = \
pluma/pluma-app.h \
pluma/pluma-document.h \
pluma/pluma-encodings.h \
pluma/pluma-plugin.h \
plugin-loaders/python/pluma-plugin-python.h \
pluma/pluma-view.h \
pluma/pluma-statusbar.h \
pluma/pluma-tab.h \
pluma/pluma-panel.h \
pluma/pluma-window.h \
pluma/pluma-help.h \
pluma/pluma-debug.h \
pluma/pluma-message-type.h \
pluma/pluma-message.h \
pluma/pluma-message-bus.h \
pluma/pluma-language-manager.h
2011-11-07 13:46:58 -06:00
BINDING_UTILS_HEADERS_SRCDIR_IN = \
2011-11-07 16:52:18 -06:00
pluma/pluma-utils.h
2011-11-07 13:46:58 -06:00
BINDING_COMMANDS_HEADERS_SRCDIR_IN = \
2011-11-07 16:52:18 -06:00
pluma/pluma-commands.h
2011-11-07 13:46:58 -06:00
BINDING_HEADERS_BUILDDIR_IN =
2011-11-07 16:52:18 -06:00
BINDING_PLUMA_HEADERS_SRCDIR := $(addprefix $(top_srcdir)/,$(BINDING_PLUMA_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:
2011-11-07 16:52:18 -06:00
$(PYGTK_H2DEF) $(sort $(BINDING_PLUMA_HEADERS_SRCDIR) $(BINDING_HEADERS_BUILDDIR)) > pluma.defs.new
$(PYGTK_H2DEF) $(sort $(BINDING_UTILS_HEADERS_SRCDIR) $(BINDING_HEADERS_BUILDDIR)) > plumautils.defs.new
$(PYGTK_H2DEF) $(sort $(BINDING_COMMANDS_HEADERS_SRCDIR) $(BINDING_HEADERS_BUILDDIR)) > plumacommands.defs.new
2011-11-07 13:46:58 -06:00
BUILT_SOURCES = \
2011-11-07 16:52:18 -06:00
pluma.c \
plumautils.c \
plumacommands.c
2011-11-07 13:46:58 -06:00
EXTRA_DIST = \
2011-11-07 16:52:18 -06:00
pluma.override \
pluma.defs \
plumautils.override \
plumautils.defs \
plumacommands.override \
plumacommands.defs \
plumamessage.override \
plumaplugin.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