shithub: choc

Download patch

ref: 9330b5da4b43dba0fa659f6a698170e90814b86e
parent: 26446dde302568de04185498bddf1caa9f2c5984
author: Simon Howard <fraggle@gmail.com>
date: Sat Sep 21 00:34:42 EDT 2013

Install multiple copies of the setup binary, one for each game.

Subversion-branch: /branches/v2-branch
Subversion-revision: 2671

--- 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,9 +7,17 @@
                  @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                   \
             -I$(top_builddir)/pcsound               \
@@ -175,6 +183,9 @@
 endif
 
 @PROGRAM_PREFIX@strife_LDADD = strife/libstrife.a $(EXTRA_LIBS)
+
+$(SETUP_BINARIES): @PROGRAM_PREFIX@setup$(EXEEXT)
+	cp $< $@
 
 # Source files needed for chocolate-setup: