mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 03:08:51 +03:00
Set proper dependency for string replacement targets
A lot of string replacement target don't have dependency or incorrect dependency. We setup proper dependency by pattern rules. Signed-off-by: Chunwei Chen <david.chen@osnexus.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #4908
This commit is contained in:
committed by
Brian Behlendorf
parent
b64e02e580
commit
5b1bc1a1d8
@@ -18,19 +18,12 @@ EXTRA_DIST = \
|
||||
$(top_srcdir)/etc/systemd/system/zfs.target.in \
|
||||
$(top_srcdir)/etc/systemd/system/50-zfs.preset.in
|
||||
|
||||
$(systemdunit_DATA):
|
||||
$(systemdunit_DATA) $(systemdpreset_DATA):%:%.in
|
||||
-$(SED) -e 's,@bindir\@,$(bindir),g' \
|
||||
-e 's,@runstatedir\@,$(runstatedir),g' \
|
||||
-e 's,@sbindir\@,$(sbindir),g' \
|
||||
-e 's,@sysconfdir\@,$(sysconfdir),g' \
|
||||
"$(top_srcdir)/etc/systemd/system/$@.in" >'$@'
|
||||
|
||||
$(systemdpreset_DATA):
|
||||
-$(SED) -e 's,@bindir\@,$(bindir),g' \
|
||||
-e 's,@runstatedir\@,$(runstatedir),g' \
|
||||
-e 's,@sbindir\@,$(sbindir),g' \
|
||||
-e 's,@sysconfdir\@,$(sysconfdir),g' \
|
||||
"$(top_srcdir)/etc/systemd/system/$@.in" >'$@'
|
||||
$< >'$@'
|
||||
|
||||
distclean-local::
|
||||
-$(RM) $(systemdunit_DATA) $(systemdpreset_DATA)
|
||||
|
||||
Reference in New Issue
Block a user