Updated Finnish translation
[rhythmbox.git] / plugins / audiocd / Makefile.am
blob88a728d43eddd8cf0b82a10714898344b84fc8fb
1 plugindir = $(PLUGINDIR)/audiocd
2 plugin_LTLIBRARIES = libaudiocd.la
4 libaudiocd_la_SOURCES =                                 \
5         rb-audiocd-plugin.c                             \
6         ../../sources/rb-audiocd-source.c               \
7         ../../sources/rb-audiocd-source.h
9 libaudiocd_la_LDFLAGS = $(PLUGIN_LIBTOOL_FLAGS)
11 INCLUDES =                                              \
12         -DGNOMELOCALEDIR=\""$(datadir)/locale"\"        \
13         -DG_LOG_DOMAIN=\"Rhythmbox\"                    \
14         -I$(top_srcdir)                                 \
15         -I$(top_srcdir)/lib                             \
16         -I$(top_srcdir)/metadata                        \
17         -I$(top_srcdir)/player                          \
18         -I$(top_srcdir)/rhythmdb                        \
19         -I$(top_srcdir)/widgets                         \
20         -I$(top_srcdir)/sources                         \
21         -I$(top_srcdir)/iradio                          \
22         -I$(top_srcdir)/podcast                         \
23         -I$(top_srcdir)/remote                          \
24         -I$(top_builddir)/remote                        \
25         -I$(top_srcdir)/plugins                         \
26         -I$(top_srcdir)/shell                           \
27         -DPIXMAP_DIR=\""$(datadir)/pixmaps"\"           \
28         -DSHARE_DIR=\"$(pkgdatadir)\"                   \
29         -DDATADIR=\""$(datadir)"\"                      \
30         $(TOTEM_PLPARSER_CFLAGS)                        \
31         $(HAL_CFLAGS)                                   \
32         $(RHYTHMBOX_CFLAGS)                             \
33         $(LIBNAUTILUS_BURN_CFLAGS)                      \
34         $(WARN_CFLAGS)                                  \
35         -D_XOPEN_SOURCE -D_BSD_SOURCE
37 gladedir = $(datadir)/rhythmbox/glade
38 glade_DATA =
40 plugin_in_files = audiocd.rb-plugin.desktop.in
42 %.rb-plugin: %.rb-plugin.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache
44 plugin_DATA = $(plugin_in_files:.rb-plugin.desktop.in=.rb-plugin)
46 EXTRA_DIST = $(glade_DATA) $(plugin_in_files) ../../metadata/sj-metadata-marshal.list
48 MARSHALFILES = 
50 if HAVE_MUSICBRAINZ
51 libaudiocd_la_SOURCES += \
52         ../../metadata/sj-metadata.h ../../metadata/sj-metadata.c \
53         ../../metadata/sj-metadata-musicbrainz.h ../../metadata/sj-metadata-musicbrainz.c \
54         ../../metadata/sj-structures.h ../../metadata/sj-structures.c \
55         ../../metadata/sj-error.h ../../metadata/sj-error.c \
56         $(MARSHALFILES)
58 libaudiocd_la_LIBADD = $(MUSICBRAINZ_LIBS)
60 MARSHALFILES += sj-metadata-marshal.h sj-metadata-marshal.c
62 sj-metadata-marshal.h: ../../metadata/sj-metadata-marshal.list
63         ( $(GLIB_GENMARSHAL) --prefix=metadata_marshal $< \
64         --header > marshal-header.tmp \
65         && mv marshal-header.tmp $@ ) \
66         || ( rm -f marshal-header.tmp && exit 1 )
68 sj-metadata-marshal.c: ../../metadata/sj-metadata-marshal.list
69         ( $(GLIB_GENMARSHAL) --prefix=metadata_marshal $< \
70         --body > marshal-source.tmp \
71         && echo "#include \"sj-metadata-marshal.h\"" > $@ \
72         && cat marshal-source.tmp >> $@ \
73         && rm -f marshal-source.tmp ) \
74         || ( rm -f marshal-source.tmp && exit 1 )
76 endif
78 BUILT_SOURCES = $(MARSHALFILES)
80 CLEANFILES = $(plugin_DATA) $(BUILT_SOURCES)
81 DISTCLEANFILES = $(plugin_DATA)