summaryrefslogtreecommitdiffstats
path: root/man/man8/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'man/man8/Makefile.am')
-rw-r--r--man/man8/Makefile.am23
1 files changed, 23 insertions, 0 deletions
diff --git a/man/man8/Makefile.am b/man/man8/Makefile.am
index f68082221..b89e34dfd 100644
--- a/man/man8/Makefile.am
+++ b/man/man8/Makefile.am
@@ -8,5 +8,28 @@ dist_man_MANS = \
zpool.8 \
zstreamdump.8
+nodist_man_MANS = \
+ zed.8
+
+EXTRA_DIST = \
+ zed.8.in
+
+zed.8: $(srcdir)/zed.8.in
+
+do_subst = $(SED) \
+ -e 's|@libexecdir[@]|$(libexecdir)|g' \
+ -e 's|@runstatedir[@]|$(runstatedir)|g' \
+ -e 's|@sysconfdir[@]|$(sysconfdir)|g'
+
+$(nodist_man_MANS): Makefile
+ srcdir=''; \
+ test -f ./[email protected] || srcdir=$(srcdir)/; \
+ $(do_subst) $${srcdir}[email protected] >[email protected]
+
install-data-local:
$(INSTALL) -d -m 0755 "$(DESTDIR)$(mandir)/man8"
+
+CLEANFILES = \
+ $(nodist_man_MANS)