1
# -*- Mode: Makefile; indent-tabs-mode: t; tab-width: 2 -*-
3
# This file is part of Déjà Dup.
4
# For copyright information, see AUTHORS.
6
# Déjà Dup is free software; you can redistribute it and/or modify
7
# it under the terms of the GNU General Public License as published by
8
# the Free Software Foundation; either version 3 of the License, or
9
# (at your option) any later version.
11
# Déjà Dup is distributed in the hope that it will be useful, but
12
# WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
# General Public License for more details.
16
# You should have received a copy of the GNU General Public License
17
# along with Déjà Dup. If not, see <http://www.gnu.org/licenses/>.
19
nobase_dist_data_DATA = \
20
icons/hicolor/32x32/apps/alm.svg \
21
icons/hicolor/48x48/apps/alm.svg
23
desktopdir = $(datadir)/applications
24
desktop_in_files = alm.desktop.in alm-ccpanel.desktop.in
27
desktop_in_files+ = alm-ccpanel.desktop.in
30
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
31
@INTLTOOL_DESKTOP_RULE@
33
EXTRA_DIST = alm.desktop.in alm-ccpanel.desktop.in
34
CLEANFILES = alm.desktop alm-ccpanel.desktop
36
check: $(desktop_DATA)
37
for desktop in $(desktop_DATA); do \
38
desktop-file-validate $${desktop}; \
41
gtk_update_icon_cache = gtk-update-icon-cache -f -t
42
install-data-hook: update-icon-cache
43
uninstall-hook: update-icon-cache
46
@-if test -z "$(DESTDIR)"; then \
47
echo "Updating Gtk icon cache."; \
48
$(gtk_update_icon_cache) $(datadir)/icons/hicolor; \
50
echo "*** Icon cache not updated. After (un)install, run these:"; \
51
echo "*** $(gtk_update_icon_cache) $(datadir)/icons/hicolor"; \