automake: install binaries to ${bindir} not ${exec_prefix}/games

This has been enforcing an optional part of the FHS that proves
problematic on distributions that do not include /usr/games or
/usr/local/games on the $PATH by default.  On the packagers’ side, the
Arch, Fedora, and OpenBSD packages (at least) have been patching the
Makefile.in files in order to get it to install to the bin directory
instead.  On the users’ side, this comes as a rather nasty surprise
when neither the terminal nor GUI will launch the games when they have
been installed to a location not in the $PATH.

If desired by packagers or end-users, the old behavior can still be
effectively implemented by using `./configure --bindir=/usr/games`
This commit is contained in:
Mike Swanson 2015-11-03 07:38:04 -08:00
parent 4ff554629f
commit 7b95fbbff4
2 changed files with 1 additions and 3 deletions

View file

@ -1,7 +1,7 @@
SUBDIRS = doom heretic hexen strife setup
execgamesdir = ${exec_prefix}/games
execgamesdir = ${bindir}
execgames_PROGRAMS = @PROGRAM_PREFIX@doom \
@PROGRAM_PREFIX@heretic \

View file

@ -1,6 +1,4 @@
gamesdir = $(prefix)/games
AM_CFLAGS = @SDL_CFLAGS@ \
@SDLMIXER_CFLAGS@ \
-I$(top_srcdir)/textscreen -I$(top_srcdir)/src