gdb-5.0/gdb/doc/Makefile.in patch

Eli Zaretskii eliz@delorie.com
Sun Jun 25 01:18:00 GMT 2000


> From: markh@frazier.landmark.com
> Date: Fri, 23 Jun 2000 14:35:24 -0400
> 
>    Here is a patch file to fix a bug in the 'install-info' target.  The
> target does not work correctly if the debugger is being built in a
> directory other than the source directory.

Thanks, I committed this to the trunk.

> I think that the same bug
> exists for the 'install-html' target, but I did not pursue this because
> I did not find any .html files in the gdb distribution.

No, the install-html target doesn't need this change, because the
*.html files are not part of the distribution.  If someone wants to
install them, they will have to be generated first, in which case they
are created in the same directory where GDB is built.  Thus no need to
chdir to $(srcdir) in that case.

> 
> diff -u2 Makefile.in.orig Makefile.in
> --- Makefile.in.orig	Wed May 17 07:54:04 2000
> +++ Makefile.in	Tue Jun 20 12:24:48 2000
> @@ -115,7 +115,8 @@
>  install-info: info
>  	$(SHELL) $(srcdir)/../../mkinstalldirs $(infodir)
> +	(cd $(srcdir); \
>  	for i in *.info* ; do \
>  		$(INSTALL_DATA) $$i $(infodir)/$$i ; \
> -	done
> +	done)
>  	@if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
>  	  list='gdb.info gdbint.info stabs.info'; \
> 
> -- 
> ## Mark Harig
> ## Landmark Systems, Reston, Virginia, USA
> ## Email: mharig@landmark.com
> 


More information about the Gdb-patches mailing list