2006-11-29 James Livingston <doclivingston@gmail.com>
[rhythmbox.git] / data / Makefile.am
blob24f632cf4c582f98365bf2ed66f9b8a4ee102001
1 ## arch-tag: Automake rules for various data files
3 SUBDIRS = ui glade art
5 @INTLTOOL_XML_RULE@
6 @INTLTOOL_DESKTOP_RULE@
8 Multimediadir = $(datadir)/applications
9 Multimedia_in_files = rhythmbox.desktop.in
10 Multimedia_DATA = $(Multimedia_in_files:.desktop.in=.desktop)
12 appicon_DATA = rhythmbox.png
13 appicondir = $(datadir)/icons/hicolor/48x48/apps
15 schemadir = @GCONF_SCHEMA_FILE_DIR@
16 schema_DATA = rhythmbox.schemas
18 iradio-initial.xml:
20 iradio_DATA = iradio-initial.pls
21 iradiodir = $(datadir)/rhythmbox
23 playlists_in_files = playlists.xml.in
24 playlists_DATA = playlists.xml
25 playlistsdir = $(datadir)/rhythmbox
27 # Dbus service file
28 servicedir = $(datadir)/dbus-1/services
29 service_in_files = org.gnome.Rhythmbox.service.in
30 service_DATA = $(service_in_files:.service.in=.service)
32 # Rule to make the service file with bindir expanded
33 $(service_DATA): $(service_in_files) Makefile
34         @sed -e "s|\@bindir\@|$(bindir)|" $< > $@
36 if GCONF_SCHEMAS_INSTALL
37 install-data-local: $(schema_DATA)
38         GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(srcdir)/$(schema_DATA);
39 endif
41 # Rule to update the icon cache after installing the icon
42 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
43 install-data-hook:
44         @-if test -z "$(DESTDIR)"; then \
45                 echo "Updating Gtk icon cache."; \
46                 $(gtk_update_icon_cache); \
47         else \
48                 echo "*** Icon cache not updated.  After install, run this:"; \
49                 echo "***   $(gtk_update_icon_cache)"; \
50         fi
52 EXTRA_DIST = $(service_in_files)    \
53              $(appicon_DATA)        \
54              $(schema_DATA)         \
55              $(iradio_DATA)         \
56              $(playlists_in_files)  \
57              rhythmbox.desktop.in.in
59 CLEANFILES = rhythmbox.desktop org.gnome.Rhythmbox.service playlists.xml rhythmbox.desktop.in