about summary refs log tree commit diff
path: root/man/Makefile.am
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2006-12-25 16:13:26 +0000
committerAlexander Barton <alex@barton.de>2006-12-25 16:13:26 +0000
commitf6ce2d557a6f52ed71e458b1a375747d90ffca70 (patch)
tree842c6d2f21b405685512401acd1d26f792e5df7d /man/Makefile.am
parent4243cae985578f0c5c961f9a6aca79d235e07467 (diff)
downloadngircd-f6ce2d557a6f52ed71e458b1a375747d90ffca70.tar.gz
ngircd-f6ce2d557a6f52ed71e458b1a375747d90ffca70.zip
Customize manual pages to reflect the actual installation location of files.
Diffstat (limited to 'man/Makefile.am')
-rw-r--r--man/Makefile.am17
1 files changed, 15 insertions, 2 deletions
diff --git a/man/Makefile.am b/man/Makefile.am
index 0ec0e27f..ebe9fcef 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -9,12 +9,25 @@
 # Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
 # der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
 #
-# $Id: Makefile.am,v 1.5 2002/04/04 13:02:41 alex Exp $
+# $Id: Makefile.am,v 1.6 2006/12/25 16:13:26 alex Exp $
 #
 
+TEMPLATE_MANS = ngircd.conf.5.tmpl ngircd.8.tmpl
+
+SUFFIXES = .tmpl .
+
+.tmpl:
+	sed \
+	    -e s@:SBINDIR:@${sbindir}@ \
+	    -e s@:BINDIR:@${bindir}@ \
+	    -e s@:ETCDIR:@${sysconfdir}@ \
+	    <$< >$@
+
 man_MANS = ngircd.conf.5 ngircd.8
 
-EXTRA_DIST = $(man_MANS)
+CLEANFILES = $(man_MANS)
+
+EXTRA_DIST = $(TEMPLATE_MANS)
 
 maintainer-clean-local:
 	rm -f Makefile Makefile.in