aboutsummaryrefslogtreecommitdiffstats
path: root/man/man8
diff options
context:
space:
mode:
authorArvind Sankar <[email protected]>2020-07-11 19:35:58 -0400
committerBrian Behlendorf <[email protected]>2020-07-14 17:33:44 -0700
commit38e2e9ce8327284b2d516874308300aa96102fe9 (patch)
tree0761f7f696e4da7888a0c99ffb3a91a63ecefdd4 /man/man8
parentbdb518c13abb9eca8d6f8f1d9e2096dc5163a9e7 (diff)
Centralize variable substitution
A bunch of places need to edit files to incorporate the configured paths i.e. bindir, sbindir etc. Move this logic into a common file. Create arc_summary by copying arc_summary[23] as appropriate at build time instead of install time. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Arvind Sankar <[email protected]> Closes #10559
Diffstat (limited to 'man/man8')
-rw-r--r--man/man8/Makefile.am16
1 files changed, 3 insertions, 13 deletions
diff --git a/man/man8/Makefile.am b/man/man8/Makefile.am
index 0298961b3..366b4eb51 100644
--- a/man/man8/Makefile.am
+++ b/man/man8/Makefile.am
@@ -1,3 +1,5 @@
+include $(top_srcdir)/config/Substfiles.am
+
dist_man_MANS = \
fsck.zfs.8 \
mount.zfs.8 \
@@ -86,16 +88,4 @@ nodist_man_MANS = \
zed.8 \
zfs-mount-generator.8
-EXTRA_DIST = \
- zed.8.in \
- zfs-mount-generator.8.in
-
-$(nodist_man_MANS): %: %.in
- -$(SED) -e 's,@zfsexecdir\@,$(zfsexecdir),g' \
- -e 's,@systemdgeneratordir\@,$(systemdgeneratordir),g' \
- -e 's,@runstatedir\@,$(runstatedir),g' \
- -e 's,@sysconfdir\@,$(sysconfdir),g' \
- $< >'$@'
-
-CLEANFILES = \
- $(nodist_man_MANS)
+SUBSTFILES += $(nodist_man_MANS)