subpackages: fix make flavors-package-names

if the ports has flavors and subpackages then the list of names
are properly displayed 1 per line, but if the ports as no flavors
then it reported everything inline, breaking pkg version and
probably other tools

Reported by:	many
This commit is contained in:
Baptiste Daroussin 2024-02-05 17:24:51 +01:00
parent 3eb53f7f29
commit 2a58fba415

View file

@ -4844,7 +4844,7 @@ pretty-flavors-package-names: .PHONY
flavors-package-names: .PHONY
. if empty(FLAVORS)
@${ECHO_CMD} "${PKGNAMES}"
@${ECHO_CMD} "${PKGNAMES}" | ${XARGS} -n 1
. else
. for f in ${FLAVORS}
@cd ${.CURDIR} && ${SETENV} -i FLAVOR=${f} ${MAKE} -B -V PKGNAMES | ${XARGS} -n 1