aboutsummaryrefslogtreecommitdiffstats
path: root/etc/init.d/Makefile.am
blob: 72093484c4779227b8584ed6324e22fcf335e1d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
initdir = $(DEFAULT_INIT_DIR)
init_SCRIPTS = zfs

EXTRA_DIST = \
	$(top_srcdir)/etc/init.d/zfs.fedora.in \
	$(top_srcdir)/etc/init.d/zfs.gentoo.in \
	$(top_srcdir)/etc/init.d/zfs.lsb.in \
	$(top_srcdir)/etc/init.d/zfs.lunar.in \
	$(top_srcdir)/etc/init.d/zfs.redhat.in

$(init_SCRIPTS):
	-$(SED) -e 's,@bindir\@,$(bindir),g' \
		-e 's,@sbindir\@,$(sbindir),g' \
		-e 's,@udevdir\@,$(udevdir),g' \
		-e 's,@udevruledir\@,$(udevruledir),g' \
		-e 's,@sysconfdir\@,$(sysconfdir),g' \
		-e 's,@initdir\@,$(initdir),g' \
		'$@.$(DEFAULT_INIT_SCRIPT).in' >'$@'

distclean-local::
	-$(RM) $(init_SCRIPTS)