summaryrefslogtreecommitdiffstats
path: root/man/man8/Makefile.am
blob: b6408ddf2365205ff3c2a98c919ed7d0957f0173 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
dist_man_MANS = \
	fsck.zfs.8 \
	mount.zfs.8 \
	vdev_id.8 \
	zdb.8 \
	zfs.8 \
	zfs-mount-generator.8 \
	zfs-program.8 \
	zgenhostid.8 \
	zinject.8 \
	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
	$(RM) $@ $@.tmp
	srcdir=''; \
	  test -f ./$@.in || srcdir=$(srcdir)/; \
	  $(do_subst) $${srcdir}$@.in >$@.tmp
	mv $@.tmp $@

install-data-local:
	$(INSTALL) -d -m 0755 "$(DESTDIR)$(mandir)/man8"

CLEANFILES = \
	$(nodist_man_MANS)