File: Makefile.am

package info (click to toggle)
goffice 0.10.57-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 28,136 kB
  • sloc: ansic: 114,820; sh: 4,993; makefile: 1,241; perl: 235; xml: 232
file content (75 lines) | stat: -rw-r--r-- 2,198 bytes parent folder | download | duplicates (6)
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
goffice_graph_distribdir = $(goffice_plugindir)/plot_distrib
xmldir	 = $(goffice_graph_distribdir)

goffice_graph_distrib_LTLIBRARIES = distrib.la
distrib_la_LDFLAGS = -module $(GOFFICE_PLUGIN_FLAGS)
distrib_la_LIBADD = $(GOFFICE_PLUGIN_LIBADD)

distrib_la_SOURCES = gog-boxplot.c	\
		     gog-boxplot.h	\
		     gog-histogram.c	\
		     gog-histogram.h	\
			 gog-probability-plot.c	\
			 gog-probability-plot.h \
			 plugin.c

xml_in_files = plugin.xml.in plot-types.xml.in
xml_DATA = $(xml_in_files:.xml.in=.xml)

if WITH_GTK
  distrib_la_SOURCES +=	\
	go-distribution-prefs.c	\
	go-distribution-prefs.h
endif
@INTLTOOL_XML_RULE@

plugin_resources = dist.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_boxplot_1_1.png	\
	chart_boxplot_1_2.png	\
	chart_boxplot_2_1.png	\
	chart_boxplot_2_2.png	\
	chart_histogram_1_1.png	\
	chart_histogram_1_2.png	\
	chart_histogram_1_3.png	\
	chart_histogram_1_4.png	\
	chart_histogram_2_1.png	\
	chart_prob_1_1.png

embedded_stuff_compress = \
	gog-boxplot-prefs.ui \
	gog-histogram-prefs.ui \
	gog-double-histogram-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_distrib/ \
		--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