X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Smake;h=0b64221ca2c16358f80b1c2cef5b94e5e9e9ed4a;hb=refs%2Fheads%2Fctables6;hp=227affa36ba56bfe74a7991128e0b9d04a9dc11d;hpb=ad4ba793ea1dc89f46e0e44f27502707feb2ec69;p=pspp
diff --git a/Smake b/Smake
index 227affa36b..0b64221ca2 100644
--- a/Smake
+++ b/Smake
@@ -1,5 +1,25 @@
# -*- makefile -*-
+# 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 .
+#
+
+
+all: everything
+
# Adjust these to reflect where you've installed gnulib.
GNULIB = ../gnulib
GNULIB_TOOL = $(GNULIB)/gnulib-tool
@@ -17,14 +37,17 @@ GNULIB_MODULES = \
close \
configmake \
count-one-bits \
+ count-leading-zeros \
crc \
crypto/md4 \
crypto/rijndael \
dirname \
dtoastr \
+ dtotimespec \
environ \
fatal-signal \
fcntl \
+ fnmatch \
fpieee \
fprintf-posix \
full-read \
@@ -34,7 +57,8 @@ GNULIB_MODULES = \
fwriteerror \
getline \
getpass \
- gettext \
+ gettext-h \
+ gettime \
gettimeofday \
getopt-gnu \
gitlog-to-changelog \
@@ -45,11 +69,13 @@ GNULIB_MODULES = \
intprops \
inttostr \
localcharset \
+ localename \
mbchar \
mbiter \
memcasecmp \
memchr \
memchr2 \
+ memmem \
mempcpy \
memrchr \
minmax \
@@ -75,18 +101,22 @@ GNULIB_MODULES = \
strcasestr \
stpcpy \
strerror \
- strftime \
+ nstrftime \
strsep \
strtod \
strtok_r \
sys_stat \
tempname \
termios \
+ timespec \
+ timespec-add \
+ timespec-sub \
trunc \
unicase/u8-casecmp \
unicase/u8-casefold \
unicase/u8-tolower \
unicase/u8-toupper \
+ unicase/u8-totitle \
unictype/ctype-print \
unictype/category-of \
unigbrk/uc-is-grapheme-break \
@@ -106,6 +136,7 @@ GNULIB_MODULES = \
unitypes \
unlocked-io \
vasprintf-posix \
+ verify \
version-etc \
version-etc-fsf \
vfprintf-posix \
@@ -115,6 +146,7 @@ GNULIB_MODULES = \
vsprintf-posix \
xalloc \
xalloc-die \
+ xbinary-io \
xmalloca \
xmemdup0 \
xsize \
@@ -122,214 +154,186 @@ GNULIB_MODULES = \
xvasprintf
APP_ICONS = \
-src/ui/gui/icons/apps/32x32/pspp.png \
-src/ui/gui/icons/apps/22x22/pspp.png \
-src/ui/gui/icons/apps/24x24/pspp.png \
-src/ui/gui/icons/apps/256x256/pspp.png \
-src/ui/gui/icons/apps/16x16/pspp.png \
-src/ui/gui/icons/apps/48x48/pspp.png \
-src/ui/gui/icons/apps/scalable/pspp.svg
+src/ui/gui/icons/16x16/apps/pspp.png \
+src/ui/gui/icons/32x32/apps/pspp.png \
+src/ui/gui/icons/48x48/apps/pspp.png \
+src/ui/gui/icons/256x256/apps/pspp.png \
+src/ui/gui/icons/scalable/apps/pspp.svg
CATEGORY_ICONS = \
-src/ui/gui/icons/categories/16x16/align-left.png \
-src/ui/gui/icons/categories/16x16/align-center.png \
-src/ui/gui/icons/categories/16x16/align-right.png \
-src/ui/gui/icons/categories/16x16/measure-scale.png \
-src/ui/gui/icons/categories/16x16/measure-ordinal.png \
-src/ui/gui/icons/categories/16x16/measure-nominal.png \
-src/ui/gui/icons/categories/16x16/measure-date-scale.png \
-src/ui/gui/icons/categories/16x16/measure-date-nominal.png \
-src/ui/gui/icons/categories/16x16/measure-date-ordinal.png \
-src/ui/gui/icons/categories/16x16/measure-time-scale.png \
-src/ui/gui/icons/categories/16x16/measure-time-nominal.png \
-src/ui/gui/icons/categories/16x16/measure-time-ordinal.png \
-src/ui/gui/icons/categories/16x16/measure-string-nominal.png \
-src/ui/gui/icons/categories/16x16/measure-string-ordinal.png \
-src/ui/gui/icons/categories/16x16/measure-currency-scale.png \
-src/ui/gui/icons/categories/16x16/measure-currency-nominal.png \
-src/ui/gui/icons/categories/16x16/measure-currency-ordinal.png \
-src/ui/gui/icons/categories/16x16/role-input.png \
-src/ui/gui/icons/categories/16x16/role-target.png \
-src/ui/gui/icons/categories/16x16/role-both.png \
-src/ui/gui/icons/categories/16x16/role-none.png \
-src/ui/gui/icons/categories/16x16/role-partition.png \
-src/ui/gui/icons/categories/16x16/role-split.png
-
+src/ui/gui/icons/48x48/categories/align-left.png \
+src/ui/gui/icons/48x48/categories/align-center.png \
+src/ui/gui/icons/48x48/categories/align-right.png \
+src/ui/gui/icons/48x48/categories/measure-scale.png \
+src/ui/gui/icons/48x48/categories/measure-ordinal.png \
+src/ui/gui/icons/48x48/categories/measure-nominal.png \
+src/ui/gui/icons/48x48/categories/measure-date-scale.png \
+src/ui/gui/icons/48x48/categories/measure-date-nominal.png \
+src/ui/gui/icons/48x48/categories/measure-date-ordinal.png \
+src/ui/gui/icons/48x48/categories/measure-time-scale.png \
+src/ui/gui/icons/48x48/categories/measure-time-nominal.png \
+src/ui/gui/icons/48x48/categories/measure-time-ordinal.png \
+src/ui/gui/icons/48x48/categories/measure-string-nominal.png \
+src/ui/gui/icons/48x48/categories/measure-string-ordinal.png \
+src/ui/gui/icons/48x48/categories/measure-currency-scale.png \
+src/ui/gui/icons/48x48/categories/measure-currency-nominal.png \
+src/ui/gui/icons/48x48/categories/measure-currency-ordinal.png \
+src/ui/gui/icons/48x48/categories/role-input.png \
+src/ui/gui/icons/48x48/categories/role-target.png \
+src/ui/gui/icons/48x48/categories/role-both.png \
+src/ui/gui/icons/48x48/categories/role-none.png \
+src/ui/gui/icons/48x48/categories/role-partition.png \
+src/ui/gui/icons/48x48/categories/role-split.png \
+src/ui/gui/icons/scalable/categories/align-left.svg \
+src/ui/gui/icons/scalable/categories/align-center.svg \
+src/ui/gui/icons/scalable/categories/align-right.svg \
+src/ui/gui/icons/scalable/categories/measure-scale.svg \
+src/ui/gui/icons/scalable/categories/measure-ordinal.svg \
+src/ui/gui/icons/scalable/categories/measure-nominal.svg \
+src/ui/gui/icons/scalable/categories/measure-date-scale.svg \
+src/ui/gui/icons/scalable/categories/measure-date-nominal.svg \
+src/ui/gui/icons/scalable/categories/measure-date-ordinal.svg \
+src/ui/gui/icons/scalable/categories/measure-time-scale.svg \
+src/ui/gui/icons/scalable/categories/measure-time-nominal.svg \
+src/ui/gui/icons/scalable/categories/measure-time-ordinal.svg \
+src/ui/gui/icons/scalable/categories/measure-string-nominal.svg \
+src/ui/gui/icons/scalable/categories/measure-string-ordinal.svg \
+src/ui/gui/icons/scalable/categories/measure-currency-scale.svg \
+src/ui/gui/icons/scalable/categories/measure-currency-nominal.svg \
+src/ui/gui/icons/scalable/categories/measure-currency-ordinal.svg \
+src/ui/gui/icons/scalable/categories/role-input.svg \
+src/ui/gui/icons/scalable/categories/role-target.svg \
+src/ui/gui/icons/scalable/categories/role-both.svg \
+src/ui/gui/icons/scalable/categories/role-none.svg \
+src/ui/gui/icons/scalable/categories/role-partition.svg \
+src/ui/gui/icons/scalable/categories/role-split.svg
+
+# Mimetype icons have size dependent layouts
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/32x32/application-x-spss-zsav.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/22x22/application-x-spss-zsav.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/24x24/application-x-spss-zsav.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/256x256/application-x-spss-zsav.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/16x16/application-x-spss-zsav.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 \
-src/ui/gui/icons/mimetypes/48x48/application-x-spss-zsav.png \
-
-MISC_ICONS = src/ui/gui/icons/splash.png
+src/ui/gui/icons/16x16/mimetypes/application-x-spss-por.png \
+src/ui/gui/icons/16x16/mimetypes/application-x-spss-sav.png \
+src/ui/gui/icons/16x16/mimetypes/application-x-spss-sps.png \
+src/ui/gui/icons/16x16/mimetypes/application-x-spss-zsav.png \
+src/ui/gui/icons/22x22/mimetypes/application-x-spss-por.png \
+src/ui/gui/icons/22x22/mimetypes/application-x-spss-sav.png \
+src/ui/gui/icons/22x22/mimetypes/application-x-spss-sps.png \
+src/ui/gui/icons/22x22/mimetypes/application-x-spss-zsav.png \
+src/ui/gui/icons/24x24/mimetypes/application-x-spss-por.png \
+src/ui/gui/icons/24x24/mimetypes/application-x-spss-sav.png \
+src/ui/gui/icons/24x24/mimetypes/application-x-spss-sps.png \
+src/ui/gui/icons/24x24/mimetypes/application-x-spss-zsav.png \
+src/ui/gui/icons/32x32/mimetypes/application-x-spss-por.png \
+src/ui/gui/icons/32x32/mimetypes/application-x-spss-sav.png \
+src/ui/gui/icons/32x32/mimetypes/application-x-spss-sps.png \
+src/ui/gui/icons/32x32/mimetypes/application-x-spss-zsav.png \
+src/ui/gui/icons/48x48/mimetypes/application-x-spss-por.png \
+src/ui/gui/icons/48x48/mimetypes/application-x-spss-sav.png \
+src/ui/gui/icons/48x48/mimetypes/application-x-spss-sps.png \
+src/ui/gui/icons/48x48/mimetypes/application-x-spss-zsav.png \
+src/ui/gui/icons/256x256/mimetypes/application-x-spss-por.png \
+src/ui/gui/icons/256x256/mimetypes/application-x-spss-sav.png \
+src/ui/gui/icons/256x256/mimetypes/application-x-spss-sps.png \
+src/ui/gui/icons/256x256/mimetypes/application-x-spss-zsav.png
+
+src/ui/gui/artwork/splash-t.svg: src/ui/gui/artwork/splash.svg
+ cp $< $@
+src/ui/gui/artwork/splash-r.svg: src/ui/gui/artwork/splash.svg
+ sed -e '/inkscape:label="Overlay"/s/inline/none/' $< > $@
-ACTION_ICONS = \
-src/ui/gui/icons/actions/32x32/data-split-file.png \
-src/ui/gui/icons/actions/32x32/data-select-cases.png \
-src/ui/gui/icons/actions/32x32/data-weight-cases.png \
-src/ui/gui/icons/actions/32x32/transform-compute.png \
-src/ui/gui/icons/actions/32x32/edit-find.png \
-src/ui/gui/icons/actions/32x32/edit-go-to-case.png \
-src/ui/gui/icons/actions/32x32/edit-go-to-variable.png \
-src/ui/gui/icons/actions/32x32/edit-insert-case.png \
-src/ui/gui/icons/actions/32x32/edit-insert-variable.png \
-src/ui/gui/icons/actions/32x32/edit-cut.png \
-src/ui/gui/icons/actions/32x32/edit-copy.png \
-src/ui/gui/icons/actions/32x32/edit-paste.png \
-src/ui/gui/icons/actions/32x32/edit-undo.png \
-src/ui/gui/icons/actions/32x32/edit-redo.png \
-src/ui/gui/icons/actions/32x32/edit-select-all.png \
-src/ui/gui/icons/actions/32x32/file-open-data.png \
-src/ui/gui/icons/actions/32x32/file-save-data.png \
-src/ui/gui/icons/actions/32x32/file-export-data.png \
-src/ui/gui/icons/actions/32x32/file-print.png \
-src/ui/gui/icons/actions/32x32/view-value-labels.png \
-src/ui/gui/icons/actions/32x32/utilities-variables.png \
-src/ui/gui/icons/actions/32x32/run-all.png \
-src/ui/gui/icons/actions/24x24/data-split-file.png \
-src/ui/gui/icons/actions/24x24/data-select-cases.png \
-src/ui/gui/icons/actions/24x24/data-weight-cases.png \
-src/ui/gui/icons/actions/24x24/transform-compute.png \
-src/ui/gui/icons/actions/24x24/edit-find.png \
-src/ui/gui/icons/actions/24x24/edit-go-to-case.png \
-src/ui/gui/icons/actions/24x24/edit-go-to-variable.png \
-src/ui/gui/icons/actions/24x24/edit-insert-case.png \
-src/ui/gui/icons/actions/24x24/edit-insert-variable.png \
-src/ui/gui/icons/actions/24x24/edit-cut.png \
-src/ui/gui/icons/actions/24x24/edit-copy.png \
-src/ui/gui/icons/actions/24x24/edit-paste.png \
-src/ui/gui/icons/actions/24x24/edit-undo.png \
-src/ui/gui/icons/actions/24x24/edit-redo.png \
-src/ui/gui/icons/actions/24x24/edit-select-all.png \
-src/ui/gui/icons/actions/24x24/file-open-data.png \
-src/ui/gui/icons/actions/24x24/file-save-data.png \
-src/ui/gui/icons/actions/24x24/file-export-data.png \
-src/ui/gui/icons/actions/24x24/file-print.png \
-src/ui/gui/icons/actions/24x24/view-value-labels.png \
-src/ui/gui/icons/actions/24x24/utilities-variables.png \
-src/ui/gui/icons/actions/24x24/run-all.png \
-src/ui/gui/icons/actions/16x16/file-new-data.png \
-src/ui/gui/icons/actions/16x16/file-syntax-data.png \
-src/ui/gui/icons/actions/16x16/file-system-data.png \
-src/ui/gui/icons/actions/16x16/file-open-data.png \
-src/ui/gui/icons/actions/16x16/file-import-data.png \
-src/ui/gui/icons/actions/16x16/file-export-data.png \
-src/ui/gui/icons/actions/16x16/file-save-data.png \
-src/ui/gui/icons/actions/16x16/file-save-as.png \
-src/ui/gui/icons/actions/16x16/file-print.png \
-src/ui/gui/icons/actions/16x16/file-rename-data-set.png \
-src/ui/gui/icons/actions/16x16/file-display-information.png \
-src/ui/gui/icons/actions/16x16/display-information-working-file.png \
-src/ui/gui/icons/actions/16x16/display-information-external-file.png \
-src/ui/gui/icons/actions/16x16/file-recently-used.png \
-src/ui/gui/icons/actions/16x16/file-quit.png \
-src/ui/gui/icons/actions/16x16/file-display-information.png \
-src/ui/gui/icons/actions/16x16/edit-insert-variable.png \
-src/ui/gui/icons/actions/16x16/edit-insert-case.png \
-src/ui/gui/icons/actions/16x16/edit-go-to-variable.png \
-src/ui/gui/icons/actions/16x16/edit-go-to-case.png \
-src/ui/gui/icons/actions/16x16/edit-cut.png \
-src/ui/gui/icons/actions/16x16/edit-copy.png \
-src/ui/gui/icons/actions/16x16/edit-paste.png \
-src/ui/gui/icons/actions/16x16/edit-delete.png \
-src/ui/gui/icons/actions/16x16/edit-undo.png \
-src/ui/gui/icons/actions/16x16/edit-redo.png \
-src/ui/gui/icons/actions/16x16/edit-select-all.png \
-src/ui/gui/icons/actions/16x16/edit-clear.png \
-src/ui/gui/icons/actions/16x16/edit-find.png \
-src/ui/gui/icons/actions/16x16/view-font.png \
-src/ui/gui/icons/actions/16x16/view-value-labels.png \
-src/ui/gui/icons/actions/16x16/data-sort-cases.png \
-src/ui/gui/icons/actions/16x16/data-transpose.png \
-src/ui/gui/icons/actions/16x16/data-aggregate.png \
-src/ui/gui/icons/actions/16x16/data-split-file.png \
-src/ui/gui/icons/actions/16x16/data-select-cases.png \
-src/ui/gui/icons/actions/16x16/data-weight-cases.png \
-src/ui/gui/icons/actions/16x16/run-all.png \
-src/ui/gui/icons/actions/16x16/run-selection.png \
-src/ui/gui/icons/actions/16x16/run-current-line.png \
-src/ui/gui/icons/actions/16x16/run-to-end.png \
-src/ui/gui/icons/actions/16x16/transform-compute.png \
-src/ui/gui/icons/actions/16x16/transform-count.png \
-src/ui/gui/icons/actions/16x16/transform-rank-cases.png \
-src/ui/gui/icons/actions/16x16/transform-automatic-recode.png \
-src/ui/gui/icons/actions/16x16/transform-in-to-same-variables.png \
-src/ui/gui/icons/actions/16x16/transform-in-to-different-variables.png \
-src/ui/gui/icons/actions/16x16/transform-run-pending.png \
-src/ui/gui/icons/actions/16x16/analyze-descriptive-statistics.png \
-src/ui/gui/icons/actions/16x16/analyze-compare-means.png \
-src/ui/gui/icons/actions/16x16/analyze-univariate-analysis.png \
-src/ui/gui/icons/actions/16x16/analyze-bivariate-correlation.png \
-src/ui/gui/icons/actions/16x16/analyze-kmeans-cluster.png \
-src/ui/gui/icons/actions/16x16/analyze-factor-analysis.png \
-src/ui/gui/icons/actions/16x16/analyze-realiability.png \
-src/ui/gui/icons/actions/16x16/analyze-regression.png \
-src/ui/gui/icons/actions/16x16/analyze-non-parametric-statistics.png \
-src/ui/gui/icons/actions/16x16/analyze-roc-curve.png \
-src/ui/gui/icons/actions/16x16/utilities-variables.png \
-src/ui/gui/icons/actions/16x16/utilities-data-file-comments.png \
-src/ui/gui/icons/actions/16x16/windows-minimize-all.png \
-src/ui/gui/icons/actions/16x16/windows-split.png \
-src/ui/gui/icons/actions/16x16/help-reference-manual.png \
-src/ui/gui/icons/actions/16x16/help-about.png
+MISC_ICONS = src/ui/gui/icons/splash-t.png \
+ src/ui/gui/icons/splash-r.png
+ACTION_ICONS = \
+src/ui/gui/icons/24x24/actions/pspp-file-open-data.png \
+src/ui/gui/icons/24x24/actions/pspp-file-save-data.png \
+src/ui/gui/icons/24x24/actions/pspp-edit-go-to-variable.png \
+src/ui/gui/icons/24x24/actions/pspp-edit-go-to-case.png \
+src/ui/gui/icons/24x24/actions/pspp-edit-find.png \
+src/ui/gui/icons/24x24/actions/pspp-edit-insert-case.png \
+src/ui/gui/icons/24x24/actions/pspp-edit-insert-variable.png \
+src/ui/gui/icons/24x24/actions/pspp-data-split-file.png \
+src/ui/gui/icons/24x24/actions/pspp-data-weight-cases.png \
+src/ui/gui/icons/24x24/actions/pspp-view-value-labels.png \
+src/ui/gui/icons/48x48/actions/pspp-file-open-data.png \
+src/ui/gui/icons/48x48/actions/pspp-file-save-data.png \
+src/ui/gui/icons/48x48/actions/pspp-edit-go-to-variable.png \
+src/ui/gui/icons/48x48/actions/pspp-edit-go-to-case.png \
+src/ui/gui/icons/48x48/actions/pspp-edit-find.png \
+src/ui/gui/icons/48x48/actions/pspp-edit-insert-case.png \
+src/ui/gui/icons/48x48/actions/pspp-edit-insert-variable.png \
+src/ui/gui/icons/48x48/actions/pspp-data-split-file.png \
+src/ui/gui/icons/48x48/actions/pspp-data-weight-cases.png \
+src/ui/gui/icons/48x48/actions/pspp-view-value-labels.png \
+src/ui/gui/icons/96x96/actions/pspp-file-open-data.png \
+src/ui/gui/icons/96x96/actions/pspp-file-save-data.png \
+src/ui/gui/icons/96x96/actions/pspp-edit-go-to-variable.png \
+src/ui/gui/icons/96x96/actions/pspp-edit-go-to-case.png \
+src/ui/gui/icons/96x96/actions/pspp-edit-find.png \
+src/ui/gui/icons/96x96/actions/pspp-edit-insert-case.png \
+src/ui/gui/icons/96x96/actions/pspp-edit-insert-variable.png \
+src/ui/gui/icons/96x96/actions/pspp-data-split-file.png \
+src/ui/gui/icons/96x96/actions/pspp-data-weight-cases.png \
+src/ui/gui/icons/96x96/actions/pspp-view-value-labels.png \
+src/ui/gui/icons/scalable/actions/pspp-file-open-data.svg \
+src/ui/gui/icons/scalable/actions/pspp-file-save-data.svg \
+src/ui/gui/icons/scalable/actions/pspp-edit-go-to-variable.svg \
+src/ui/gui/icons/scalable/actions/pspp-edit-go-to-case.svg \
+src/ui/gui/icons/scalable/actions/pspp-edit-find.svg \
+src/ui/gui/icons/scalable/actions/pspp-edit-insert-case.svg \
+src/ui/gui/icons/scalable/actions/pspp-edit-insert-variable.svg \
+src/ui/gui/icons/scalable/actions/pspp-data-split-file.svg \
+src/ui/gui/icons/scalable/actions/pspp-data-weight-cases.svg \
+src/ui/gui/icons/scalable/actions/pspp-view-value-labels.svg
ICONS=$(CATEGORY_ICONS) $(ACTION_ICONS) $(MIMETYPE_ICONS) $(APP_ICONS) $(MISC_ICONS)
-all: prep_ph icons
- $(MAKE) -f Smake Makefile.in configure
+ICON_SOURCES = $(wildcard src/ui/gui/artwork/*/*/*.svg)
+ICON_SOURCES += $(wildcard src/ui/gui/artwork/splash*.svg)
-icons: $(ICONS) src/ui/gui/icons/icon-names.c
+everything: prep_ph icons
+ $(MAKE) -f Smake Makefile.in configure
-src/ui/gui/icons/icon-names.c: $(MAKEFILE_LIST)
- $(RM) -f $@
- printf '/* This is a generated file. Do not edit. */\n' >> $@
- printf '#include "icon-names.h"\n\n' >> $@
- build-aux/icon-list action actions $(ACTION_ICONS) >> $@
- build-aux/icon-list category categories $(CATEGORY_ICONS) >> $@
+icons: $(ICONS)
+clean-icons:
+ rm -f $(ICONS)
+.PHONY: icons clean-icons
src/ui/gui/icons/manifest: $(MAKEFILE_LIST)
$(RM) $@
printf '# This is a generated file. Do not edit.\n' >> $@
printf 'icons =' >> $@
for i in $(ICONS); do \
- printf ' \\\n\t '$$i >> $@; \
+ 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/%' >> $@ ; \
+ for i in $(ICON_SOURCES); do \
+ printf ' \\\n\t '$$i >> $@ ;\
done
echo ' ' >> $@
echo >> $@
+
+src/ui/gui/resources.xml: $(ICONS)
+ printf '\n' > $@
+ printf '\n' >> $@
+ printf ' \n' >> $@
+ for x in $^; do \
+ z=`echo "$$x" | sed -e 's%src/ui/gui/%%'` ; \
+ printf " $$z\n" >> $@ ; \
+ done
+ printf ' \n' >> $@
+ printf '\n' >> $@
+
+
.PHONY: prep_ph
-prep_ph:
+prep_ph:
test -e ChangeLog || touch ChangeLog
test -d m4 || mkdir m4
touch m4/Makefile.am
+ touch build-aux/config.rpath
$(GNULIB_TOOL) --add-import --no-changelog --m4-base=gl/m4 \
--source-base=gl --lib=libgl --tests-base=tests \
--doc-base=gl/doc --aux-dir=build-aux \
@@ -353,7 +357,7 @@ configure: configure.ac aclocal.m4
config.h.in: configure.ac
autoheader
-Makefile.in: Makefile.am config.h.in aclocal.m4 src/ui/gui/icons/manifest
+Makefile.in: Makefile.am config.h.in aclocal.m4 src/ui/gui/resources.xml src/ui/gui/icons/manifest
automake --add-missing --copy --no-force --include-deps
@@ -379,31 +383,36 @@ _debug: all
-PO_FILES = po/ChangeLog \
-po/Rules-quot po/boldquot.sed \
+PO_FILES = po/Rules-quot po/boldquot.sed \
po/cat-id-tbl.c po/en@boldquot.header po/en@quot.header \
po/insert-header.sin po/quot.sed po/remove-potcdate.sin po/stamp-po \
po/Makevars.template po/pspp.pot
-clean:
+clean: clean-icons
rm -f config.sub config.guess config.rpath
rm -fr autom4te.cache
rm -f aclocal.m4
rm -f missing mkinstalldirs
rm -f install-sh
- rm -f configure Makefile
+ rm -f configure Makefile
rm -f depcomp
rm -rf intl gl
rm -f m4/*.m4
- rm -f $(PO_FILES) po/*.gmo
+ rm -f $(PO_FILES) po/*.gmo
rm -f mdate-sh texinfo.tex
rm -f doc/stamp-vti
rm -f config.h.in~
rm -f config.h.in
- find . -name Makefile.in -exec rm -f {} \;
- rm -f compile
- rm -f ltmain.sh
- rm -f reloc-ldflags install-reloc
+ rm -f gl/Makefile.in
+ rm -f Makefile.in
+ rm -f build-aux/compile
+ rm -f build-aux/ltmain.sh
+ rm -f build-aux/reloc-ldflags
+ rm -f build-aux/install-reloc
+ rm -f build-aux/config.rpath
+ rm -f build-aux/config.libpath
+ rm -f build-aux/libtool-reloc
+ rm -f build-aux/gitlog-to-changelog
.PHONY: all gettextize clean
@@ -414,11 +423,66 @@ clean:
#svg2png=convert -background transparent $1 $3
+# Graphical layout of icons and our portfolio
+# ===========================================
+#
+# We have two different kinds of icons in our artwork collection
+#
+# a) The mimetype icons have a different graphical layout depending on resolution
+# This assumes that a higher resolution means a bigger size. On the bigger
+# size you can identify more details and this is used in the design.
+# b) Icons which are designed based on 16x16 pixels which are just scaled
+# This are all other icons.
+#
+# Icon resolutions
+#
+# The different icon resolutions are historically derived for bitmaps when an icon
+# is displayed in different sizes. Then a scaled version of the icon requires a new
+# bitmap image. All our icons are now svg type and can be scaled from one svg file as
+# the names suggests - scalable vector format.
+#
+# The strategy for pspp gui
+#
+# All icons which are simply scaled provide a default 48x48 bitmap png image plus
+# an svg version in the scalable directory.
+# The mimetype icons with different layouts provide png bitmaps in their original resolutions
+#
+# The artwork directory contains only the pure source svg files. No copies and no
+# version has another size indication although it is an svg.
+#
+# => mimetype icons are located in 16x16, 32x32, ... , 256x256 (different designs)
+# => all others are in scaled (just one design svg)
+#
+
+# Rule for icons with size dependent graphical design
src/ui/gui/icons/%.png: src/ui/gui/artwork/%.svg build-aux/svg2png src/ui/gui/icons/COPYING_CCBYSA3
mkdir -p $(dir $@)
build-aux/svg2png "$<" "$(lastword $^)" "$@"
+# Rules for icons which are simply scaled - Attention multitarget would trigger only once...
+src/ui/gui/icons/16x16/%.png : src/ui/gui/artwork/scalable/%.svg build-aux/svg2png src/ui/gui/icons/COPYING_CCBYSA3
+ mkdir -p $(dir $@)
+ build-aux/svg2png "$<" "$(lastword $^)" "$@"
+src/ui/gui/icons/22x22/%.png : src/ui/gui/artwork/scalable/%.svg build-aux/svg2png src/ui/gui/icons/COPYING_CCBYSA3
+ mkdir -p $(dir $@)
+ build-aux/svg2png "$<" "$(lastword $^)" "$@"
+src/ui/gui/icons/24x24/%.png : src/ui/gui/artwork/scalable/%.svg build-aux/svg2png src/ui/gui/icons/COPYING_CCBYSA3
+ mkdir -p $(dir $@)
+ build-aux/svg2png "$<" "$(lastword $^)" "$@"
+src/ui/gui/icons/32x32/%.png : src/ui/gui/artwork/scalable/%.svg build-aux/svg2png src/ui/gui/icons/COPYING_CCBYSA3
+ mkdir -p $(dir $@)
+ build-aux/svg2png "$<" "$(lastword $^)" "$@"
+src/ui/gui/icons/48x48/%.png : src/ui/gui/artwork/scalable/%.svg build-aux/svg2png src/ui/gui/icons/COPYING_CCBYSA3
+ mkdir -p $(dir $@)
+ build-aux/svg2png "$<" "$(lastword $^)" "$@"
+src/ui/gui/icons/96x96/%.png : src/ui/gui/artwork/scalable/%.svg build-aux/svg2png src/ui/gui/icons/COPYING_CCBYSA3
+ mkdir -p $(dir $@)
+ build-aux/svg2png "$<" "$(lastword $^)" "$@"
+src/ui/gui/icons/256x256/%.png : src/ui/gui/artwork/scalable/%.svg build-aux/svg2png src/ui/gui/icons/COPYING_CCBYSA3
+ mkdir -p $(dir $@)
+ build-aux/svg2png "$<" "$(lastword $^)" "$@"
+# Copy svg
src/ui/gui/icons/%.svg: src/ui/gui/artwork/%.svg
mkdir -p $(dir $@)
cp $< $@