mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 03:09:34 +03:00
Use automatic variable in Makefile
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
This commit is contained in:
parent
fa6e5ced2f
commit
f021fe194f
@ -16,7 +16,7 @@ $(init_SCRIPTS):
|
||||
-e 's,@udevruledir\@,$(udevruledir),g' \
|
||||
-e 's,@sysconfdir\@,$(sysconfdir),g' \
|
||||
-e 's,@initdir\@,$(initdir),g' \
|
||||
'zfs.$(DEFAULT_INIT_SCRIPT).in' >'$@'
|
||||
'$@.$(DEFAULT_INIT_SCRIPT).in' >'$@'
|
||||
|
||||
distclean-local::
|
||||
-$(RM) $(init_SCRIPTS)
|
||||
|
@ -531,7 +531,7 @@ $(init_SCRIPTS):
|
||||
-e 's,@udevruledir\@,$(udevruledir),g' \
|
||||
-e 's,@sysconfdir\@,$(sysconfdir),g' \
|
||||
-e 's,@initdir\@,$(initdir),g' \
|
||||
'zfs.$(DEFAULT_INIT_SCRIPT).in' >'$@'
|
||||
'$@.$(DEFAULT_INIT_SCRIPT).in' >'$@'
|
||||
|
||||
distclean-local::
|
||||
-$(RM) $(init_SCRIPTS)
|
||||
|
Loading…
Reference in New Issue
Block a user