From ebe241d93c3cce4ef350e09323a0ffb31c3e69e4 Mon Sep 17 00:00:00 2001
From: Glen Barber <gjb@FreeBSD.org>
Date: Sat, 5 Dec 2020 00:57:59 +0000
Subject: [PATCH] Avoid an unnecessary secondary 'svn co' call in the 'make
 install' target.  This should only be executed during 'make all', the latter
 causes unnecessary filesystem pollution.

Sponsored by:	Rubicon Communications, LLC (netgate.com)
---
 en_US.ISO8859-1/htdocs/releases/12.0R/hardware/Makefile | 2 +-
 en_US.ISO8859-1/htdocs/releases/12.1R/hardware/Makefile | 2 +-
 en_US.ISO8859-1/htdocs/releases/12.2R/hardware/Makefile | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/en_US.ISO8859-1/htdocs/releases/12.0R/hardware/Makefile b/en_US.ISO8859-1/htdocs/releases/12.0R/hardware/Makefile
index 5c5e8fdbbd..4a0369c8a0 100644
--- a/en_US.ISO8859-1/htdocs/releases/12.0R/hardware/Makefile
+++ b/en_US.ISO8859-1/htdocs/releases/12.0R/hardware/Makefile
@@ -21,7 +21,7 @@ FORMATS?=		html txt
 INSTALL_COMPRESSED?=	gz
 INSTALL_ONLY_COMPRESSED=
 
-.if ${.TARGET:M${DOC}.html}
+.if ${.TARGET:M${DOC}.html} && !make(install)
 MAN4TMP!=	${MKTEMP} -d ${.CURDIR}/svn.XXXXXXXX
 MAN4DIR=	${MAN4TMP}
 .if exists(${MAN4DIR})
diff --git a/en_US.ISO8859-1/htdocs/releases/12.1R/hardware/Makefile b/en_US.ISO8859-1/htdocs/releases/12.1R/hardware/Makefile
index 5c5e8fdbbd..4a0369c8a0 100644
--- a/en_US.ISO8859-1/htdocs/releases/12.1R/hardware/Makefile
+++ b/en_US.ISO8859-1/htdocs/releases/12.1R/hardware/Makefile
@@ -21,7 +21,7 @@ FORMATS?=		html txt
 INSTALL_COMPRESSED?=	gz
 INSTALL_ONLY_COMPRESSED=
 
-.if ${.TARGET:M${DOC}.html}
+.if ${.TARGET:M${DOC}.html} && !make(install)
 MAN4TMP!=	${MKTEMP} -d ${.CURDIR}/svn.XXXXXXXX
 MAN4DIR=	${MAN4TMP}
 .if exists(${MAN4DIR})
diff --git a/en_US.ISO8859-1/htdocs/releases/12.2R/hardware/Makefile b/en_US.ISO8859-1/htdocs/releases/12.2R/hardware/Makefile
index 5c5e8fdbbd..4a0369c8a0 100644
--- a/en_US.ISO8859-1/htdocs/releases/12.2R/hardware/Makefile
+++ b/en_US.ISO8859-1/htdocs/releases/12.2R/hardware/Makefile
@@ -21,7 +21,7 @@ FORMATS?=		html txt
 INSTALL_COMPRESSED?=	gz
 INSTALL_ONLY_COMPRESSED=
 
-.if ${.TARGET:M${DOC}.html}
+.if ${.TARGET:M${DOC}.html} && !make(install)
 MAN4TMP!=	${MKTEMP} -d ${.CURDIR}/svn.XXXXXXXX
 MAN4DIR=	${MAN4TMP}
 .if exists(${MAN4DIR})