From 08ad5553fdec448b9c7955583a9728354e5ea4eb Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Mon, 20 Jan 2014 11:00:53 +0100 Subject: Some improvements to the build system 1) Instead of copying chocolate-setup into chocolate-{doom,heretic,hexen,strife}-setup, respectively, check in configure for symbolic linking and use that if available (falls back to "cp -pR" if not). 2) Add $(icons_DATA) to CLEANFILES so they get removed in clean phase; they are generated from doom-png and setup.png, respectively. 3) Consistently use @PROGRAM_PREFIX@ instead of the hard-coded "chocolate-" in the rules for the man pages. 4) Generate one man page for each setup program by symbolic linking of chocolate-setup.6 (see 1), add them to the list of installed man pages and to CLEANFILES. 5) Remove the redundant $(EXEEXT) suffix from the setup binaries (they were missing for execgames_PROGRAMS, anyway) --- src/Makefile.am | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index 5c9d15f4..0b831922 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -7,14 +7,13 @@ execgames_PROGRAMS = @PROGRAM_PREFIX@doom \ @PROGRAM_PREFIX@heretic \ @PROGRAM_PREFIX@hexen \ @PROGRAM_PREFIX@strife \ - @PROGRAM_PREFIX@server + @PROGRAM_PREFIX@server \ + @PROGRAM_PREFIX@setup -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) +SETUP_BINARIES = @PROGRAM_PREFIX@doom-setup \ + @PROGRAM_PREFIX@heretic-setup \ + @PROGRAM_PREFIX@hexen-setup \ + @PROGRAM_PREFIX@strife-setup execgames_SCRIPTS = $(SETUP_BINARIES) @@ -184,8 +183,8 @@ endif @PROGRAM_PREFIX@strife_LDADD = strife/libstrife.a $(EXTRA_LIBS) -$(SETUP_BINARIES): @PROGRAM_PREFIX@setup$(EXEEXT) - cp $< $@ +$(SETUP_BINARIES): @PROGRAM_PREFIX@setup + $(LN_S) $< $@ # Source files needed for chocolate-setup: -- cgit v1.2.3