]> arthur.barton.de Git - netatalk.git/commitdiff
Modified to allow variable subs in man pages.
authorlancel <lancel>
Tue, 16 Oct 2001 18:21:48 +0000 (18:21 +0000)
committerlancel <lancel>
Tue, 16 Oct 2001 18:21:48 +0000 (18:21 +0000)
man/man1/Makefile.am

index 0d0f5e2a55d5ed397e7de45d15caa63126aa3988..c77b7d1064208ec4ccb7da83eb515306d9b2561e 100644 (file)
@@ -1,27 +1,44 @@
 # Makefile.am for man/man1/
 
-man_MANS = \
-       achfile.1 \
-       acleandir.1 \
-       aecho.1 \
-       afile.1 \
-       afppasswd.1 \
-       getzones.1 \
-       hqx2bin.1 \
-       macbinary.1 \
-       megatron.1 \
-       nbp.1 \
-       nbplkup.1 \
-       nbprgstr.1 \
-       nbpunrgstr.1 \
-       netatalk-config.1 \
-       pap.1 \
-       papstatus.1 \
-       psorder.1 \
-       single2bin.1 \
-       timeout.1 \
-       unbin.1 \
-       unhex.1 \
-       unsingle.1
-
-EXTRA_DIST = $(man_MANS)
+pkgconfdir = @PKGCONFDIR@
+
+SUFFIXES= .tmpl .
+
+.tmpl:
+       sed -e s@:SBINDIR:@${sbindir}@ \
+           -e s@:BINDIR:@${bindir}@ \
+           -e s@:ETCDIR:@${pkgconfdir}@ \
+           -e s@:LIBDIR:@${libdir}@ \
+           <$< >$@
+
+GENERATED_MANS = apple_cp.1 
+TEMPLATE_FILES = $(foreach f,$(GENERATED_MANS),$(f).tmpl)
+NONGENERATED_MANS      =       achfile.1  \
+                               acleandir.1 \
+                               aecho.1 \
+                               afile.1 \
+                               afppasswd.1 \
+                               getzones.1 \
+                               hqx2bin.1 \
+                               macbinary.1 \
+                               megatron.1 \
+                               nbp.1 \
+                               nbplkup.1 \
+                               nbprgstr.1 \
+                               nbpunrgstr.1 \
+                               netatalk-config.1 \
+                               pap.1 \
+                               papstatus.1 \
+                               psorder.1 \
+                               single2bin.1 \
+                               timeout.1 \
+                               unbin.1 \
+                               unhex.1 \
+                               unsingle.1
+
+man_MANS = $(GENERATED_MANS) $(NONGENERATED_MANS)
+
+CLEANFILES = $(GENERATED_MANS)
+
+EXTRA_DIST = $(TEMPLATE_FILES) $(NONGENERATED_MANS)
+