X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Ficons%2Fautomake.mk;h=35d2331821717674cd787e4a258de8a4cbaa4346;hb=df43975b759384a68a14a5881feb4673e952587d;hp=b4845aa95e340808e7b3a3e6ac832eb71489f5c7;hpb=00fd6a404453624eeb7158958b94a6bdf9c41f98;p=pspp diff --git a/src/ui/gui/icons/automake.mk b/src/ui/gui/icons/automake.mk index b4845aa95e..35d2331821 100644 --- a/src/ui/gui/icons/automake.mk +++ b/src/ui/gui/icons/automake.mk @@ -1,31 +1,48 @@ -include $(top_srcdir)/src/ui/gui/icons/manifest +# PSPP - a program for statistical analysis. +# Copyright (C) 2017 Free Software Foundation, Inc. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +EXTRA_DIST += $(icons) $(icon_srcs) src/ui/gui/icons/COPYING_CCBYSA3 -EXTRA_DIST += $(icons) $(icon_srcs) +include $(top_srcdir)/src/ui/gui/icons/manifest themedir = $(DESTDIR)$(datadir)/icons/hicolor -sizes=16x16 22x22 24x24 32x32 48x48 256x256 +sizes=16x16 22x22 24x24 32x32 48x48 96x96 256x256 scalable install-ext-icons: for context in apps mimetypes; do \ - for size in $(sizes); 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 ; \ + if (cd $(top_srcdir)/src/ui/gui/icons/$$size/$$context && \ + (test ! "`printf '%s %s %s' . .. *`" = '. .. *' || test -f '*')) 2> /dev/null ; then \ + $(INSTALL_DATA) $(top_srcdir)/src/ui/gui/icons/$$size/$$context/* $(themedir)/$$size/$$context ; \ + fi ; \ + done ; \ done 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-* ; \ - fi ; \ - done ; \ + for size in $(sizes); do \ + if (cd $(top_srcdir)/src/ui/gui/icons/$$size/$$context && \ + (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 @@ -54,6 +71,22 @@ uninstall-icons: done - INSTALL_DATA_HOOKS += install-icons install-ext-icons UNINSTALL_DATA_HOOKS += uninstall-icons uninstall-ext-icons + +if building_gui +nodist_src_ui_gui_psppire_DATA = src/ui/gui/icons/splash.png + +src/ui/gui/icons/splash.png: $(top_srcdir)/src/ui/gui/icons/splash-t.png $(top_srcdir)/src/ui/gui/icons/splash-r.png Makefile + @$(MKDIR_P) src/ui/gui/icons + @case `echo $(VERSION) | $(SED) -e 's/[0-9][0-9]*\.[0-9]*\([0-9]\)\.[0-9][0-9]*/\1/'` in \ + [13579]) cp $(top_srcdir)/src/ui/gui/icons/splash-t.png $@ ; \ + ;;\ + *) cp $(top_srcdir)/src/ui/gui/icons/splash-r.png $@ ; \ + ;;\ +esac + +EXTRA_DIST += $(top_srcdir)/src/ui/gui/artwork/splash.svg $(icons) $(icon_srcs) + +endif +