summaryrefslogtreecommitdiffstats
path: root/etc/zfs/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'etc/zfs/Makefile.am')
-rw-r--r--etc/zfs/Makefile.am15
1 files changed, 4 insertions, 11 deletions
diff --git a/etc/zfs/Makefile.am b/etc/zfs/Makefile.am
index 8e44affaa..b9123c176 100644
--- a/etc/zfs/Makefile.am
+++ b/etc/zfs/Makefile.am
@@ -1,5 +1,6 @@
+include $(top_srcdir)/config/Substfiles.am
+
pkgsysconfdir = $(sysconfdir)/zfs
-initconfdir = $(DEFAULT_INITCONF_DIR)
dist_pkgsysconf_DATA = \
vdev_id.conf.alias.example \
@@ -7,16 +8,8 @@ dist_pkgsysconf_DATA = \
vdev_id.conf.sas_switch.example \
vdev_id.conf.multipath.example \
vdev_id.conf.scsi.example
+
pkgsysconf_SCRIPTS = \
zfs-functions
-EXTRA_DIST = zfs-functions.in
-
-$(pkgsysconf_SCRIPTS):%:%.in Makefile
- -$(SED) \
- -e 's,@sbindir\@,$(sbindir),g' \
- -e 's,@sysconfdir\@,$(sysconfdir),g' \
- -e 's,@initconfdir\@,$(initconfdir),g' \
- $< >'$@'
-
-CLEANFILES = $(pkgsysconf_SCRIPTS)
+SUBSTFILES += $(pkgsysconf_SCRIPTS)