shithub: choc

Download patch

ref: a853a1ef6298dbd7b99d486a0799d5df45181a56
parent: 9330b5da4b43dba0fa659f6a698170e90814b86e
author: Simon Howard <[email protected]>
date: Sat Sep 21 00:35:48 EDT 2013

Install documentation files into separate directories, one for each
game. This will allow for easier Unix packaging.

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

--- a/Makefile.am
+++ b/Makefile.am
@@ -34,10 +34,8 @@
 DOC_FILES=                              \
         README                          \
         README.OPL                      \
-        README.Strife                   \
         NEWS                            \
-        ChangeLog                       \
-        NOT-BUGS
+        ChangeLog
 
 EXTRA_DIST=                             \
         $(AUX_DIST_GEN)                 \
@@ -49,8 +47,17 @@
         TODO                            \
         rpm.spec
 
-docdir=$(prefix)/share/doc/@PACKAGE@
-doc_DATA=$(DOC_FILES)
+doomdocsdir = $(prefix)/share/doc/@PROGRAM_PREFIX@doom
+doomdocs_DATA = $(DOC_FILES) NOT-BUGS
+
+hereticdocsdir = $(prefix)/share/doc/@PROGRAM_PREFIX@heretic
+hereticdocs_DATA = $(DOC_FILES)
+
+hexendocsdir = $(prefix)/share/doc/@PROGRAM_PREFIX@hexen
+hexendocs_DATA = $(DOC_FILES)
+
+strifedocsdir = $(prefix)/share/doc/@PROGRAM_PREFIX@strife
+strifedocs_DATA = $(DOC_FILES) README.Strife
 
 MAINTAINERCLEANFILES =  $(AUX_DIST_GEN)
 
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -8,30 +8,32 @@
         default.cfg.template \
         extra.cfg.template
 
-docdir=$(prefix)/share/doc/@PACKAGE@
+doomdocsdir = $(prefix)/share/doc/@PROGRAM_PREFIX@doom
+hereticdocsdir = $(prefix)/share/doc/@PROGRAM_PREFIX@heretic
+hexendocsdir = $(prefix)/share/doc/@PROGRAM_PREFIX@hexen
+strifedocsdir = $(prefix)/share/doc/@PROGRAM_PREFIX@strife
 
 if HAVE_PYTHON
 
-man_MANS=chocolate-server.6       \
-         chocolate-setup.6        \
-         chocolate-doom.6         \
-         default.cfg.5            \
-         chocolate-doom.cfg.5     \
-         chocolate-heretic.6      \
-         heretic.cfg.5            \
-         chocolate-heretic.cfg.5  \
-         chocolate-hexen.6        \
-         hexen.cfg.5              \
-         chocolate-hexen.cfg.5    \
-         chocolate-strife.6       \
-         strife.cfg.5             \
-         chocolate-strife.cfg.5
+man_MANS = chocolate-server.6       \
+           chocolate-setup.6        \
+           chocolate-doom.6         \
+           default.cfg.5            \
+           chocolate-doom.cfg.5     \
+           chocolate-heretic.6      \
+           heretic.cfg.5            \
+           chocolate-heretic.cfg.5  \
+           chocolate-hexen.6        \
+           hexen.cfg.5              \
+           chocolate-hexen.cfg.5    \
+           chocolate-strife.6       \
+           strife.cfg.5             \
+           chocolate-strife.cfg.5
 
-nodist_doc_DATA=INSTALL \
-    INSTALL.doom INSTALL.heretic INSTALL.hexen INSTALL.strife \
-    CMDLINE.doom CMDLINE.heretic CMDLINE.hexen CMDLINE.strife
-
-
+doomdocs_DATA    = INSTALL.doom    CMDLINE.doom
+hereticdocs_DATA = INSTALL.heretic CMDLINE.heretic
+hexendocs_DATA   = INSTALL.hexen   CMDLINE.hexen
+strifedocs_DATA  = INSTALL.strife  CMDLINE.strife
 
 chocolate-doom.6: ../src $(MANPAGE_GEN_FILES)
 	./docgen -g doom -m doom.template ../src ../src/doom > $@