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 (96 lines) | stat: -rw-r--r-- 2,638 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
goffice_graph_barcoldir = $(goffice_plugindir)/plot_barcol
xmldir	 = $(goffice_graph_barcoldir)

goffice_graph_barcol_LTLIBRARIES = barcol.la
barcol_la_LDFLAGS = -module $(GOFFICE_PLUGIN_FLAGS)
barcol_la_LIBADD = $(GOFFICE_PLUGIN_LIBADD)

barcol_la_SOURCES = gog-1.5d.c 		\
		    gog-1.5d.h		\
		    gog-line.c		\
		    gog-line.h		\
		    gog-barcol.c 	\
		    gog-barcol.h	\
		    gog-dropbar.c	\
		    gog-dropbar.h	\
		    gog-minmax.c	\
		    gog-minmax.h	

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

@INTLTOOL_XML_RULE@

if WITH_GTK
barcol_la_SOURCES += gog-barcol-prefs.c
endif

plugin_resources = linegraph.xpm area.xpm bar.xpm column.xpm dropbar.xpm minmax.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_area_1_1.png	\
	chart_area_1_2.png	\
	chart_area_1_3.png	\
	chart_bar_1_1.png	\
	chart_bar_1_2.png	\
	chart_bar_1_3.png	\
	chart_bar_2_1.png	\
	chart_bar_2_2.png	\
	chart_bar_2_3.png	\
	chart_column_1_1.png	\
	chart_column_1_2.png	\
	chart_column_1_3.png	\
	chart_column_2_1.png	\
	chart_column_2_2.png	\
	chart_column_2_3.png	\
	chart_column_3_1.png	\
	chart_dropbar_1_1.png	\
	chart_dropbar_1_2.png	\
	chart_line_1_1.png	\
	chart_line_1_2.png	\
	chart_line_1_3.png	\
	chart_line_2_1.png	\
	chart_line_2_2.png	\
	chart_line_2_3.png	\
	chart_line_3_1.png	\
	chart_minmax_1_1.png	\
	chart_minmax_1_2.png	\
	chart_minmax_2_1.png	\
	chart_minmax_2_2.png

embedded_stuff_compress = \
	gog-barcol-prefs.ui	\
	gog-minmax-prefs.ui	\
	gog-area-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_barcol/ \
		--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