shithub: choc

Download patch

ref: 9f00f2023359b552bfe89accc977590d17bd170e
parent: d99a3697be5d13343e0accfd3b01a196b36ef20e
author: Simon Howard <[email protected]>
date: Thu Aug 31 14:15:16 EDT 2006

Add manual pages to build

Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 587

--- a/configure.in
+++ b/configure.in
@@ -54,6 +54,7 @@
 textscreen/Makefile
 textscreen/examples/Makefile
 setup/Makefile
+man/Makefile
 src/Makefile
 src/chocolate-doom-res.rc
 ])
--- a/man/Makefile
+++ /dev/null
@@ -1,8 +1,0 @@
-
-chocolate-doom.6: chocolate-doom-options.in head foot Makefile doom-options.in
-	cp head $@
-	echo .SH DOOM OPTIONS >> $@
-	awk -F"\t" '{print ".TP\n\\fB"$$1"\\fR"; $$1=""; print }' < doom-options.in >>$@
-	echo .SH CHOCOLATE\\-DOOM OPTIONS >> $@
-	awk -F"\t" '{print ".TP\n\\fB"$$1"\\fR"; $$1=""; print }' < chocolate-doom-options.in >>$@
-	m4 -DAUTHORS="`cat ../AUTHORS`" foot >> $@
--- /dev/null
+++ b/man/Makefile.am
@@ -1,0 +1,14 @@
+
+MANPAGE_GEN_FILES=chocolate-doom-options.in head foot Makefile doom-options.in
+
+man_MANS=chocolate-doom.6
+
+EXTRA_DIST = $(man_MANS) $(MANPAGE_GEN_FILES)
+
+chocolate-doom.6: $(MANPAGE_GEN_FILES)
+	cp head $@
+	echo .SH DOOM OPTIONS >> $@
+	awk -F"\t" '{print ".TP\n\\fB"$$1"\\fR"; $$1=""; print }' < doom-options.in >>$@
+	echo .SH CHOCOLATE\\-DOOM OPTIONS >> $@
+	awk -F"\t" '{print ".TP\n\\fB"$$1"\\fR"; $$1=""; print }' < chocolate-doom-options.in >>$@
+	m4 -DAUTHORS="`cat ../AUTHORS`" foot >> $@