From: Bruno Haible Date: Mon, 7 Jan 2002 17:38:21 +0000 (+0000) Subject: Don't use GNU make extensions in doc/Makefile. X-Git-Tag: v0.11~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=340c0bb742f0bf51394b0ef84256c9a0ec6a341a;p=thirdparty%2Fgettext.git Don't use GNU make extensions in doc/Makefile. --- diff --git a/ChangeLog b/ChangeLog index afcc17a43..3baa37a9f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2002-01-05 Bruno Haible + + * configure.in: Postprocess doc/Makefile. + 2002-01-04 Bruno Haible * configure.in: Change version number to 0.11-pre5. diff --git a/configure.in b/configure.in index ef31088e0..e720f6422 100644 --- a/configure.in +++ b/configure.in @@ -159,12 +159,15 @@ AC_OUTPUT([Makefile \ projects/Makefile \ misc/Makefile misc/gettextize], [ dnl Fix unesthetic build commands generated by automake. -changequote(,)dnl for m in lib/Makefile src/Makefile tests/Makefile; do sed -e "s,\`test -f \\\$< || echo '\\\$(srcdir)/'\`\\\$<,\\\$<," < $m > $m.tmp mv $m.tmp $m done -changequote([, ])dnl + dnl Fix an automake-1.5 bug. + for m in doc/Makefile; do + sed -e 's,^#distdir:,distdir:,' < $m > $m.tmp + mv $m.tmp $m + done dnl Fix permissions of misc/gettextize. chmod a+x misc/gettextize ]) diff --git a/doc/ChangeLog b/doc/ChangeLog index 49ed2a342..c1388c4e9 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,10 @@ +2002-01-05 Bruno Haible + + * Makefile.am (EXTRA_DIST_html): Remove variable. + (EXTRA_DIST): Remove $(EXTRA_DIST_html). + (dist-html, dist-html-monolithic, dist-html-split): New rules. + (distdir): Depend on dist-html. + 2002-01-04 Bruno Haible * gettext.texi (Comparison): Remove paragraph about alloca. libintl diff --git a/doc/Makefile.am b/doc/Makefile.am index 78bd6087c..541b62873 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,5 +1,5 @@ ## Makefile for the doc subdirectory of the GNU NLS Utilities -## Copyright (C) 1995-1997, 2001 Free Software Foundation, Inc. +## Copyright (C) 1995-1997, 2001-2002 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 @@ -38,7 +38,7 @@ gettext_TEXINFOS = \ msgattrib.texi msgen.texi msgexec.texi msgfmt.texi msgunfmt.texi \ iso-639.texi iso-3166.texi -EXTRA_DIST = iso-639.sed iso-3166.sed ISO_639 ISO_3166 nls.texi matrix.texi $(EXTRA_DIST_html) texi2html +EXTRA_DIST = iso-639.sed iso-3166.sed ISO_639 ISO_3166 nls.texi matrix.texi texi2html iso-639.texi: ISO_639 iso-639.sed $(SED) -f $(srcdir)/iso-639.sed $(srcdir)/ISO_639 > iso-639.tmp @@ -61,14 +61,14 @@ all-local: html install-data-local: install-html installdirs-local: installdirs-html uninstall-local: uninstall-html +# Hidden from automake, but really activated. Works around an automake-1.5 bug. +#distdir: dist-html html: html-split install-html: install-html-split uninstall-html: uninstall-html-split +dist-html: dist-html-split -# This strange way of taking wildcards is a workaround to an automake-1.5 bug -# which would occur if we wrote $(wildcard $(srcdir)/gettext_*.html). -EXTRA_DIST_html = $(notdir $(wildcard gettext_*.html) $(wildcard $(addprefix $(srcdir), $(addprefix /, gettext_*.html)))) CLEANFILES = gettext.pdf gettext.html # gettext.dvi and gettext.ps are already known to automake. MAINTAINERCLEANFILES = gettext_*.html @@ -166,6 +166,21 @@ uninstall-html-monolithic: uninstall-html-split: $(RM) $(DESTDIR)$(htmldir)/gettext_*.html +dist-html-monolithic: + $(mkinstalldirs) $(distdir)/ + file=gettext.html; \ + if test -f $$file; then d=.; else d=$(srcdir); fi; \ + cp -p $$d/$$file $(distdir)/$$file || exit 1 + +# We would like to put gettext_*.html into EXTRA_DIST, but it doesn't work. +dist-html-split: + $(mkinstalldirs) $(distdir)/ + file=gettext_toc.html; \ + if test -f $$file; then d=.; else d=$(srcdir); fi; \ + for file in `cd $$d && echo gettext_*.html`; do \ + cp -p $$d/$$file $(distdir)/$$file || exit 1; \ + done + # One more automake bug. installdirs: installdirs-local