commit 9f00f2023359b552bfe89accc977590d17bd170e
Author: Simon Howard <fraggle@gmail.com>
AuthorDate: Thu Aug 31 18:15:16 2006 +0000
Commit: Simon Howard <fraggle@gmail.com>
CommitDate: Thu Aug 31 18:15:16 2006 +0000
Add manual pages to build
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 587
---
configure.in | 1 +
man/{Makefile => Makefile.am} | 8 +++++++-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/configure.in b/configure.in
index db645a1c..7e4a44b9 100644
--- a/configure.in
+++ b/configure.in
@@ -54,6 +54,7 @@ Makefile
textscreen/Makefile
textscreen/examples/Makefile
setup/Makefile
+man/Makefile
src/Makefile
src/chocolate-doom-res.rc
])
diff --git a/man/Makefile b/man/Makefile.am
similarity index 63%
rename from man/Makefile
rename to man/Makefile.am
index eb6ec29f..6a0c5965 100644
--- a/man/Makefile
+++ b/man/Makefile.am
@@ -1,5 +1,11 @@
-chocolate-doom.6: chocolate-doom-options.in head foot Makefile doom-options.in
+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 >>$@