4 GNULIB_TOOL = $(GNULIB)/gnulib-tool
6 GNULIB_MODULES = alloca alloca-opt assert full-read full-write \
7 gethostname getline getlogin_r getopt gettext memcasecmp memchr memcmp \
8 memmem memmove memset progname readlink restrict snprintf stat-macros \
9 stdbool stpcpy strcase strcspn strerror strftime strstr strtod \
10 strtok_r strtol strtoul vsnprintf xalloc xalloc-die xreadlink \
14 test -d m4 || mkdir m4
16 $(GNULIB_TOOL) --import --no-changelog --m4-base=gl/m4 \
17 --source-base=gl --lib=libgl --tests-base=tests \
18 --import $(GNULIB_MODULES)
22 test -d m4 || mkdir m4
24 gettextize -f -c --intl --no-changelog
27 for f in `find src -name \*.[qc] ! -name .\* -print \
28 | sed 's/\.[qc]$$//'`; do \
29 if test $$f = src/libpspp/version.c; then break; fi; \
30 if test -e $$f.q; then echo $$f.q; else echo $$f.c; fi \
31 done | sort | uniq > $@.tmp
32 if test ! -e $@ || ! cmp -s $@.tmp $@; then mv $@.tmp $@; fi
38 cd _check && ../configure $(CONFIGUREFLAGS)
39 cd _check && make distcheck
43 test -d _build || mkdir _build
44 cd _build && ../configure $(CONFIGUREFLAGS)
46 PO_FILES = po/ChangeLog po/Makefile po/Makefile.in po/Makefile.in.in \
47 po/POTFILES po/POTFILES.in po/Rules-quot po/boldquot.sed \
48 po/cat-id-tbl.c po/en@boldquot.header po/en@quot.header \
49 po/insert-header.sin po/quot.sed po/remove-potcdate.sin po/stamp-po \
53 rm -f config.sub config.guess config.rpath
57 rm -f missing mkinstalldirs
59 rm -f configure Makefile
64 rm -f mdate-sh texinfo.tex
67 find . -name Makefile.in -exec rm -f {} \;
70 .PHONY: all gettextize potfiles clean