Fix Spanish translation header
[anjuta.git] / plugins / symbol-db / Makefile.am
blob0fc787caa5709dca7d56f7750a69c49fcd3ac8ac
1 SUBDIRS = . anjuta-tags images benchmark
3 symbol_db_datadir = $(anjuta_data_dir)
4 dist_symbol_db_data_DATA = tables.sql
6 # Plugin UI file
7 symbol_db_uidir = $(anjuta_ui_dir)
8 dist_symbol_db_ui_DATA = anjuta-symbol-db-plugin.xml
10 # Plugin Glade file
11 symbol_db_gladedir = $(anjuta_glade_dir)
12 dist_symbol_db_glade_DATA =  anjuta-symbol-db.ui
14 # Plugin Icon file
15 symbol_db_pixmapsdir = $(anjuta_image_dir)
16 dist_symbol_db_pixmaps_DATA = \
17         anjuta-symbol-db-plugin.svg \
18         anjuta-symbol-db-plugin-48.png \
19         anjuta-symbol-db-plugin-16.png
21 # Plugin description file
22 plugin_in_files = symbol-db.plugin.in
23 %.plugin: %.plugin.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache
25 symbol_db_plugindir = $(anjuta_plugin_dir)
26 dist_symbol_db_plugin_DATA = $(plugin_in_files:.plugin.in=.plugin)
28 # NOTE :
29 # The naming convention is very intentional
30 # We are forced to use the prefix 'lib' by automake and libtool
31 #    There is probably a way to avoid it but it is not worth to effort
32 #    to find out.
33 # The 'anjuta_' prfix is a safety measure to avoid conflicts where the
34 #    plugin 'libpython.so' needs to link with the real 'libpython.so'
36 # Include paths
37 AM_CPPFLAGS = \
38         $(WARN_CFLAGS) \
39         $(DEPRECATED_FLAGS) \
40         $(GDA_CFLAGS) \
41         $(LIBANJUTA_CFLAGS) \
42         -DSYMBOL_DB_SHM=\"$(SYMBOL_DB_SHM)\" \
43         -DPACKAGE_BIN_DIR=\"$(bindir)\" \
44         -DG_LOG_DOMAIN=\"libanjuta-symbol-db\"
46 # Where to install the plugin
47 plugindir = $(anjuta_plugin_dir)
49 # The plugin
50 plugin_LTLIBRARIES = libanjuta-symbol-db.la
52 # Plugin sources
53 libanjuta_symbol_db_la_SOURCES = \
54         plugin.c \
55         plugin.h \
56         readtags.c \
57         readtags.h \
58         symbol-db-system.h \
59         symbol-db-system.c \
60         symbol-db-engine-utils.c \
61         symbol-db-engine-utils.h \
62         symbol-db-engine-priv.h \
63         symbol-db-engine-core.c \
64         symbol-db-engine-core.h \
65         symbol-db-engine.h \
66         symbol-db-query.h \
67         symbol-db-query.c \
68         symbol-db-query-result.h \
69         symbol-db-query-result.c \
70         symbol-db-model.c \
71         symbol-db-model.h \
72         symbol-db-model-project.c \
73         symbol-db-model-project.h \
74         symbol-db-model-file.c \
75         symbol-db-model-file.h \
76         symbol-db-model-search.c \
77         symbol-db-model-search.h \
78         symbol-db-views.c \
79         symbol-db-views.h \
80         $(BUILT_SOURCES)
82 libanjuta_symbol_db_la_LDFLAGS = $(ANJUTA_PLUGIN_LDFLAGS)
84 # Plugin dependencies
85 libanjuta_symbol_db_la_LIBADD = \
86         $(GDA_LIBS) \
87         $(LIBANJUTA_LIBS) \
88         $(SHM_LIBS)
90 # libanjuta-symbol-db.la without the -module flag to be used in benchmark
91 noinst_LTLIBRARIES = libbenchmark-symbol-db.la
93 libbenchmark_symbol_db_la_SOURCES = \
94         $(libanjuta_symbol_db_la_SOURCES)
96 libbenchmark_symbol_db_la_LIBADD = \
97         $(libanjuta_symbol_db_la_LIBADD)
100 BUILT_SOURCES=symbol-db-marshal.c symbol-db-marshal.h
102 symbol-db-marshal.h: symbol-db-marshal.list
103         $(AM_V_GEN)@GLIB_GENMARSHAL@ \
104                 --prefix=symbol_db_cclosure_marshal $(srcdir)/symbol-db-marshal.list --header > xgen-gmc \
105         && cp xgen-gmc $(@F) \
106         && rm -f xgen-gmc
108 symbol-db-marshal.c: symbol-db-marshal.h symbol-db-marshal.list
109         $(AM_V_GEN)echo "#include \"symbol-db-marshal.h\"" > xgenc-gmc \
110         && @GLIB_GENMARSHAL@ \
111                 --prefix=symbol_db_cclosure_marshal $(srcdir)/symbol-db-marshal.list --body >> xgenc-gmc \
112         && cp xgenc-gmc $(@F) \
113         && rm -f xgenc-gmc
116 gsettings_in_file = org.gnome.anjuta.symbol-db.gschema.xml.in
117 gsettings_SCHEMAS = $(gsettings_in_file:.xml.in=.xml)
118 @INTLTOOL_XML_NOMERGE_RULE@
119 @GSETTINGS_RULES@
121 EXTRA_DIST = \
122         $(plugin_in_files) \
123         symbol-db-marshal.list \
124         $(gsettings_in_file)
126 CLEANFILES = \
127         $(gsettings_SCHEMAS) \
128         $(plugin_in_files:.plugin.in=.plugin)
130 -include $(top_srcdir)/git.mk