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
This commit is contained in:
Fernando Apesteguía 2025-06-02 18:08:50 +02:00
parent 7465473495
commit 3c9a11c911

View File

@ -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