X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fui%2Fgui%2Ficons%2Fautomake.mk;h=e09946bd9c5057c6d1e9a6cdc9973664b699945f;hb=159abf428abd3028a73d064508fac95e542d9f09;hp=541090d8a5cd5078ee00214617d3ccca2445872c;hpb=76dbb1be016ad9b0d22d43d08414c293807c5a0a;p=pspp diff --git a/src/ui/gui/icons/automake.mk b/src/ui/gui/icons/automake.mk index 541090d8a5..e09946bd9c 100644 --- a/src/ui/gui/icons/automake.mk +++ b/src/ui/gui/icons/automake.mk @@ -6,22 +6,27 @@ 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 ; \ +install-ext-icons: + for context in apps mimetypes; do \ + for size in $(sizes); do \ + $(MKDIR_P) $(themedir)/$$size/$$context ; \ + if (cd $(top_srcdir)/src/ui/gui/icons/$$context/$$size && \ + (test ! "`printf '%s %s %s' . .. *`" = '. .. *' || test -f '*')) 2> /dev/null ; then \ + $(INSTALL_DATA) $(top_srcdir)/src/ui/gui/icons/$$context/$$size/* $(themedir)/$$size/$$context ; \ + fi ; \ + done ; \ 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 ; \ +uninstall-ext-icons: + for context in apps mimetypes; 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 $(themedir)/$$size/$$context/application-x-spss-* ; \ + rm -rf $(themedir)/$$size/$$context/pspp* ; \ + fi ; \ + done ; \ done @@ -50,6 +55,17 @@ uninstall-icons: done +INSTALL_DATA_HOOKS += install-icons install-ext-icons +UNINSTALL_DATA_HOOKS += uninstall-icons uninstall-ext-icons + +if HAVE_GUI +dist_src_ui_gui_psppire_DATA += \ + $(top_srcdir)/src/ui/gui/icons/splash.png \ + $(top_srcdir)/src/ui/gui/icons/about-logo.png + +src_ui_gui_psppire_SOURCES += \ + src/ui/gui/icons/icon-names.c \ + src/ui/gui/icons/icon-names.h + +endif -INSTALL_DATA_HOOKS += install-icons install-mimetypes -UNINSTALL_DATA_HOOKS += uninstall-icons uninstall-mimetypes