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 \
122 $(MAKE) -f Smake Makefile.in configure
126 test -e ChangeLog || touch ChangeLog
127 test -d m4 || mkdir m4
129 $(GNULIB_TOOL) --add-import --no-changelog --m4-base=gl/m4 \
130 --source-base=gl --lib=libgl --tests-base=tests \
131 --doc-base=gl/doc --aux-dir=build-aux \
132 --libtool $(GNULIB_MODULES)
133 if (glibtoolize --version) >/dev/null 2>&1; then \
134 LIBTOOLIZE=glibtoolize; \
135 elif (libtoolize --version) >/dev/null 2>&1; then \
136 LIBTOOLIZE=libtoolize; \
138 echo >&2 "libtoolize not found"; \
141 $$LIBTOOLIZE --force --automake
144 aclocal -I m4 -I gl/m4
146 configure: configure.ac aclocal.m4
149 config.h.in: configure.ac
152 Makefile.in: Makefile.am config.h.in aclocal.m4
153 automake --add-missing --copy --no-force --include-deps
157 test -d m4 || mkdir m4
159 gettextize --force --no-changelog
164 cd _check && ../configure $(CONFIGUREFLAGS)
165 cd _check && make distcheck
169 test -d _build || mkdir _build
170 cd _build && ../configure $(CONFIGUREFLAGS)
173 test -d _debug || mkdir _debug
174 cd _debug && ../configure $(CONFIGUREFLAGS) --enable-debug
176 PO_FILES = po/ChangeLog \
177 po/Rules-quot po/boldquot.sed \
178 po/cat-id-tbl.c po/en@boldquot.header po/en@quot.header \
179 po/insert-header.sin po/quot.sed po/remove-potcdate.sin po/stamp-po \
180 po/Makevars.template po/pspp.pot
183 rm -f config.sub config.guess config.rpath
184 rm -fr autom4te.cache
186 rm -f missing mkinstalldirs
188 rm -f configure Makefile
192 rm -f $(PO_FILES) po/*.gmo
193 rm -f mdate-sh texinfo.tex
197 find . -name Makefile.in -exec rm -f {} \;
200 rm -f reloc-ldflags install-reloc
202 .PHONY: all gettextize clean