From b00aff92a6493cb7f46d6a5a6c4ef92527140cc8 Mon Sep 17 00:00:00 2001 From: Glen Barber Date: Thu, 21 Mar 2019 18:23:41 +0000 Subject: [PATCH] Ensure the generated ports category XML files are always recreated. If a build failure is triggered, such as a port Makefile contains a non-ASCII apostrophe, the generated files are not replaced if they exist (even if an error occurs). In such a case, manual intervention would be needed to remove the file(s) that would cause the build failure. Sponsored by: The FreeBSD Foundation --- en_US.ISO8859-1/htdocs/ports/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/en_US.ISO8859-1/htdocs/ports/Makefile b/en_US.ISO8859-1/htdocs/ports/Makefile index 379e00ca65..1077d4d105 100644 --- a/en_US.ISO8859-1/htdocs/ports/Makefile +++ b/en_US.ISO8859-1/htdocs/ports/Makefile @@ -47,7 +47,7 @@ packages.exists: ${TOUCH} ${.TARGET} .endif -Makefile.gen: categories-alpha.xml categories-grouped.xml index.xml \ +Makefile.gen: .PHONY categories-alpha.xml categories-grouped.xml index.xml \ installing.xml master-index.xml references.xml searching.xml \ statistics.ent updating.xml .NOTMAIN ( ${ECHO_CMD} DOCS= *.xml | ${SED} 's|catalog-cwd\.xml||g';\ @@ -68,7 +68,7 @@ categories-grouped.xml master-index.xml statistics.ent: categories-alpha.xml # this builds: categories-alpha.xml, categories-grouped.xml, # master-index.xml, statistics.ent, .xml CATEGORYLIST=`grep "^[a-z]" categories | sed -e s"/,.*//"` -categories-alpha.xml: ${INDEX} categories categories.descriptions \ +categories-alpha.xml: .PHONY ${INDEX} categories categories.descriptions \ packages.exists portindex ports.ent .NOTMAIN ${RM} -f categories-alpha.xml categories-grouped.xml \ master-index.xml statistics.ent