commit 9330b5da4b43dba0fa659f6a698170e90814b86e
Author: Simon Howard <fraggle@gmail.com>
AuthorDate: Sat Sep 21 04:34:42 2013 +0000
Commit: Simon Howard <fraggle@gmail.com>
CommitDate: Sat Sep 21 04:34:42 2013 +0000
Install multiple copies of the setup binary, one for each game.
Subversion-branch: /branches/v2-branch
Subversion-revision: 2671
---
src/Makefile.am | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/src/Makefile.am b/src/Makefile.am
index e6754a6b..b75cad17 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,5 +1,5 @@
-SUBDIRS=doom heretic hexen strife setup
+SUBDIRS = doom heretic hexen strife setup
gamesdir = $(prefix)/games
@@ -7,8 +7,16 @@ games_PROGRAMS = @PROGRAM_PREFIX@doom \
@PROGRAM_PREFIX@heretic \
@PROGRAM_PREFIX@hexen \
@PROGRAM_PREFIX@strife \
- @PROGRAM_PREFIX@server \
- @PROGRAM_PREFIX@setup
+ @PROGRAM_PREFIX@server
+
+noinst_PROGRAMS = @PROGRAM_PREFIX@setup
+
+SETUP_BINARIES = @PROGRAM_PREFIX@doom-setup$(EXEEXT) \
+ @PROGRAM_PREFIX@heretic-setup$(EXEEXT) \
+ @PROGRAM_PREFIX@hexen-setup$(EXEEXT) \
+ @PROGRAM_PREFIX@strife-setup$(EXEEXT)
+
+games_DATA = $(SETUP_BINARIES)
AM_CFLAGS = -I$(top_builddir)/textscreen \
-I$(top_builddir)/opl \
@@ -176,6 +184,9 @@ endif
@PROGRAM_PREFIX@strife_LDADD = strife/libstrife.a $(EXTRA_LIBS)
+$(SETUP_BINARIES): @PROGRAM_PREFIX@setup$(EXEEXT)
+ cp $< $@
+
# Source files needed for chocolate-setup:
SETUP_FILES= \