[gnome-control-center] Update icon cache only on MAINTAINER_MODE
- From: Alberto Ruiz <aruiz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] Update icon cache only on MAINTAINER_MODE
- Date: Wed, 5 Oct 2011 15:46:25 +0000 (UTC)
commit 3630015d942245be8c094c159379eb9288f2a977
Author: Alberto Ruiz <aruiz gnome org>
Date: Wed Oct 5 16:45:13 2011 +0100
Update icon cache only on MAINTAINER_MODE
panels/color/icons/Makefile.am | 3 +++
panels/display/Makefile.am | 2 ++
panels/online-accounts/icons/Makefile.am | 5 +++++
panels/power/icons/Makefile.am | 4 ++++
panels/sound/data/Makefile.am | 5 +++++
5 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/panels/color/icons/Makefile.am b/panels/color/icons/Makefile.am
index 0bd0d63..cbf6c9a 100644
--- a/panels/color/icons/Makefile.am
+++ b/panels/color/icons/Makefile.am
@@ -1,5 +1,7 @@
SUBDIRS = scalable 16x16 22x22 24x24 32x32 48x48 64x64 256x256
+if MAINTAINER_MODE
+
gtk_update_icon_cache = gtk-update-icon-cache -f -t $(pkgdatadir)/icons/hicolor
install-data-hook: update-icon-cache
@@ -13,3 +15,4 @@ update-icon-cache:
echo "*** $(gtk_update_icon_cache)"; \
fi
+endif
diff --git a/panels/display/Makefile.am b/panels/display/Makefile.am
index cd4e6e0..1196fa1 100644
--- a/panels/display/Makefile.am
+++ b/panels/display/Makefile.am
@@ -57,6 +57,7 @@ INCLUDES = $(PANEL_CFLAGS) \
CLEANFILES = $(Desktop_in_files) $(desktop_DATA)
+if MAINTAINER_MODE
gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
install-data-hook: update-icon-cache
uninstall-hook: update-icon-cache
@@ -68,6 +69,7 @@ update-icon-cache:
echo "*** Icon cache not updated. After (un)install, run this:"; \
echo "*** $(gtk_update_icon_cache)"; \
fi
+endif
EXTRA_DIST = foo-marshal.list
diff --git a/panels/online-accounts/icons/Makefile.am b/panels/online-accounts/icons/Makefile.am
index 604aa86..10789e2 100644
--- a/panels/online-accounts/icons/Makefile.am
+++ b/panels/online-accounts/icons/Makefile.am
@@ -3,6 +3,8 @@ SUBDIRS = 16x16 22x22 24x24 32x32 48x48 256x256
gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
+if MAINTAINER_MODE
+
install-data-hook:
@-if test -z "$(DESTDIR)"; then \
echo "Updating Gtk icon cache."; \
@@ -12,7 +14,10 @@ install-data-hook:
echo "*** $(gtk_update_icon_cache)"; \
fi
+endif
+
clean-local :
rm -f *~
+
-include $(top_srcdir)/git.mk
diff --git a/panels/power/icons/Makefile.am b/panels/power/icons/Makefile.am
index 604aa86..78ee00b 100644
--- a/panels/power/icons/Makefile.am
+++ b/panels/power/icons/Makefile.am
@@ -3,6 +3,8 @@ SUBDIRS = 16x16 22x22 24x24 32x32 48x48 256x256
gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
+if MAINTAINER_MODE
+
install-data-hook:
@-if test -z "$(DESTDIR)"; then \
echo "Updating Gtk icon cache."; \
@@ -15,4 +17,6 @@ install-data-hook:
clean-local :
rm -f *~
+endif
+
-include $(top_srcdir)/git.mk
diff --git a/panels/sound/data/Makefile.am b/panels/sound/data/Makefile.am
index d5522b2..49d7fb4 100644
--- a/panels/sound/data/Makefile.am
+++ b/panels/sound/data/Makefile.am
@@ -20,6 +20,9 @@ EXTRA_DIST = \
gnome-sound-panel.desktop.in.in \
$(NULL)
+
+if MAINTAINER_MODE
+
gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
install-data-hook: update-icon-cache
@@ -33,6 +36,8 @@ update-icon-cache:
echo "*** $(gtk_update_icon_cache)"; \
fi
+endif
+
CLEANFILES = \
gnome-sound-panel.desktop \
$(NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]