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