1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
goffice_graph_radardir = $(goffice_plugindir)/plot_radar
xmldir = $(goffice_graph_radardir)
goffice_graph_radar_LTLIBRARIES = radar.la
radar_la_LDFLAGS = -module $(GOFFICE_PLUGIN_FLAGS)
radar_la_LIBADD = $(GOFFICE_PLUGIN_LIBADD)
radar_la_SOURCES = \
gog-radar.c \
gog-radar.h
xml_in_files = plugin.xml.in plot-types.xml.in
xml_DATA = $(xml_in_files:.xml.in=.xml)
@INTLTOOL_XML_RULE@
plugin_resources = radar.xpm polar.xpm
pofiles = $(wildcard $(top_srcdir)/po/*.po)
plugin.xml: plugin.xml.in $(plugin_resources) $(pofiles) $(top_srcdir)/tools/resource-embedder
LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@.tmp
@PERL@ $(abs_top_srcdir)/tools/resource-embedder --file-dir $(srcdir) \
$@.tmp $@
rm -f $@.tmp
# Do not use the intl-tool stuff to merge the text back;
# it's simpler to just use gettext directly
plot-types.xml : plot-types.xml.in
cp $< $@
embedded_stuff_raw = \
chart_color_polar_1_1.png \
chart_polar_1_1.png \
chart_radar_1_1.png \
chart_radar_1_2.png \
chart_radar_1_3.png
embedded_stuff_compress = \
gog-color-polar-prefs.ui \
gog-polar-prefs.ui
embedded_stuff = $(embedded_stuff_compress) $(embedded_stuff_raw)
embedded-stuff.c: $(top_srcdir)/tools/embedder $(embedded_stuff)
cd $(srcdir) && @PERL@ $(abs_top_srcdir)/tools/embedder \
--id-prefix=go:plot_radar/ \
--static \
--register-function=register_embedded_stuff \
--unregister-function=unregister_embedded_stuff \
NOCOMPRESS $(embedded_stuff_raw) \
COMPRESS $(embedded_stuff_compress) \
>$(abs_builddir)/$@
BUILT_SOURCES = embedded-stuff.c
CLEANFILES = $(BUILT_SOURCES)
EXTRA_DIST = $(xml_in_files) $(embedded_stuff) $(plugin_resources)
DISTCLEANFILES = $(xml_in_files:.xml.in=.xml)
include $(top_srcdir)/goffice-plugins.mk
|