mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-28 03:49:38 +03:00
142f84dd19
The double-colon looked like a typo, but it's actually an obscure feature. Rules with :: may appear multiple times and are run independently of one another in the order they appear. The use of :: for distclean-local was conventional, not accidental. Add comments to indicate the intentional use of double-colon rules. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ryan Moeller <ryan@ixsystems.com> Closes #9210
25 lines
740 B
Makefile
25 lines
740 B
Makefile
pkgdracutdir = $(dracutdir)/modules.d/02zfsexpandknowledge
|
|
pkgdracut_SCRIPTS = \
|
|
module-setup.sh
|
|
|
|
EXTRA_DIST = \
|
|
$(top_srcdir)/contrib/dracut/02zfsexpandknowledge/module-setup.sh.in
|
|
|
|
$(pkgdracut_SCRIPTS):%:%.in
|
|
-$(SED) -e 's,@bindir\@,$(bindir),g' \
|
|
-e 's,@sbindir\@,$(sbindir),g' \
|
|
-e 's,@datadir\@,$(datadir),g' \
|
|
-e 's,@dracutdir\@,$(dracutdir),g' \
|
|
-e 's,@udevdir\@,$(udevdir),g' \
|
|
-e 's,@udevruledir\@,$(udevruledir),g' \
|
|
-e 's,@sysconfdir\@,$(sysconfdir),g' \
|
|
$< >'$@'
|
|
|
|
# Double-colon rules are allowed; there are multiple independent definitions.
|
|
clean-local::
|
|
-$(RM) $(pkgdracut_SCRIPTS)
|
|
|
|
# Double-colon rules are allowed; there are multiple independent definitions.
|
|
distclean-local::
|
|
-$(RM) $(pkgdracut_SCRIPTS)
|