[patch] newlib/Makefile.in
Thomas Fitzsimmons
fitzsim@redhat.com
Tue Dec 18 14:45:00 GMT 2001
On Tue, 2001-12-18 at 17:13, James E. Flemer wrote:
> This seems a better way to do DOCDIR. Otherwise when
> building on a FreeBSD, it tries to make all in
> /usr/share/doc. It seems much better to force $(DOCDIR) to
> an empty string rather than assume it to be undefined.
>
OK. But since newlib uses automake, Makefile.in is generated from
Makefile.am.
In Makefile.am I changed:
if HAVE_DOC
DOCDIR = doc
endif
to
if HAVE_DOC
DOCDIR = doc
else
DOCDIR =
endif
and then I ran "automake --cygnus" in the newlib directory.
The resulting Makefile.in fragment was:
@HAVE_DOC_TRUE@DOCDIR = @HAVE_DOC_TRUE@doc
@HAVE_DOC_FALSE@DOCDIR =
Tom
> Index: newlib/Makefile.in
> ===================================================================
> RCS file: /cvs/src/src/newlib/Makefile.in,v
> retrieving revision 1.7
> diff -u -r1.7 Makefile.in
> --- Makefile.in 2001/12/13 23:49:38 1.7
> +++ Makefile.in 2001/12/18 22:10:18
> @@ -145,7 +145,7 @@
>
> FLAGS_TO_PASS = $(AM_MAKEFLAGS)
>
> -@HAVE_DOC_TRUE@DOCDIR = @HAVE_DOC_TRUE@doc
> +DOCDIR = @HAVE_DOC_TRUE@doc
>
> SUBDIRS = libc libm $(DOCDIR) .
>
>
--
Thomas Fitzsimmons
Red Hat Canada Limited e-mail: fitzsim@redhat.com
2323 Yonge Street, Suite 300
Toronto, ON M4P2C9
More information about the Newlib
mailing list