| 1 |
autostartdir = $(sysconfdir)/xdg/autostart |
| 2 |
autostart_in_files = blueman.desktop.in |
| 3 |
autostart_DATA = $(autostart_in_files:.desktop.in=.desktop) |
| 4 |
|
| 5 |
$(autostart_DATA): $(autostart_in_files) |
| 6 |
$(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ |
| 7 |
|
| 8 |
appdir = $(datadir)/applications |
| 9 |
app_in_files = blueman-manager.desktop.in |
| 10 |
app_DATA = $(app_in_files:.desktop.in=.desktop) |
| 11 |
|
| 12 |
$(app_DATA): $(app_in_files) |
| 13 |
$(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ |
| 14 |
|
| 15 |
if HAVE_THUNAR |
| 16 |
thunardir = $(datadir)/Thunar/sendto |
| 17 |
thunar_in_files = thunar-sendto-blueman.desktop.in |
| 18 |
thunar_DATA = $(thunar_in_files:.desktop.in=.desktop) |
| 19 |
|
| 20 |
$(thunar_DATA): $(thunar_in_files) |
| 21 |
$(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ |
| 22 |
endif |
| 23 |
|
| 24 |
if HAVE_SETTINGS |
| 25 |
settingsdir = $(datadir)/applications |
| 26 |
settings_in_files = blueman-adapters.desktop.in |
| 27 |
settings_DATA = $(settings_in_files:.desktop.in=.desktop) |
| 28 |
|
| 29 |
$(settings_DATA): $(settings_in_files) |
| 30 |
$(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@ |
| 31 |
endif |
| 32 |
|
| 33 |
gsettings_SCHEMAS = org.blueman.gschema.xml |
| 34 |
|
| 35 |
# include the appropriate makefile rules for schema handling |
| 36 |
@GSETTINGS_RULES@ |
| 37 |
|
| 38 |
# GTK icon cache |
| 39 |
gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor |
| 40 |
|
| 41 |
install-data-hook: update-icon-cache |
| 42 |
uninstall-hook: update-icon-cache |
| 43 |
|
| 44 |
update-icon-cache: |
| 45 |
if test -z "$(DESTDIR)"; then \ |
| 46 |
echo "Updating Gtk icon cache."; \ |
| 47 |
$(gtk_update_icon_cache); \ |
| 48 |
else \ |
| 49 |
echo "*** Icon cache not updated. After (un)install, run this:"; \ |
| 50 |
echo "*** $(gtk_update_icon_cache)"; \ |
| 51 |
fi |
| 52 |
|
| 53 |
EXTRA_DIST = $(autostart_in_files) \ |
| 54 |
$(app_in_files) \ |
| 55 |
$(thunar_in_files) \ |
| 56 |
$(settings_in_files) \ |
| 57 |
$(gsettings_SCHEMAS) \ |
| 58 |
meson.build |
| 59 |
|
| 60 |
SUBDIRS = \ |
| 61 |
configs \ |
| 62 |
icons \ |
| 63 |
ui \ |
| 64 |
man |
| 65 |
|
| 66 |
CLEANFILES = \ |
| 67 |
thunar-sendto-blueman.desktop \ |
| 68 |
blueman-adapters.desktop \ |
| 69 |
blueman-manager.desktop \ |
| 70 |
blueman.desktop \ |
| 71 |
$(BUILT_SOURCES) \ |
| 72 |
*.gschema.valid \ |
| 73 |
gschemas.compiled |
| 74 |
|
| 75 |
DISTCLEANFILES = \ |
| 76 |
$(CLEANFILES) |