This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] newlib/Makefile.in


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]