1
include $(top_srcdir)/Makefile.decl
3
iconsdir = $(datadir)/icons
29
EXTRA_DIST += $(icons)
32
gtk_update_icon_cache = gtk-update-icon-cache -f -t $(iconsdir)/hicolor
35
@-if test -z "$(DESTDIR)"; then \
36
echo "Updating Gtk icon cache."; \
37
$(gtk_update_icon_cache); \
39
echo "*** Icon cache not updated. After (un)install, run this:"; \
40
echo "*** $(gtk_update_icon_cache)"; \
44
for icon in $(icons); do \
45
SIZE=`basename $$icon | cut -d. -f2`; \
46
FILE=`basename $$icon | cut -d. -f1,3`; \
47
if [ "$$SIZE" = "svg" ]; then \
51
SIZE="$${SIZE}x$${SIZE}"; \
53
mkdir -p $(DESTDIR)$(iconsdir)/hicolor/$$SIZE/apps/; \
54
$(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)$(iconsdir)/hicolor/$$SIZE/apps/$$FILE; \
58
for icon in $(icons); do \
59
SIZE=`basename $$icon | cut -d. -f2`; \
60
FILE=`basename $$icon | cut -d. -f1,3`; \
61
if [ "$$SIZE" = "svg" ]; then \
65
SIZE="$${SIZE}x$${SIZE}"; \
67
rm -f $(DESTDIR)$(iconsdir)/hicolor/$$SIZE/apps/$$FILE; \
70
install-data-local: install-icons update-icon-cache
72
uninstall-local: uninstall-icons update-icon-cache