git: 3c9a11c9111b - main - security/vuxml: Fix make vuln-flat.xml

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Mon, 02 Jun 2025 16:11:51 UTC
The branch main has been updated by fernape:

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

commit 3c9a11c9111b919560041206b31ec877d9cc8ca1
Author:     Fernando Apesteguía <fernape@FreeBSD.org>
AuthorDate: 2025-06-02 16:08:50 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2025-06-02 16:10:41 +0000

    security/vuxml: Fix make vuln-flat.xml
    
    According to the documentation, we should be able to type:
    
    make vuln-flat.xml
    
    (https://docs.freebsd.org/en/books/porters-handbook/book/#security-notify-vuxml-testing)
    
    But after 87748de634d7b the target name includes the PKGDIR which is not right.
    
    Fixes:  87748de634d7b
---
 security/vuxml/Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/security/vuxml/Makefile b/security/vuxml/Makefile
index 3e5d1d98ab34..40ea52b43075 100644
--- a/security/vuxml/Makefile
+++ b/security/vuxml/Makefile
@@ -31,7 +31,8 @@ dir_DTD=	share/xml/dtd/vuxml
 .include <bsd.port.pre.mk>
 
 VUXML_FILE?=	${PKGDIR}/vuln.xml
-VUXML_FLAT_FILE?=	${PKGDIR}/vuln-flat.xml
+VUXML_FLAT_NAME=	vuln-flat.xml
+VUXML_FLAT_FILE?=	${PKGDIR}/${VUXML_FLAT_NAME}
 _YEAR!=	date +%Y
 VUXML_CURRENT_FILE?=	${PKGDIR}/vuln/${_YEAR}.xml
 
@@ -57,7 +58,7 @@ do-test:
 	@${CP} -R ${.CURDIR}/vuln.xml ${.CURDIR}/vuln ${WRKDIR}/test
 	@cd ${.CURDIR} && make validate PKGDIR=${WRKDIR}/test
 
-${VUXML_FLAT_FILE}: ${VUXML_FILE} vuln/*.xml
+${VUXML_FLAT_NAME}: ${VUXML_FILE} vuln/*.xml
 	xmllint -noent ${.ALLSRC:[1]} > ${.TARGET}
 
 validate: tidy