<<< Date Index >>>     <<< Thread Index >>>

Re: [1.5.9 and Cygwin] Build problem related to HAVE_CONFIG_H



* Brendan Cully wrote on Tue, Mar 15, 2005 at 08:37:28AM CET:
> 
> I think I've figured out what's happening: on cygwin, the program
> targets have .exe at the end. So the Makefile has a target for
> makedoc.exe, but not makedoc. So when make in the doc directory needs
> makedoc, it does (cd ..; make makedoc), can't find a rule for
> makedoc, and uses a default rule.
> 
> Try the attached patch. Converting doc to automake might be
> worthwhile.

If you decide against this..

> --- doc/Makefile.in   15 Feb 2005 19:28:24 -0000      3.5
> +++ doc/Makefile.in   15 Mar 2005 07:33:10 -0000
> @@ -21,6 +21,7 @@ VPATH = @srcdir@
>  INSTALL = @INSTALL@
>  CC = @CC@
>  CPP = @CPP@
> +EXEEXT = @EXEEXT@
>  XCPPFLAGS = -I. @CPPFLAGS@
>  CFLAGS = @CFLAGS@ $(XCPPFLAGS)
>  LDFLAGS = @LDFLAGS@
> @@ -150,7 +151,7 @@ dist distdir: Makefile $(DISTFILES)
>       done
>  
>  ../makedoc: $(top_srcdir)/makedoc.c

..you also need to change the target to ../makedoc$(EXEEXT)
(as well as all other mention of it in Makefile.in)

> -     (cd .. && $(MAKE) makedoc)
> +     (cd .. && $(MAKE) makedoc$(EXEEXT))
>  
>  # hack around autoconf mixing up patterns.
>  at = @

Regards,
Ralf