summaryrefslogtreecommitdiffstats
path: root/icons/Makefile.am
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2014-11-02 15:51:08 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2014-11-02 15:51:08 +0100
commitf8fe77161cc70c315acebe6ff01477ec9cd82cc8 (patch)
tree28aee13658b02aa907525a1e8b15d621e7290806 /icons/Makefile.am
parentd41d56fdbefc1aa802460e740454fb1b38bf901c (diff)
Create qphotorec.desktop
Diffstat (limited to 'icons/Makefile.am')
-rw-r--r--icons/Makefile.am22
1 files changed, 22 insertions, 0 deletions
diff --git a/icons/Makefile.am b/icons/Makefile.am
index c260fa0..f6cfdd6 100644
--- a/icons/Makefile.am
+++ b/icons/Makefile.am
@@ -1 +1,23 @@
EXTRA_DIST = photorec.ico testdisk.ico
+
+iconsdir = $(datadir)/icons/hicolor
+
+nobase_dist_icons_DATA = 48x48/apps/qphotorec.png \
+ scalable/apps/qphotorec.svg
+
+gtk_update_icon_cache = gtk-update-icon-cache -f -t $(iconsdir)
+if USEQT
+ UPDATE_ICON_CACHE=update-icon-cache
+endif
+
+install-data-hook: $(UPDATE_ICON_CACHE)
+uninstall-hook: $(UPDATE_ICON_CACHE)
+
+update-icon-cache:
+ @-if test -z "$(DESTDIR)"; then \
+ echo "Updating GTK icon cache."; \
+ $(gtk_update_icon_cache) || : ; \
+ else \
+ echo "*** Icon cache not updated. After (un)install, run this:"; \
+ echo "*** $(gtk_update_icon_cache)"; \
+ fi