git: c4ee3f24d28f - main - Mk: Don't generate an empty apply-slist target.

Mathieu Arnold mat at FreeBSD.org
Wed Apr 14 15:41:43 UTC 2021


The branch main has been updated by mat:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c4ee3f24d28ff92011fe4654776440b1d93bd1ad

commit c4ee3f24d28ff92011fe4654776440b1d93bd1ad
Author:     Mathieu Arnold <mat at FreeBSD.org>
AuthorDate: 2021-04-13 10:54:28 +0000
Commit:     Mathieu Arnold <mat at FreeBSD.org>
CommitDate: 2021-04-14 15:41:07 +0000

    Mk: Don't generate an empty apply-slist target.
---
 Mk/bsd.port.mk | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index db32745e215c..e796e84ee605 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -4513,9 +4513,8 @@ pretty-print-run-depends-list:
 .endif
 
 _SUB_LIST_TEMP=	${SUB_LIST:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/}
-.if !target(apply-slist)
+.if !target(apply-slist) && defined(SUB_FILES)
 apply-slist:
-.if defined(SUB_FILES)
 .for file in ${SUB_FILES}
 .if !exists(${FILESDIR}/${file}.in)
 	@${ECHO_MSG} "** Missing ${FILESDIR}/${file}.in for ${PKGNAME}."; exit 1
@@ -4529,7 +4528,6 @@ ${i:S/-//:tu}=	${WRKDIR}/${SUB_FILES:M${i}*}
 .endif
 .endfor
 .endif
-.endif
 
 # Generate packing list.  Also tests to make sure all required package
 # files exist.


More information about the dev-commits-ports-all mailing list