3 # Adjust these to reflect where you've installed gnulib.
5 GNULIB_TOOL = $(GNULIB)/gnulib-tool
87 unictype/ctype-print \
88 unictype/category-of \
89 unigbrk/uc-is-grapheme-break \
90 unilbrk/u8-possible-linebreaks \
102 uniwidth/u8-strwidth \
124 src/ui/gui/icons/mimetypes/32x32/application-x-spss-por.png \
125 src/ui/gui/icons/mimetypes/32x32/application-x-spss-sav.png \
126 src/ui/gui/icons/mimetypes/32x32/application-x-spss-sps.png \
127 src/ui/gui/icons/mimetypes/22x22/application-x-spss-por.png \
128 src/ui/gui/icons/mimetypes/22x22/application-x-spss-sav.png \
129 src/ui/gui/icons/mimetypes/22x22/application-x-spss-sps.png \
130 src/ui/gui/icons/mimetypes/24x24/application-x-spss-por.png \
131 src/ui/gui/icons/mimetypes/24x24/application-x-spss-sav.png \
132 src/ui/gui/icons/mimetypes/24x24/application-x-spss-sps.png \
133 src/ui/gui/icons/mimetypes/256x256/application-x-spss-por.png \
134 src/ui/gui/icons/mimetypes/256x256/application-x-spss-sav.png \
135 src/ui/gui/icons/mimetypes/256x256/application-x-spss-sps.png \
136 src/ui/gui/icons/mimetypes/16x16/application-x-spss-por.png \
137 src/ui/gui/icons/mimetypes/16x16/application-x-spss-sav.png \
138 src/ui/gui/icons/mimetypes/16x16/application-x-spss-sps.png \
139 src/ui/gui/icons/mimetypes/48x48/application-x-spss-por.png \
140 src/ui/gui/icons/mimetypes/48x48/application-x-spss-sav.png \
141 src/ui/gui/icons/mimetypes/48x48/application-x-spss-sps.png \
144 ICONS=$(MIMETYPE_ICONS)
148 $(MAKE) -f Smake Makefile.in configure
152 src/ui/gui/icons/manifest:
154 printf '# This is a generated file. Do not edit.\n' >> $@
155 printf 'icons =' >> $@
156 for i in $(ICONS); do \
157 printf ' \\\n\t '$$i >> $@; \
161 printf 'icon_srcs = ' >> $@
162 for i in $(ICONS); do \
163 printf ' \\\n\t '$$i | sed -e 's/\.png$$/.svg/' -e 's%/icons/%/artwork/%' >> $@ ; \
170 test -e ChangeLog || touch ChangeLog
171 test -d m4 || mkdir m4
173 $(GNULIB_TOOL) --add-import --no-changelog --m4-base=gl/m4 \
174 --source-base=gl --lib=libgl --tests-base=tests \
175 --doc-base=gl/doc --aux-dir=build-aux \
176 --libtool $(GNULIB_MODULES)
177 if (glibtoolize --version) >/dev/null 2>&1; then \
178 LIBTOOLIZE=glibtoolize; \
179 elif (libtoolize --version) >/dev/null 2>&1; then \
180 LIBTOOLIZE=libtoolize; \
182 echo >&2 "libtoolize not found"; \
185 $$LIBTOOLIZE --force --automake
188 aclocal -I m4 -I gl/m4
190 configure: configure.ac aclocal.m4
193 config.h.in: configure.ac
196 Makefile.in: Makefile.am config.h.in aclocal.m4 src/ui/gui/icons/manifest
197 automake --add-missing --copy --no-force --include-deps
201 test -d m4 || mkdir m4
203 gettextize --force --no-changelog
208 cd _check && ../configure $(CONFIGUREFLAGS)
209 cd _check && make distcheck
213 test -d _build || mkdir _build
214 cd _build && ../configure $(CONFIGUREFLAGS)
217 test -d _debug || mkdir _debug
218 cd _debug && ../configure $(CONFIGUREFLAGS) --enable-debug
222 PO_FILES = po/ChangeLog \
223 po/Rules-quot po/boldquot.sed \
224 po/cat-id-tbl.c po/en@boldquot.header po/en@quot.header \
225 po/insert-header.sin po/quot.sed po/remove-potcdate.sin po/stamp-po \
226 po/Makevars.template po/pspp.pot
229 rm -f config.sub config.guess config.rpath
230 rm -fr autom4te.cache
232 rm -f missing mkinstalldirs
234 rm -f configure Makefile
238 rm -f $(PO_FILES) po/*.gmo
239 rm -f mdate-sh texinfo.tex
243 find . -name Makefile.in -exec rm -f {} \;
246 rm -f reloc-ldflags install-reloc
248 .PHONY: all gettextize clean
250 src/ui/gui/icons/%.png: src/ui/gui/artwork/%.svg src/ui/gui/icons/COPYING_CCBYSA3
252 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)'