Can not install generated sdl-config

Hello,

When building SDL when builddir != srcdir, then make install fails,
because it tries to install sdl-config from srcdir, instead of builddir:

$ ./cross-make.sh install prefix=/tmp/sdl
/bin/sh …/SDL/build-scripts/mkinstalldirs /tmp/sdl/bin
mkdir -p – /tmp/sdl/bin
/usr/bin/install -c -m 755 …/SDL/sdl-config /tmp/sdl/bin/sdl-config
/usr/bin/install: ne peut ?valuer `…/SDL/sdl-config’: Aucun fichier ou
r?pertoire de ce type–
Patrice Mandin
WWW: http://pmandin.atari.org/
Programmeur Linux, Atari
Sp?cialit?: D?veloppement, jeux

Hello,

When building SDL when builddir != srcdir, then make install fails,
because it tries to install sdl-config from srcdir, instead of builddir:

Can you try it now? It should be fixed in CVS.

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment

Le Mon, 06 Mar 2006 10:31:49 -0800
Sam Lantinga a ?crit:

When building SDL when builddir != srcdir, then make install fails,
because it tries to install sdl-config from srcdir, instead of
builddir:

Can you try it now? It should be fixed in CVS.

OK, It is fixed. One more problem, man pages are installed to the path
given at configure time. Running 'make install prefix=/some/new/path’
don’t install manpages in this new path.–
Patrice Mandin
WWW: http://pmandin.atari.org/
Programmeur Linux, Atari
Sp?cialit?: D?veloppement, jeux

OK, It is fixed. One more problem, man pages are installed to the path
given at configure time. Running 'make install prefix=/some/new/path’
don’t install manpages in this new path.

I checked and it appears that it should… what does the top of your
Makefile look like?

-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment

Le Mon, 06 Mar 2006 11:25:02 -0800
Sam Lantinga a ?crit:

OK, It is fixed. One more problem, man pages are installed to the path
given at configure time. Running 'make install prefix=/some/new/path’
don’t install manpages in this new path.

I checked and it appears that it should… what does the top of your
Makefile look like?

top_builddir = .
srcdir = …/SDL
objects = build
depend = build-deps
prefix = /home/patrice/local/m68k-atari-mint
exec_prefix = ${prefix}
bindir = $(DESTDIR)${exec_prefix}/bin
libdir = $(DESTDIR)${exec_prefix}/lib
includedir = $(DESTDIR)${prefix}/include
datadir = $(DESTDIR)${prefix}/share
mandir = $(DESTDIR)/home/patrice/local/m68k-atari-mint/share/man
auxdir = …/SDL/build-scripts
distpath = $(srcdir)/…
distdir = SDL-1.2.10
distfile = $(distdir).tar.gz

Obviously, mandir should be ${DESTDIR}${prefix}/man or ${DESTDIR}${prefix}/share/man–
Patrice Mandin
WWW: http://pmandin.atari.org/
Programmeur Linux, Atari
Sp?cialit?: D?veloppement, jeux

Le Mon, 06 Mar 2006 11:25:02 -0800
Sam Lantinga a ?crit:

OK, It is fixed. One more problem, man pages are installed to the path
given at configure time. Running 'make install prefix=/some/new/path’
don’t install manpages in this new path.

I checked and it appears that it should… what does the top of your
Makefile look like?

Oops, it is my fault, I force mandir at configure time, so it’s ok.–
Patrice Mandin
WWW: http://pmandin.atari.org/
Programmeur Linux, Atari
Sp?cialit?: D?veloppement, jeux