build: add built .plugin files to CLEANFILES
[anjuta.git] / plugins / parser-cxx / Makefile.am
blobcf5785fab9a21cede9d7ebb1017338386e2001e5
1 SUBDIRS = cxxparser
3 # Plugin glade file
4 parser_cxx_gladedir = $(anjuta_glade_dir)
5 dist_parser_cxx_glade_DATA = anjuta-parser-cxx.ui
7 # Plugin Icon file
8 parser_cxx_pixmapsdir = $(anjuta_image_dir)
9 dist_parser_cxx_pixmaps_DATA = \
10         anjuta-parser-cxx-plugin.png
12 # Plugin description file
13 plugin_in_files = anjuta-parser-cxx.plugin.in
14 %.plugin: %.plugin.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache
16 parser_cxx_plugindir = $(anjuta_plugin_dir)
17 dist_parser_cxx_plugin_DATA = $(plugin_in_files:.plugin.in=.plugin)
19 # NOTE :
20 # The naming convention is very intentional
21 # We are forced to use the prefix 'lib' by automake and libtool
22 #    There is probably a way to avoid it but it is not worth to effort
23 #    to find out.
24 # The 'anjuta_' prfix is a safety measure to avoid conflicts where the
25 #    plugin 'libpython.so' needs to link with the real 'libpython.so'
27 # Include paths
28 AM_CPPFLAGS = \
29         $(WARN_CFLAGS) \
30         $(DEPRECATED_FLAGS) \
31         $(LIBANJUTA_CFLAGS) \
32         $(EXTRA_CFLAGS) \
33         -DG_LOG_DOMAIN=\"parser-cxx\"
35 # Where to install the plugin
36 plugindir = $(anjuta_plugin_dir)
38 # The plugin
39 plugin_LTLIBRARIES = libanjuta-parser-cxx.la
41 # Plugin sources
42 libanjuta_parser_cxx_la_SOURCES = \
43         parser-cxx-assist.h \
44         parser-cxx-assist.c \
45         plugin.h \
46         plugin.c
48 libanjuta_parser_cxx_la_LDFLAGS = $(ANJUTA_PLUGIN_LDFLAGS)
50 # Use C++ linking
51 nodist_EXTRA_libanjuta_parser_cxx_la_SOURCES = dummy.cxx
53 # Plugin dependencies
54 libanjuta_parser_cxx_la_LIBADD = \
55         $(LIBANJUTA_LIBS) \
56         cxxparser/libcxxparser.la
58 gsettings_in_file = org.gnome.anjuta.plugins.parser-cxx.gschema.xml.in
59 gsettings_SCHEMAS = $(gsettings_in_file:.xml.in=.xml)
60 @INTLTOOL_XML_NOMERGE_RULE@
61 @GSETTINGS_RULES@
63 EXTRA_DIST = \
64         $(plugin_in_files) \
65         $(gsettings_in_file)
67 CLEANFILES = \
68         $(gsettings_SCHEMAS) \
69         $(plugin_in_files:.plugin.in=.plugin)
71 -include $(top_srcdir)/git.mk