From: John Darrington Date: Thu, 25 Jul 2013 18:50:17 +0000 (+0200) Subject: Added mimetype icons X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;ds=sidebyside;h=76dbb1be016ad9b0d22d43d08414c293807c5a0a;hp=0cd715175f1f9f1ed2eff7ecdaaf755a2cb79d64;p=pspp Added mimetype icons Added some icons to represent pspp file types in file managers etc. --- diff --git a/README.Git b/README.Git index 8da08cf9fe..38db96d0ec 100644 --- a/README.Git +++ b/README.Git @@ -23,6 +23,8 @@ following: * Texinfo 4.7 or later, to build the documentation. + * Gimp -- 2.8.2 is known to work + After you install PSPP's prerequisites, you must obtain a copy of Gnulib, then bootstrap the tree, as described in the sections below. After that, you may follow the procedure described in INSTALL. diff --git a/Smake b/Smake index 47821265bc..3991dd4c03 100644 --- a/Smake +++ b/Smake @@ -118,9 +118,53 @@ GNULIB_MODULES = \ xstrndup \ xvasprintf -all: prep_ph + + +MIMETYPE_ICONS = \ +src/ui/gui/icons/mimetypes/32x32/application-x-spss-por.png \ +src/ui/gui/icons/mimetypes/32x32/application-x-spss-sav.png \ +src/ui/gui/icons/mimetypes/32x32/application-x-spss-sps.png \ +src/ui/gui/icons/mimetypes/22x22/application-x-spss-por.png \ +src/ui/gui/icons/mimetypes/22x22/application-x-spss-sav.png \ +src/ui/gui/icons/mimetypes/22x22/application-x-spss-sps.png \ +src/ui/gui/icons/mimetypes/24x24/application-x-spss-por.png \ +src/ui/gui/icons/mimetypes/24x24/application-x-spss-sav.png \ +src/ui/gui/icons/mimetypes/24x24/application-x-spss-sps.png \ +src/ui/gui/icons/mimetypes/256x256/application-x-spss-por.png \ +src/ui/gui/icons/mimetypes/256x256/application-x-spss-sav.png \ +src/ui/gui/icons/mimetypes/256x256/application-x-spss-sps.png \ +src/ui/gui/icons/mimetypes/16x16/application-x-spss-por.png \ +src/ui/gui/icons/mimetypes/16x16/application-x-spss-sav.png \ +src/ui/gui/icons/mimetypes/16x16/application-x-spss-sps.png \ +src/ui/gui/icons/mimetypes/48x48/application-x-spss-por.png \ +src/ui/gui/icons/mimetypes/48x48/application-x-spss-sav.png \ +src/ui/gui/icons/mimetypes/48x48/application-x-spss-sps.png \ + + +ICONS=$(MIMETYPE_ICONS) + + +all: prep_ph icons $(MAKE) -f Smake Makefile.in configure +icons: $(ICONS) + +src/ui/gui/icons/manifest: + $(RM) $@ + printf '# This is a generated file. Do not edit.\n' >> $@ + printf 'icons =' >> $@ + for i in $(ICONS); do \ + printf ' \\\n\t '$$i >> $@; \ + done + echo >> $@ + echo >> $@ + printf 'icon_srcs = ' >> $@ + for i in $(ICONS); do \ + printf ' \\\n\t '$$i | sed -e 's/\.png$$/.svg/' -e 's%/icons/%/artwork/%' >> $@ ; \ + done + echo ' ' >> $@ + echo >> $@ + .PHONY: prep_ph prep_ph: test -e ChangeLog || touch ChangeLog @@ -149,7 +193,7 @@ configure: configure.ac aclocal.m4 config.h.in: configure.ac autoheader -Makefile.in: Makefile.am config.h.in aclocal.m4 +Makefile.in: Makefile.am config.h.in aclocal.m4 src/ui/gui/icons/manifest automake --add-missing --copy --no-force --include-deps @@ -173,6 +217,8 @@ _debug: all test -d _debug || mkdir _debug cd _debug && ../configure $(CONFIGUREFLAGS) --enable-debug + + PO_FILES = po/ChangeLog \ po/Rules-quot po/boldquot.sed \ po/cat-id-tbl.c po/en@boldquot.header po/en@quot.header \ @@ -200,3 +246,8 @@ clean: rm -f reloc-ldflags install-reloc .PHONY: all gettextize clean + +src/ui/gui/icons/%.png: src/ui/gui/artwork/%.svg src/ui/gui/icons/COPYING_CCBYSA3 + mkdir -p $(dir $@) + gimp -i -b '(let* ((image (car (gimp-file-load 1 "$<" "$<")))) (gimp-image-attach-parasite image (list "gimp-comment" 0 "$(shell cat $(lastword $^))" )) (gimp-file-save 1 image (car (gimp-image-get-active-drawable image)) "$@" "$@")) (gimp-quit 1)' + diff --git a/src/ui/gui/artwork/mimetypes/16x16/application-x-spss-por.svg b/src/ui/gui/artwork/mimetypes/16x16/application-x-spss-por.svg new file mode 100644 index 0000000000..9f4303ebc3 --- /dev/null +++ b/src/ui/gui/artwork/mimetypes/16x16/application-x-spss-por.svg @@ -0,0 +1,228 @@ + + + + + SPSS data portable file (*.por) + + + + + + image/svg+xml + + SPSS data portable file (*.por) + Derechos de autoría a Lapo Calamandrei por icono base (pieza de papel). + + + Bastián Díaz + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/ui/gui/artwork/mimetypes/16x16/application-x-spss-sav.svg b/src/ui/gui/artwork/mimetypes/16x16/application-x-spss-sav.svg new file mode 100644 index 0000000000..10cea61ddb --- /dev/null +++ b/src/ui/gui/artwork/mimetypes/16x16/application-x-spss-sav.svg @@ -0,0 +1,228 @@ + + + + + SPSS data file (*.sav) + + + + + + image/svg+xml + + SPSS data file (*.sav) + Derechos de autoría a Lapo Calamandrei por icono base (pieza de papel). + + + Bastián Díaz + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/ui/gui/artwork/mimetypes/16x16/application-x-spss-sps.svg b/src/ui/gui/artwork/mimetypes/16x16/application-x-spss-sps.svg new file mode 100644 index 0000000000..4fc14572f6 --- /dev/null +++ b/src/ui/gui/artwork/mimetypes/16x16/application-x-spss-sps.svg @@ -0,0 +1,156 @@ + + + + + SPSS syntaxis file (*.sps) + + + + + + image/svg+xml + + SPSS syntaxis file (*.sps) + Derechos de autoría a Lapo Calamandrei por icono base (pieza de papel). + + + Bastián Díaz + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/ui/gui/artwork/mimetypes/22x22/application-x-spss-por.svg b/src/ui/gui/artwork/mimetypes/22x22/application-x-spss-por.svg new file mode 100644 index 0000000000..31434a8240 --- /dev/null +++ b/src/ui/gui/artwork/mimetypes/22x22/application-x-spss-por.svg @@ -0,0 +1,368 @@ + + + + + SPSS data portable file (*.por) + + + + + + image/svg+xml + + SPSS data portable file (*.por) + Derechos de autoría a Lapo Calamandrei por icono base (pieza de papel). + + + Bastián Díaz + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/ui/gui/artwork/mimetypes/22x22/application-x-spss-sav.svg b/src/ui/gui/artwork/mimetypes/22x22/application-x-spss-sav.svg new file mode 100644 index 0000000000..8288bad7cd --- /dev/null +++ b/src/ui/gui/artwork/mimetypes/22x22/application-x-spss-sav.svg @@ -0,0 +1,368 @@ + + + + + SPSS data file (*.sav) + + + + + + image/svg+xml + + SPSS data file (*.sav) + Derechos de autoría a Lapo Calamandrei por icono base (pieza de papel). + + + Bastián Díaz + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/ui/gui/artwork/mimetypes/22x22/application-x-spss-sps.svg b/src/ui/gui/artwork/mimetypes/22x22/application-x-spss-sps.svg new file mode 100644 index 0000000000..0e6c4fa829 --- /dev/null +++ b/src/ui/gui/artwork/mimetypes/22x22/application-x-spss-sps.svg @@ -0,0 +1,370 @@ + + + + + SPSS syntaxis file (*.sps) + + + + + + image/svg+xml + + SPSS syntaxis file (*.sps) + Derechos de autoría a Lapo Calamandrei por icono base (pieza de papel). + + + Bastián Díaz + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/ui/gui/artwork/mimetypes/24x24/application-x-spss-por.svg b/src/ui/gui/artwork/mimetypes/24x24/application-x-spss-por.svg new file mode 100644 index 0000000000..999f768e64 --- /dev/null +++ b/src/ui/gui/artwork/mimetypes/24x24/application-x-spss-por.svg @@ -0,0 +1,368 @@ + + + + + SPSS data portable file (*.por) + + + + + + image/svg+xml + + SPSS data portable file (*.por) + Derechos de autoría a Lapo Calamandrei por icono base (pieza de papel). + + + Bastián Díaz + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/ui/gui/artwork/mimetypes/24x24/application-x-spss-sav.svg b/src/ui/gui/artwork/mimetypes/24x24/application-x-spss-sav.svg new file mode 100644 index 0000000000..664ea12214 --- /dev/null +++ b/src/ui/gui/artwork/mimetypes/24x24/application-x-spss-sav.svg @@ -0,0 +1,368 @@ + + + + + SPSS data file (*.sav) + + + + + + image/svg+xml + + SPSS data file (*.sav) + Derechos de autoría a Lapo Calamandrei por icono base (pieza de papel). + + + Bastián Díaz + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/ui/gui/artwork/mimetypes/24x24/application-x-spss-sps.svg b/src/ui/gui/artwork/mimetypes/24x24/application-x-spss-sps.svg new file mode 100644 index 0000000000..1c38c79515 --- /dev/null +++ b/src/ui/gui/artwork/mimetypes/24x24/application-x-spss-sps.svg @@ -0,0 +1,369 @@ + + + + + SPSS syntaxis file (*.sps) + + + + + + image/svg+xml + + SPSS syntaxis file (*.sps) + Derechos de autoría a Lapo Calamandrei por icono base (pieza de papel). + + + Bastián Díaz + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/ui/gui/artwork/mimetypes/256x256/application-x-spss-por.svg b/src/ui/gui/artwork/mimetypes/256x256/application-x-spss-por.svg new file mode 100644 index 0000000000..c7fa1a3cd1 --- /dev/null +++ b/src/ui/gui/artwork/mimetypes/256x256/application-x-spss-por.svg @@ -0,0 +1,513 @@ + + + + + SPSS data portable file (*.por) + + + + + + image/svg+xml + + SPSS data portable file (*.por) + Derechos de autoría a Lapo Calamandrei por icono base (pieza de papel). + + + Bastián Díaz + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/ui/gui/artwork/mimetypes/256x256/application-x-spss-sav.svg b/src/ui/gui/artwork/mimetypes/256x256/application-x-spss-sav.svg new file mode 100644 index 0000000000..be043a6de3 --- /dev/null +++ b/src/ui/gui/artwork/mimetypes/256x256/application-x-spss-sav.svg @@ -0,0 +1,513 @@ + + + + + SPSS data file (*.sav) + + + + + + image/svg+xml + + SPSS data file (*.sav) + Derechos de autoría a Lapo Calamandrei por icono base (pieza de papel). + + + Bastián Díaz + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/ui/gui/artwork/mimetypes/256x256/application-x-spss-sps.svg b/src/ui/gui/artwork/mimetypes/256x256/application-x-spss-sps.svg new file mode 100644 index 0000000000..0d648083b7 --- /dev/null +++ b/src/ui/gui/artwork/mimetypes/256x256/application-x-spss-sps.svg @@ -0,0 +1,517 @@ + + + + + SPSS syntaxis file (*.sps) + + + + + + image/svg+xml + + SPSS syntaxis file (*.sps) + Derechos de autoría a Lapo Calamandrei por icono base (pieza de papel). + + + Bastián Díaz + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/ui/gui/artwork/mimetypes/32x32/application-x-spss-por.svg b/src/ui/gui/artwork/mimetypes/32x32/application-x-spss-por.svg new file mode 100644 index 0000000000..2cfcb7f435 --- /dev/null +++ b/src/ui/gui/artwork/mimetypes/32x32/application-x-spss-por.svg @@ -0,0 +1,487 @@ + + + + + SPSS data portable file (*.por) + + + + + + image/svg+xml + + SPSS data portable file (*.por) + Derechos de autoría a Lapo Calamandrei por icono base (pieza de papel). + + + Bastián Díaz + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/ui/gui/artwork/mimetypes/32x32/application-x-spss-sav.svg b/src/ui/gui/artwork/mimetypes/32x32/application-x-spss-sav.svg new file mode 100644 index 0000000000..0bfea44607 --- /dev/null +++ b/src/ui/gui/artwork/mimetypes/32x32/application-x-spss-sav.svg @@ -0,0 +1,487 @@ + + + + + SPSS data file (*.sav) + + + + + + image/svg+xml + + SPSS data file (*.sav) + Derechos de autoría a Lapo Calamandrei por icono base (pieza de papel). + + + Bastián Díaz + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/ui/gui/artwork/mimetypes/32x32/application-x-spss-sps.svg b/src/ui/gui/artwork/mimetypes/32x32/application-x-spss-sps.svg new file mode 100644 index 0000000000..c2daea8ed4 --- /dev/null +++ b/src/ui/gui/artwork/mimetypes/32x32/application-x-spss-sps.svg @@ -0,0 +1,488 @@ + + + + + SPSS syntaxis file (*.sps) + + + + + + image/svg+xml + + SPSS syntaxis file (*.sps) + Derechos de autoría a Lapo Calamandrei por icono base (pieza de papel). + + + Bastián Díaz + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/ui/gui/artwork/mimetypes/48x48/application-x-spss-por.svg b/src/ui/gui/artwork/mimetypes/48x48/application-x-spss-por.svg new file mode 100644 index 0000000000..45118cb3f1 --- /dev/null +++ b/src/ui/gui/artwork/mimetypes/48x48/application-x-spss-por.svg @@ -0,0 +1,519 @@ + + + + + SPSS data portable file (*.por) + + + + + + image/svg+xml + + SPSS data portable file (*.por) + Derechos de autoría a Lapo Calamandrei por icono base (pieza de papel). + + + Bastián Díaz + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/ui/gui/artwork/mimetypes/48x48/application-x-spss-sav.svg b/src/ui/gui/artwork/mimetypes/48x48/application-x-spss-sav.svg new file mode 100644 index 0000000000..16f9ac2a5c --- /dev/null +++ b/src/ui/gui/artwork/mimetypes/48x48/application-x-spss-sav.svg @@ -0,0 +1,519 @@ + + + + + SPSS data file (*.sav) + + + + + + image/svg+xml + + SPSS data file (*.sav) + Derechos de autoría a Lapo Calamandrei por icono base (pieza de papel). + + + Bastián Díaz + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/ui/gui/artwork/mimetypes/48x48/application-x-spss-sps.svg b/src/ui/gui/artwork/mimetypes/48x48/application-x-spss-sps.svg new file mode 100644 index 0000000000..eb1d1b1032 --- /dev/null +++ b/src/ui/gui/artwork/mimetypes/48x48/application-x-spss-sps.svg @@ -0,0 +1,520 @@ + + + + + SPSS syntaxis file (*.sps) + + + + + + image/svg+xml + + SPSS syntaxis file (*.sps) + Derechos de autoría a Lapo Calamandrei por icono base (pieza de papel). + + + Bastián Díaz + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/ui/gui/automake.mk b/src/ui/gui/automake.mk index 694ca57697..95f0a0fe90 100644 --- a/src/ui/gui/automake.mk +++ b/src/ui/gui/automake.mk @@ -98,34 +98,35 @@ src_ui_gui_spreadsheet_test_SOURCES = src/ui/gui/spreadsheet-test.c src/ui/gui/p src_ui_gui_psppiredir = $(pkgdatadir) -themedir = $(DESTDIR)$(datadir)/icons/hicolor -context = pspp +thethemedir = $(DESTDIR)$(datadir)/icons/hicolor +thecontext = pspp install-lang: $(INSTALL_DATA) $(top_srcdir)/src/ui/gui/pspp.lang $(DESTDIR)$(pkgdatadir) -install-icons: +install-legacy-icons: for size in 16x16 ; do \ - $(MKDIR_P) $(themedir)/$$size/$(context) ; \ - $(INSTALL_DATA) $(top_srcdir)/src/ui/gui/icons/$$size/* $(themedir)/$$size/$(context) ; \ - $(MKDIR_P) $(themedir)/$$size/apps ; \ - $(INSTALL_DATA) $(top_srcdir)/src/ui/gui/app-icons/$$size/pspp.png $(themedir)/$$size/apps ; \ + $(MKDIR_P) $(thetemedir)/$$size/$(thecontext) ; \ + $(INSTALL_DATA) $(top_srcdir)/src/ui/gui/icons/$$size/* $(thethemedir)/$$size/$(thecontext) ; \ + $(MKDIR_P) $(thethemedir)/$$size/apps ; \ + $(INSTALL_DATA) $(top_srcdir)/src/ui/gui/app-icons/$$size/pspp.png $(thethemedir)/$$size/apps ; \ done - if test -z "$(DESTDIR)" ; then \ - gtk-update-icon-cache --ignore-theme-index $(themedir); \ - fi -INSTALL_DATA_HOOKS += install-icons install-lang +INSTALL_DATA_HOOKS += install-legacy-icons install-lang -uninstall-icons: +uninstall-legacy-icons: for size in 16x16 ; do \ - rm -r -f $(themedir)/$$size/$(context); \ - rm -f $(themedir)/$$size/apps/pspp.png; \ + rm -r -f $(thethemedir)/$$size/$(thecontext); \ + rm -f $(thethemedir)/$$size/apps/pspp.png; \ done - gtk-update-icon-cache --ignore-theme-index $(themedir) -UNINSTALL_DATA_HOOKS += uninstall-icons +update-icon-cache: + if test -z "$(DESTDIR)" ; then \ + gtk-update-icon-cache --ignore-theme-index $(thethemedir); \ + fi + +UNINSTALL_DATA_HOOKS += uninstall-legacy-icons dist_src_ui_gui_psppire_DATA = \ $(UI_FILES) \ @@ -413,3 +414,8 @@ src/ui/gui/include/gtk/gtk.h: src/ui/gui/include/gtk/gtk.in.h CLEANFILES += src/ui/gui/include/gtk/gtk.h EXTRA_DIST += src/ui/gui/include/gtk/gtk.in.h +include $(top_srcdir)/src/ui/gui/icons/automake.mk + +UNINSTALL_DATA_HOOKS += update-icon-cache +INSTALL_DATA_HOOKS += update-icon-cache + diff --git a/src/ui/gui/icons/COPYING_CCBYSA3 b/src/ui/gui/icons/COPYING_CCBYSA3 new file mode 100644 index 0000000000..dab313d9f7 --- /dev/null +++ b/src/ui/gui/icons/COPYING_CCBYSA3 @@ -0,0 +1,4 @@ +This work is licenced under the Creative Commons Attribution-Share Alike 3.0 +United States License. To view a copy of this licence, visit +http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative +Commons, 171 Second Street, Suite 300, San Francisco, California 94105, USA. diff --git a/src/ui/gui/icons/automake.mk b/src/ui/gui/icons/automake.mk new file mode 100644 index 0000000000..541090d8a5 --- /dev/null +++ b/src/ui/gui/icons/automake.mk @@ -0,0 +1,55 @@ +include $(top_srcdir)/src/ui/gui/icons/manifest + +EXTRA_DIST += $(icons) $(icon_srcs) + +themedir = $(DESTDIR)$(datadir)/icons/hicolor + +sizes=16x16 22x22 24x24 32x32 48x48 256x256 + +install-mimetypes: + for size in $(sizes); do \ + $(MKDIR_P) $(themedir)/$$size/mimetypes ; \ + if (cd $(top_srcdir)/src/ui/gui/icons/mimetypes/$$size && \ + (test ! "`printf '%s %s %s' . .. *`" = '. .. *' || test -f '*')) 2> /dev/null ; then \ + $(INSTALL_DATA) $(top_srcdir)/src/ui/gui/icons/mimetypes/$$size/* $(themedir)/$$size/mimetypes ; \ + fi ; \ + done + + +uninstall-mimetypes: + for size in $(sizes); do \ + if (cd $(top_srcdir)/src/ui/gui/icons/mimetypes/$$size && \ + (test ! "`printf '%s %s %s' . .. *`" = '. .. *' || test -f '*')) 2> /dev/null ; then \ + rm -rf $(themedir)/$$size/mimetypes/application-x-spss-* ; \ + fi ; \ + done + + +install-icons: + for context in actions categories ; do \ + $(MKDIR_P) $(DESTDIR)$(pkgdatadir)/$$context; \ + for size in $(sizes); do \ + if (cd $(top_srcdir)/src/ui/gui/icons/$$context/$$size && \ + (test ! "`printf '%s %s %s' . .. *`" = '. .. *' || test -f '*')) 2> /dev/null ; then \ + $(MKDIR_P) $(DESTDIR)$(pkgdatadir)/$$context/$$size ; \ + $(INSTALL_DATA) $(top_srcdir)/src/ui/gui/icons/$$context/$$size/* $(DESTDIR)$(pkgdatadir)/$$context/$$size ; \ + fi ; \ + done ; \ + done + + + +uninstall-icons: + for context in actions categories ; do \ + for size in $(sizes); do \ + if (cd $(top_srcdir)/src/ui/gui/icons/$$context/$$size && \ + (test ! "`printf '%s %s %s' . .. *`" = '. .. *' || test -f '*')) 2> /dev/null ; then \ + rm -rf $(DESTDIR)$(pkgdatadir)/$$context/$$size ; \ + fi ; \ + done ; \ + done + + + +INSTALL_DATA_HOOKS += install-icons install-mimetypes +UNINSTALL_DATA_HOOKS += uninstall-icons uninstall-mimetypes