f021fe194f
As written, the $(init_SCRIPTS) rule in etc/init.d/Makefule.am would not work as expected if the init_SCRIPTS variable were to contain any elements other than zfs. Fix this by replacing the hard-coded 'zfs' reference with $@. Signed-off-by: Ned Bass <bass6@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #410
23 lines
638 B
Makefile
23 lines
638 B
Makefile
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 \
|
|
$(top_srcdir)/etc/init.d/zfs.arch.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)
|