make install DESTDIR=/tmp/foo fails in gdb head

Andrew Cagney cagney@gnu.org
Mon Jul 26 21:45:00 GMT 2004


> I configured current gdb head branch, make install fails in dejagnu due
> to the lack of $(DESTDIR) in install-data-local target.

Thanks.  I've committed the sim part of the change (6.2 and mainline). 
For the tcl, dejagnu and expect can I encourage you to check the 
upstream sources.  (GDB's stopping the bundling those directories so it 
is no longer a problem.)

Andrew

> Index: src/sim/common/Makefile.in
> ===================================================================
> RCS file: /cvs/src/src/sim/common/Makefile.in,v
> retrieving revision 1.5
> diff -u -p -r1.5 Makefile.in
> --- src/sim/common/Makefile.in	15 Jan 2004 21:25:06 -0000	1.5
> +++ src/sim/common/Makefile.in	5 Jul 2004 21:25:21 -0000
> @@ -119,10 +119,10 @@ install: install-man
>  
>  install-man: installdirs
>  	n=`echo run | sed '$(program_transform_name)'`; \
> -	$(INSTALL_DATA) $(srcdir)/run.1 $(man1dir)/$$n.1
> +	$(INSTALL_DATA) $(srcdir)/run.1 $(DESTDIR)$(man1dir)/$$n.1
>  
>  installdirs:
> -	$(SHELL) $(srcdir)/../../mkinstalldirs $(man1dir)
> +	$(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(man1dir)
>  
>  Makefile: Makefile.in config.status
>  	$(SHELL) ./config.status
> Index: src/sim/ppc/Makefile.in
> ===================================================================
> RCS file: /cvs/src/src/sim/ppc/Makefile.in,v
> retrieving revision 1.11
> diff -u -p -r1.11 Makefile.in
> --- src/sim/ppc/Makefile.in	15 Oct 2003 21:32:36 -0000	1.11
> +++ src/sim/ppc/Makefile.in	5 Jul 2004 21:25:21 -0000
> @@ -665,7 +665,7 @@ config.status: configure
>  
>  install: installdirs
>  	n=`echo run | sed '$(program_transform_name)'`; \
> -	$(INSTALL_PROGRAM) run$(EXEEXT) $(bindir)/$$n$(EXEEXT)
> +	$(INSTALL_PROGRAM) run$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT)
>  
>  installdirs:
> -	$(SHELL) $(srcdir)/../../mkinstalldirs $(bindir)
> +	$(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(bindir)



More information about the Gdb mailing list