mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-03-11 22:13:10 +03:00

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
20 lines
520 B
Makefile
20 lines
520 B
Makefile
pkgpyzfsdir = $(datadir)/@PACKAGE@/zfs-tests/tests/functional/pyzfs
|
|
pkgpyzfs_SCRIPTS = \
|
|
pyzfs_unittest.ksh
|
|
|
|
EXTRA_DIST = \
|
|
pyzfs_unittest.ksh.in
|
|
|
|
#
|
|
# The pyzfs module is built either for Python 2 or Python 3. In order
|
|
# to properly test it the unit tests must be updated to the matching version.
|
|
#
|
|
$(pkgpyzfs_SCRIPTS):%:%.in
|
|
-$(SED) -e 's,@PYTHON\@,$(PYTHON),g' \
|
|
$< >'$@'
|
|
-chmod 775 $@
|
|
|
|
# Double-colon rules are allowed; there are multiple independent definitions.
|
|
distclean-local::
|
|
-$(RM) $(pkgpyzfs_SCRIPTS)
|