Don't update icon cache if installing to DESTDIR
authorAndy Spencer <andy753421@gmail.com>
Mon, 12 Sep 2011 01:33:18 +0000 (01:33 +0000)
committerAndy Spencer <andy753421@gmail.com>
Mon, 12 Sep 2011 01:33:18 +0000 (01:33 +0000)
data/Makefile.am

index f644750..0c451d2 100644 (file)
@@ -30,7 +30,9 @@ icon32_DATA = icons/32x32/aweather.png
 iconSC_DATA = icons/scalable/aweather.svg
 
 install-data-hook:
-       gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
+       if test -z "$(DESTDIR)"; then \
+               gtk-update-icon-cache -f -t $(datadir)/icons/hicolor; \
+       fi
 endif
 
 glade: