2006-08-20 10:54:54 -07:00
|
|
|
# XXX it needs plugins to be built first but plugins want mooedit-enums.h
|
2006-08-26 02:46:29 -07:00
|
|
|
SUBDIRS = gtksourceview plugins language-specs
|
2006-08-01 02:57:26 -07:00
|
|
|
|
|
|
|
mooedit_toolsdir = $(MOO_DATA_DIR)
|
2006-08-17 21:53:34 -07:00
|
|
|
mooedit_tools_DATA = menu.xml context.xml
|
2006-08-15 22:18:16 -07:00
|
|
|
|
2006-08-23 21:58:30 -07:00
|
|
|
unix_sources = \
|
|
|
|
moocommand-exe-unix.c
|
|
|
|
|
2006-08-15 22:18:16 -07:00
|
|
|
completion = \
|
|
|
|
moocompletion.h \
|
|
|
|
moocompletion.c
|
2006-08-01 02:57:26 -07:00
|
|
|
|
|
|
|
mooedit_include_headers = \
|
|
|
|
moocmdview.h \
|
2006-08-19 00:50:56 -07:00
|
|
|
mooedit-enums.h \
|
2006-08-26 02:46:29 -07:00
|
|
|
mooedit-script.h \
|
2006-08-01 02:57:26 -07:00
|
|
|
mooedit.h \
|
|
|
|
mooeditconfig.h \
|
|
|
|
mooeditor.h \
|
|
|
|
mooeditprefs.h \
|
|
|
|
mooeditwindow.h \
|
|
|
|
mooindenter.h \
|
|
|
|
moolinemark.h \
|
|
|
|
moolineview.h \
|
2006-08-03 12:26:08 -07:00
|
|
|
mooplugin-loader.h \
|
|
|
|
mooplugin-macro.h \
|
2006-08-26 02:46:29 -07:00
|
|
|
mooplugin.h \
|
2006-08-01 02:57:26 -07:00
|
|
|
mootextbuffer.h \
|
|
|
|
mootextiter.h \
|
|
|
|
mootextpopup.h \
|
|
|
|
mootextsearch.h \
|
|
|
|
mootextstyle.h \
|
|
|
|
mootextstylescheme.h \
|
2006-08-16 18:27:19 -07:00
|
|
|
mootextview.h
|
2006-08-01 02:57:26 -07:00
|
|
|
|
|
|
|
mooedit_noinst_headers = \
|
2006-08-26 02:46:29 -07:00
|
|
|
moocommand-exe.h \
|
|
|
|
moocommand-script.h \
|
|
|
|
moocommand.h \
|
|
|
|
moocommanddisplay.h \
|
2006-08-01 02:57:26 -07:00
|
|
|
mooedit-private.h \
|
|
|
|
mooeditdialogs.h \
|
|
|
|
mooeditfileops.h \
|
|
|
|
mooeditfiltersettings.h \
|
|
|
|
mooeditprefs-glade.h \
|
|
|
|
mooeditprogress-glade.h \
|
|
|
|
mooeditsavemultiple-glade.h \
|
2006-08-26 02:46:29 -07:00
|
|
|
mooedittools-glade.h \
|
2006-08-01 02:57:26 -07:00
|
|
|
moofold.h \
|
2006-08-22 21:15:25 -07:00
|
|
|
mookeyfile.h \
|
2006-08-01 02:57:26 -07:00
|
|
|
moolang-private.h \
|
2006-08-26 02:46:29 -07:00
|
|
|
moolang.h \
|
|
|
|
moolangmgr-private.h \
|
|
|
|
moolangmgr.h \
|
2006-08-01 02:57:26 -07:00
|
|
|
moolinebuffer.h \
|
|
|
|
moopluginprefs-glade.h \
|
|
|
|
mooprint-glade.h \
|
|
|
|
mootext-private.h \
|
|
|
|
mootextbox.h \
|
|
|
|
mootextbtree.h \
|
|
|
|
mootextfind-glade.h \
|
|
|
|
mootextfind.h \
|
|
|
|
mootextgotoline-glade.h \
|
2006-08-01 04:36:16 -07:00
|
|
|
mootextsearch-private.h \
|
2006-08-01 02:57:26 -07:00
|
|
|
mootextview-private.h \
|
2006-08-16 18:27:19 -07:00
|
|
|
moousertools-prefs.h \
|
2006-08-26 02:46:29 -07:00
|
|
|
moousertools.h \
|
2006-08-01 02:57:26 -07:00
|
|
|
quicksearch-glade.h \
|
|
|
|
statusbar-glade.h
|
|
|
|
|
|
|
|
mooedit_sources = \
|
|
|
|
$(mooedit_include_headers) \
|
|
|
|
$(mooedit_noinst_headers) \
|
2006-08-15 22:18:16 -07:00
|
|
|
$(moocommand_stuff) \
|
2006-08-01 02:57:26 -07:00
|
|
|
moocmdview.c \
|
2006-08-26 02:46:29 -07:00
|
|
|
moocommand-script.c \
|
|
|
|
moocommand.c \
|
|
|
|
moocommanddisplay.c \
|
2006-08-19 00:50:56 -07:00
|
|
|
mooedit-enums.c \
|
2006-08-26 02:46:29 -07:00
|
|
|
mooedit-script.c \
|
2006-08-01 02:57:26 -07:00
|
|
|
mooedit.c \
|
2006-08-26 02:46:29 -07:00
|
|
|
mooeditaction-factory.c \
|
|
|
|
mooeditaction-factory.h \
|
|
|
|
mooeditaction.c \
|
|
|
|
mooeditaction.h \
|
2006-08-01 02:57:26 -07:00
|
|
|
mooeditconfig.c \
|
|
|
|
mooeditdialogs.c \
|
|
|
|
mooeditfileops.c \
|
|
|
|
mooeditfiltersettings.c \
|
|
|
|
mooeditinput.c \
|
|
|
|
mooeditor.c \
|
|
|
|
mooeditprefs.c \
|
|
|
|
mooeditprefspage.c \
|
|
|
|
mooeditwindow.c \
|
|
|
|
moofold.c \
|
|
|
|
mooindenter.c \
|
2006-08-22 21:15:25 -07:00
|
|
|
mookeyfile.c \
|
2006-08-01 02:57:26 -07:00
|
|
|
moolang.c \
|
|
|
|
moolangmgr.c \
|
|
|
|
moolinebuffer.c \
|
|
|
|
moolinemark.c \
|
|
|
|
moolineview.c \
|
2006-08-03 12:26:08 -07:00
|
|
|
mooplugin-loader.c \
|
2006-08-26 02:46:29 -07:00
|
|
|
mooplugin.c \
|
2006-08-01 02:57:26 -07:00
|
|
|
mootextbox.c \
|
|
|
|
mootextbtree.c \
|
|
|
|
mootextbuffer.c \
|
|
|
|
mootextfind.c \
|
|
|
|
mootextpopup.c \
|
|
|
|
mootextsearch.c \
|
|
|
|
mootextstylescheme.c \
|
|
|
|
mootextview.c \
|
2006-08-26 02:46:29 -07:00
|
|
|
moousertools-prefs.c \
|
|
|
|
moousertools.c
|
2006-08-01 02:57:26 -07:00
|
|
|
|
|
|
|
mooedit_printing_sources = \
|
|
|
|
mootextprint.c \
|
|
|
|
mootextprint.h
|
|
|
|
|
|
|
|
BUILT_SOURCES = \
|
|
|
|
quicksearch-glade.h \
|
|
|
|
statusbar-glade.h \
|
|
|
|
mootextgotoline-glade.h \
|
|
|
|
mootextfind-glade.h \
|
|
|
|
moopluginprefs-glade.h \
|
|
|
|
mooprint-glade.h \
|
|
|
|
mooeditprefs-glade.h \
|
|
|
|
mooeditprogress-glade.h \
|
2006-08-16 18:27:19 -07:00
|
|
|
mooeditsavemultiple-glade.h \
|
2006-08-19 00:50:56 -07:00
|
|
|
mooedittools-glade.h \
|
|
|
|
mooedit-enums.c \
|
|
|
|
mooedit-enums.h
|
|
|
|
|
|
|
|
mooedit_enums_headers = \
|
|
|
|
moocommand.h \
|
|
|
|
mooeditconfig.h \
|
|
|
|
mooeditwindow.h \
|
|
|
|
mooedit.h \
|
|
|
|
mootextfind.h \
|
|
|
|
mootextsearch.h \
|
|
|
|
mootextstyle.h \
|
|
|
|
mootextview.h
|
|
|
|
|
2006-08-26 03:01:07 -07:00
|
|
|
CLEANFILES = stamp-mooedit-enums.h stamp-mooedit-enums.c mooedit-enums.h mooedit-enums.c
|
2006-08-19 00:50:56 -07:00
|
|
|
mooedit-enums.h: stamp-mooedit-enums.h
|
|
|
|
@true
|
2006-08-23 21:58:30 -07:00
|
|
|
mooedit-enums.c: stamp-mooedit-enums.c
|
|
|
|
@true
|
2006-08-19 00:50:56 -07:00
|
|
|
stamp-mooedit-enums.h: $(mooedit_enums_headers) Makefile
|
|
|
|
( cd $(srcdir) && glib-mkenums \
|
|
|
|
--fhead "#ifndef __MOO_EDIT_ENUMS_H__\n#define __MOO_EDIT_ENUMS_H__\n\n#include <glib-object.h>\n" \
|
|
|
|
--fhead "\nG_BEGIN_DECLS\n\n\n" \
|
|
|
|
--fprod "/* enumerations from \"mooedit/@filename@\" */\n" \
|
|
|
|
--vhead "GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define MOO_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n\n" \
|
|
|
|
--ftail "\nG_END_DECLS\n\n#endif /* __MOO_EDIT_ENUMS_H__ */" \
|
2006-08-23 21:58:30 -07:00
|
|
|
$(mooedit_enums_headers) ) > xgen-gtbh \
|
2006-08-19 00:50:56 -07:00
|
|
|
&& (cmp -s xgen-gtbh mooedit-enums.h || cp xgen-gtbh mooedit-enums.h ) \
|
|
|
|
&& rm -f xgen-gtbh \
|
|
|
|
&& echo timestamp > $(@F)
|
2006-08-23 21:58:30 -07:00
|
|
|
stamp-mooedit-enums.c: $(mooedit_enums_headers) Makefile
|
2006-08-19 00:50:56 -07:00
|
|
|
( cd $(srcdir) && glib-mkenums \
|
|
|
|
--fhead "#include \"mooedit/mooedit-enums.h\"\n\n" \
|
|
|
|
--fprod "#include \"mooedit/@filename@\"\n\n" \
|
|
|
|
--vhead "GType\n@enum_name@_get_type (void)\n{\n static GType etype = 0;\n if (etype == 0)\n {\n static const G@Type@Value values[] = {" \
|
|
|
|
--vprod " { @VALUENAME@, (char*) \"@VALUENAME@\", (char*) \"@valuenick@\" }," \
|
|
|
|
--vtail " { 0, NULL, NULL }\n };\n etype = g_@type@_register_static (\"@EnumName@\", values);\n }\n return etype;\n}\n\n" \
|
|
|
|
$(mooedit_enums_headers) ) > xgen-gtbc \
|
2006-08-23 21:58:30 -07:00
|
|
|
&& (cmp -s xgen-gtbc mooedit-enums.c || cp xgen-gtbc mooedit-enums.c ) \
|
|
|
|
&& rm -f xgen-gtbc \
|
|
|
|
&& echo timestamp > $(@F)
|
2006-08-01 02:57:26 -07:00
|
|
|
|
|
|
|
|
|
|
|
XML2H = $(srcdir)/../mooutils/xml2h.sh
|
|
|
|
mootextgotoline-glade.h: $(srcdir)/glade/mootextgotoline.glade $(XML2H)
|
2006-08-13 04:47:59 -07:00
|
|
|
$(SHELL) $(XML2H) MOO_TEXT_GOTO_LINE_GLADE_UI $(srcdir)/glade/mootextgotoline.glade \
|
2006-08-01 02:57:26 -07:00
|
|
|
> mootextgotoline-glade.h
|
|
|
|
mootextfind-glade.h: $(srcdir)/glade/mootextfind.glade $(XML2H)
|
2006-08-13 04:47:59 -07:00
|
|
|
$(SHELL) $(XML2H) MOO_TEXT_FIND_GLADE_UI $(srcdir)/glade/mootextfind.glade \
|
2006-08-01 02:57:26 -07:00
|
|
|
> mootextfind-glade.h
|
|
|
|
mooeditprefs-glade.h: $(srcdir)/glade/mooeditprefs.glade $(XML2H)
|
2006-08-13 04:47:59 -07:00
|
|
|
$(SHELL) $(XML2H) MOO_EDIT_PREFS_GLADE_UI $(srcdir)/glade/mooeditprefs.glade \
|
2006-08-01 02:57:26 -07:00
|
|
|
> mooeditprefs-glade.h
|
|
|
|
mooeditprogress-glade.h: $(srcdir)/glade/mooeditprogress.glade $(XML2H)
|
2006-08-13 04:47:59 -07:00
|
|
|
$(SHELL) $(XML2H) MOO_EDIT_PROGRESS_GLADE_XML $(srcdir)/glade/mooeditprogress.glade \
|
2006-08-01 02:57:26 -07:00
|
|
|
> mooeditprogress-glade.h
|
|
|
|
moopluginprefs-glade.h: $(srcdir)/glade/moopluginprefs.glade $(XML2H)
|
2006-08-13 04:47:59 -07:00
|
|
|
$(SHELL) $(XML2H) MOO_PLUGIN_PREFS_GLADE_UI $(srcdir)/glade/moopluginprefs.glade \
|
2006-08-01 02:57:26 -07:00
|
|
|
> moopluginprefs-glade.h
|
|
|
|
mooeditsavemultiple-glade.h: $(srcdir)/glade/mooeditsavemult.glade $(XML2H)
|
2006-08-13 04:47:59 -07:00
|
|
|
$(SHELL) $(XML2H) MOO_EDIT_SAVE_MULTIPLE_GLADE_UI $(srcdir)/glade/mooeditsavemult.glade \
|
2006-08-01 02:57:26 -07:00
|
|
|
> mooeditsavemultiple-glade.h
|
|
|
|
quicksearch-glade.h: $(srcdir)/glade/quicksearch.glade $(XML2H)
|
2006-08-13 04:47:59 -07:00
|
|
|
$(SHELL) $(XML2H) QUICK_SEARCH_GLADE_XML $(srcdir)/glade/quicksearch.glade \
|
2006-08-01 02:57:26 -07:00
|
|
|
> quicksearch-glade.h
|
|
|
|
statusbar-glade.h: $(srcdir)/glade/statusbar.glade $(XML2H)
|
2006-08-13 04:47:59 -07:00
|
|
|
$(SHELL) $(XML2H) STATUSBAR_GLADE_XML $(srcdir)/glade/statusbar.glade \
|
2006-08-01 02:57:26 -07:00
|
|
|
> statusbar-glade.h
|
|
|
|
mooprint-glade.h: $(srcdir)/glade/mooprint.glade $(XML2H)
|
2006-08-13 04:47:59 -07:00
|
|
|
$(SHELL) $(XML2H) MOO_PRINT_GLADE_XML $(srcdir)/glade/mooprint.glade \
|
2006-08-01 02:57:26 -07:00
|
|
|
> mooprint-glade.h
|
2006-08-16 18:27:19 -07:00
|
|
|
mooedittools-glade.h: $(srcdir)/glade/mooedittools.glade $(XML2H)
|
|
|
|
$(SHELL) $(XML2H) MOO_EDIT_TOOLS_GLADE_XML $(srcdir)/glade/mooedittools.glade \
|
|
|
|
> mooedittools-glade.h
|
2006-08-01 02:57:26 -07:00
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
glade/statusbar.glade \
|
|
|
|
glade/quicksearch.glade \
|
|
|
|
glade/mootextgotoline.glade \
|
|
|
|
glade/mootextfind.glade \
|
|
|
|
glade/mooeditprefs.glade \
|
|
|
|
glade/mooeditprogress.glade \
|
|
|
|
glade/mooeditsavemult.glade \
|
2006-08-17 21:53:34 -07:00
|
|
|
glade/mooedittools.glade \
|
2006-08-01 02:57:26 -07:00
|
|
|
glade/moopluginprefs.glade \
|
|
|
|
glade/mooprint.glade \
|
2006-08-15 22:18:16 -07:00
|
|
|
$(mooedit_tools_DATA) \
|
|
|
|
$(completion)
|
2006-08-01 02:57:26 -07:00
|
|
|
|
|
|
|
if GTK_2_10
|
|
|
|
mooedit_sources += $(mooedit_printing_sources)
|
|
|
|
else
|
|
|
|
EXTRA_DIST += $(mooedit_printing_sources)
|
|
|
|
endif
|
|
|
|
|
2006-08-23 21:58:30 -07:00
|
|
|
if MOO_OS_UNIX
|
|
|
|
mooedit_sources += $(unix_sources)
|
|
|
|
else
|
|
|
|
EXTRA_DIST += $(unix_sources)
|
|
|
|
endif
|
|
|
|
|
2006-08-01 02:57:26 -07:00
|
|
|
noinst_LTLIBRARIES = libmooedit.la
|
|
|
|
libmooedit_la_SOURCES = $(mooedit_sources)
|
2006-08-26 02:46:29 -07:00
|
|
|
libmooedit_la_LIBADD = plugins/libmooeditplugins.la gtksourceview/libgtksourceview.la
|
2006-08-01 02:57:26 -07:00
|
|
|
|
|
|
|
AM_CFLAGS = \
|
|
|
|
-I.. \
|
|
|
|
-I$(top_builddir) \
|
|
|
|
$(MOO_CFLAGS) \
|
|
|
|
$(MOO_DEBUG_CFLAGS)
|
2006-08-01 04:36:16 -07:00
|
|
|
|
2006-08-06 23:25:35 -07:00
|
|
|
if MOO_INSTALL_HEADERS
|
|
|
|
mooedit_includedir = $(moo_includedir)/mooedit
|
|
|
|
mooedit_include_HEADERS = $(mooedit_include_headers)
|
|
|
|
endif
|