From d7975feaea007f7e190a1c4cf2ad0d63fea4752f Mon Sep 17 00:00:00 2001 From: TingPing Date: Sun, 29 Dec 2013 20:14:14 -0500 Subject: Update icon cache on install --- Makefile.am | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 000076f..f3109ed 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,6 +2,8 @@ SUBDIRS = src po ACLOCAL_AMFLAGS = -I m4 +UPDATE_ICON_CACHE = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor || : + EXTRA_ROOTDOC_FILES = \ HACKING \ DESIGN \ @@ -45,6 +47,14 @@ desktopdir = @datadir@/applications desktop_DATA = $(_DESKTOP_FILES) endif +if ENABLE_GUI +install-data-hook: + $(UPDATE_ICON_CACHE); + +uninstall-hook: + $(UPDATE_ICON_CACHE); +endif + # man page dist_man1_MANS = redshift.1 -- cgit v1.2.3-70-g09d2