build: add built .plugin files to CLEANFILES
[anjuta.git] / plugins / file-manager / Makefile.am
blobcf782f9778cd7f3e800285f50bfce5c74b5ea6be
1 # Plugin glade file
2 file_manager_gladedir = $(anjuta_glade_dir)
3 dist_file_manager_glade_DATA = file-manager.ui
5 # Plugin UI file
6 file_manager_uidir = $(anjuta_ui_dir)
7 dist_file_manager_ui_DATA = file-manager.xml
9 # Plugin Icon file
10 file_manager_pixmapsdir = $(anjuta_image_dir)
11 dist_file_manager_pixmaps_DATA = \
12         anjuta-file-manager-plugin.svg \
13         anjuta-file-manager-plugin-48.png \
14         anjuta-file-manager-plugin-16.png \
15         vcs-added.png \
16         vcs-conflict.png \
17         vcs-deleted.png \
18         vcs-ignored.png \
19         vcs-modified.png \
20         vcs-unversioned.png \
21         vcs-updated.png
23 # Plugin description file
24 plugin_in_files = file-manager.plugin.in
25 %.plugin: %.plugin.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache
27 file_manager_plugindir = $(anjuta_plugin_dir)
28 dist_file_manager_plugin_DATA = $(plugin_in_files:.plugin.in=.plugin)
30 # Include paths
31 AM_CPPFLAGS = \
32         $(LIBANJUTA_CFLAGS) \
33         $(GDL_CFLAGS) \
34         $(GIO_CFLAGS)
36 AM_CFLAGS += \
37         -Wno-error=format-y2k
39 # Where to install the plugin
40 plugindir = $(anjuta_plugin_dir)
42 # The plugin
43 plugin_LTLIBRARIES = libfile-manager.la
45 BUILT_SOURCES = file-view-marshal.h file-view-marshal.c
47 # Plugin sources
48 libfile_manager_la_SOURCES = \
49         plugin.c \
50         plugin.h \
51         file-view-marshal.h \
52         file-view-marshal.c \
53         file-view.h \
54         file-view.c \
55         file-model.c \
56         file-model.h
58 libfile_manager_la_LDFLAGS = $(ANJUTA_PLUGIN_LDFLAGS)
60 # Plugin dependencies
61 libfile_manager_la_LIBADD = \
62         $(LIBANJUTA_LIBS) \
63         $(GDL_LIBS) \
64         $(GIO_LIBS)
66 file-view-marshal.h: $(srcdir)/file-view-marshal.list
67         $(AM_V_GEN)if $(GLIB_GENMARSHAL) --prefix=file_view_cclosure_marshal \
68            --header $(srcdir)/file-view-marshal.list >.genmarshal-$@; \
69         then mv -f .genmarshal-$@ $@; \
70         else rm -f .genmarshal-$@; fi
72 file-view-marshal.c: $(srcdir)/file-view-marshal.list
73         $(AM_V_GEN)if { echo '#include "file-view-marshal.h"' && $(GLIB_GENMARSHAL) \
74              --prefix=file_view_cclosure_marshal --body $(srcdir)/file-view-marshal.list; \
75            } >.genmarshal-$@; \
76         then mv -f .genmarshal-$@ $@; \
77         else rm -f .genmarshal-$@; fi
79 gsettings_in_file = org.gnome.anjuta.file-manager.gschema.xml.in
80 gsettings_SCHEMAS = $(gsettings_in_file:.xml.in=.xml)
81 @INTLTOOL_XML_NOMERGE_RULE@
82 @GSETTINGS_RULES@
84 EXTRA_DIST = \
85         $(plugin_in_files) \
86         file-view-marshal.list \
87         $(gsettings_in_file)
89 CLEANFILES = \
90         $(gsettings_SCHEMAS) \
91         $(plugin_in_files:.plugin.in=.plugin)
93 -include $(top_srcdir)/git.mk