diff options
author | Chunwei Chen <[email protected]> | 2016-07-29 16:35:33 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-08-02 10:28:29 -0700 |
commit | 5b1bc1a1d8ae284f834f239ab0309c6ce96ab74f (patch) | |
tree | 78855bdd7f842bc76120aac609df33cf29610857 /contrib/dracut | |
parent | b64e02e5805e84dcaa4b0820b555b9f90aa5afea (diff) |
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 <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #4908
Diffstat (limited to 'contrib/dracut')
-rw-r--r-- | contrib/dracut/02zfsexpandknowledge/Makefile.am | 4 | ||||
-rw-r--r-- | contrib/dracut/90zfs/Makefile.am | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/contrib/dracut/02zfsexpandknowledge/Makefile.am b/contrib/dracut/02zfsexpandknowledge/Makefile.am index 0a2170bfc..a5c567c16 100644 --- a/contrib/dracut/02zfsexpandknowledge/Makefile.am +++ b/contrib/dracut/02zfsexpandknowledge/Makefile.am @@ -5,7 +5,7 @@ pkgdracut_SCRIPTS = \ EXTRA_DIST = \ $(top_srcdir)/contrib/dracut/02zfsexpandknowledge/module-setup.sh.in -$(pkgdracut_SCRIPTS): +$(pkgdracut_SCRIPTS):%:%.in -$(SED) -e 's,@bindir\@,$(bindir),g' \ -e 's,@sbindir\@,$(sbindir),g' \ -e 's,@datadir\@,$(datadir),g' \ @@ -13,7 +13,7 @@ $(pkgdracut_SCRIPTS): -e 's,@udevdir\@,$(udevdir),g' \ -e 's,@udevruledir\@,$(udevruledir),g' \ -e 's,@sysconfdir\@,$(sysconfdir),g' \ - "$(top_srcdir)/contrib/dracut/02zfsexpandknowledge/[email protected]" >'$@' + $< >'$@' clean-local:: -$(RM) $(pkgdracut_SCRIPTS) diff --git a/contrib/dracut/90zfs/Makefile.am b/contrib/dracut/90zfs/Makefile.am index f81d6c357..2777a8142 100644 --- a/contrib/dracut/90zfs/Makefile.am +++ b/contrib/dracut/90zfs/Makefile.am @@ -15,14 +15,14 @@ EXTRA_DIST = \ $(top_srcdir)/contrib/dracut/90zfs/zfs-generator.sh.in \ $(top_srcdir)/contrib/dracut/90zfs/zfs-lib.sh.in -$(pkgdracut_SCRIPTS): +$(pkgdracut_SCRIPTS):%:%.in -$(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,@systemdunitdir\@,$(systemdunitdir),g' \ - "$(top_srcdir)/contrib/dracut/90zfs/[email protected]" >'$@' + $< >'$@' distclean-local:: -$(RM) $(pkgdracut_SCRIPTS) |