]> Pileus Git - aweather/commitdiff
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 f6447507eca6260864509df364f4adb6c36fa64a..0c451d2926cbba9c8f3d59f2428057c8c0eb50c6 100644 (file)
@@ -30,7 +30,9 @@ icon32_DATA = icons/32x32/aweather.png
 iconSC_DATA = icons/scalable/aweather.svg
 
 install-data-hook:
 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:
 endif
 
 glade: