[gnome-games] build: add new Gnomine icons from last commit to build system



commit be131f029659916bb1fc8f83241333bad0c74c30
Author: Jason D. Clinton <me jasonclinton com>
Date:   Thu Mar 17 23:08:12 2011 -0500

    build: add new Gnomine icons from last commit to build system

 configure.in                                |    1 +
 gnomine/Makefile.am                         |    2 +-
 gnomine/gnomine.desktop.in.in               |    2 +-
 gnomine/icons/Makefile.am                   |   54 +++++++++++++++
 icons/Makefile.am                           |   11 ---
 icons/hicolor_apps_16x16_gnome-mines.png    |  Bin 736 -> 0 bytes
 icons/hicolor_apps_22x22_gnome-mines.png    |  Bin 1281 -> 0 bytes
 icons/hicolor_apps_24x24_gnome-mines.png    |  Bin 1325 -> 0 bytes
 icons/hicolor_apps_32x32_gnome-mines.png    |  Bin 2158 -> 0 bytes
 icons/hicolor_apps_48x48_gnome-mines.png    |  Bin 3398 -> 0 bytes
 icons/hicolor_apps_scalable_gnome-mines.svg |   93 ---------------------------
 11 files changed, 57 insertions(+), 106 deletions(-)
---
diff --git a/configure.in b/configure.in
index abfb1f7..b380450 100644
--- a/configure.in
+++ b/configure.in
@@ -1231,6 +1231,7 @@ gnect/data/Makefile
 gnect/pixmaps/Makefile
 gnect/help/Makefile
 gnomine/Makefile
+gnomine/icons/Makefile
 gnomine/help/Makefile
 swell-foop/Makefile
 swell-foop/help/Makefile
diff --git a/gnomine/Makefile.am b/gnomine/Makefile.am
index 2542ffe..9f4bacd 100644
--- a/gnomine/Makefile.am
+++ b/gnomine/Makefile.am
@@ -1,4 +1,4 @@
-SUBDIRS =
+SUBDIRS = icons
 
 if BUILD_HELP
 SUBDIRS += help
diff --git a/gnomine/gnomine.desktop.in.in b/gnomine/gnomine.desktop.in.in
index f31a26e..0b5cc7d 100644
--- a/gnomine/gnomine.desktop.in.in
+++ b/gnomine/gnomine.desktop.in.in
@@ -2,7 +2,7 @@
 _Name=Mines
 _Comment=Clear hidden mines from a minefield
 Exec=gnomine
-Icon=gnome-mines
+Icon=gnomine
 Terminal=false
 Type=Application
 Categories=GNOME;GTK;Game;LogicGame;
diff --git a/gnomine/icons/Makefile.am b/gnomine/icons/Makefile.am
new file mode 100644
index 0000000..533e74b
--- /dev/null
+++ b/gnomine/icons/Makefile.am
@@ -0,0 +1,54 @@
+NULL =
+
+public_icons_themes = hicolor
+
+dist_noinst_DATA = \
+	hicolor/16x16/apps/gnomine.png \
+	hicolor/22x22/apps/gnomine.png \
+	hicolor/24x24/apps/gnomine.png \
+	hicolor/32x32/apps/gnomine.png \
+	hicolor/48x48/apps/gnomine.png \
+	hicolor/256x256/apps/gnomine.png \
+	$(NULL)
+
+install-public-icons:
+	for icon in $(dist_noinst_DATA); do \
+		THEME=`echo $$icon | cut -d/ -f1`; \
+		SIZE=`echo $$icon | cut -d/ -f2`; \
+		CONTEXT=`echo $$icon | cut -d/ -f3`; \
+		ICONFILE=`echo $$icon | cut -d/ -f4`; \
+		mkdir -p $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT; \
+		$(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
+	done
+
+uninstall-public-icons:
+	-for icon in $(dist_noinst_DATA); do \
+		THEME=`echo $$icon | cut -d/ -f1`; \
+		SIZE=`echo $$icon | cut -d/ -f2`; \
+		CONTEXT=`echo $$icon | cut -d/ -f3`; \
+		ICONFILE=`echo $$icon | cut -d/ -f4`; \
+		rm -f $(DESTDIR)$(datadir)/icons/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
+	done
+
+install-data-local: install-public-icons
+uninstall-local: uninstall-public-icons
+
+install-data-hook: update-icon-cache
+uninstall-hook: update-icon-cache
+
+gtk_update_icon_cache = gtk-update-icon-cache -f -t
+
+update-icon-cache:
+	@-if test -z "$(DESTDIR)"; then \
+		echo "Updating Gtk icon cache."; \
+		for theme in $(public_icons_themes); do \
+			$(gtk_update_icon_cache) $(datadir)/icons/$$theme; \
+		done; \
+	else \
+		echo "*** Icon cache not updated.  After (un)install, run this:"; \
+		for theme in $(public_icons_themes); do \
+			echo "***   $(gtk_update_icon_cache) $(datadir)/icons/$$theme"; \
+		done; \
+	fi
+
+-include $(top_srcdir)/git.mk
diff --git a/icons/Makefile.am b/icons/Makefile.am
index f7d9d3d..43c9618 100644
--- a/icons/Makefile.am
+++ b/icons/Makefile.am
@@ -81,17 +81,6 @@ dist_noinst_DATA += \
 	$(NULL)
 endif
 
-if BUILD_GNOMINE
-dist_noinst_DATA += \
-	hicolor_apps_16x16_gnome-mines.png \
-	hicolor_apps_22x22_gnome-mines.png \
-	hicolor_apps_24x24_gnome-mines.png \
-	hicolor_apps_32x32_gnome-mines.png \
-	hicolor_apps_48x48_gnome-mines.png \
-	hicolor_apps_scalable_gnome-mines.svg \
-	$(NULL)
-endif
-
 if BUILD_GNOTRAVEX
 dist_noinst_DATA += \
 	hicolor_apps_16x16_gnome-tetravex.png \



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]