1
iconsdir = $(datadir)/icons
30
gtk_update_icon_cache = gtk-update-icon-cache -f -t $(iconsdir)/hicolor
33
@-if test -z "$(DESTDIR)"; then \
34
echo "Updating Gtk icon cache."; \
35
$(gtk_update_icon_cache); \
37
echo "*** Icon cache not updated. After (un)install, run this:"; \
38
echo "*** $(gtk_update_icon_cache)"; \
42
for icon in $(icons); do \
43
SIZE=`basename $$icon | cut -d. -f2`; \
44
FILE=`basename $$icon | cut -d. -f1,3`; \
45
if [ "$$SIZE" = "svg" ]; then \
49
SIZE="$${SIZE}x$${SIZE}"; \
51
mkdir -p $(DESTDIR)$(iconsdir)/hicolor/$$SIZE/apps/; \
52
$(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)$(iconsdir)/hicolor/$$SIZE/apps/$$FILE; \
56
for icon in $(icons); do \
57
SIZE=`basename $$icon | cut -d. -f2`; \
58
FILE=`basename $$icon | cut -d. -f1,3`; \
59
if [ "$$SIZE" = "svg" ]; then \
63
SIZE="$${SIZE}x$${SIZE}"; \
65
rm -f $(DESTDIR)$(iconsdir)/hicolor/$$SIZE/apps/$$FILE; \
68
install-data-local: install-icons update-icon-cache
70
uninstall-local: uninstall-icons update-icon-cache