git: b0d32c507419 - main - ports-mgmt/poudriere*: Fix build when not using 'make test'

From: Bryan Drewery <bdrewery_at_FreeBSD.org>
Date: Wed, 24 Apr 2024 14:42:15 UTC
The branch main has been updated by bdrewery:

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

commit b0d32c507419c35c3eb5572d0b2889111e0323ba
Author:     Bryan Drewery <bdrewery@FreeBSD.org>
AuthorDate: 2024-04-24 14:37:58 +0000
Commit:     Bryan Drewery <bdrewery@FreeBSD.org>
CommitDate: 2024-04-24 14:42:04 +0000

    ports-mgmt/poudriere*: Fix build when not using 'make test'
---
 ports-mgmt/poudriere-devel/Makefile | 2 ++
 ports-mgmt/poudriere/Makefile       | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/ports-mgmt/poudriere-devel/Makefile b/ports-mgmt/poudriere-devel/Makefile
index 8e01abc4f4d6..8bfb4181cd06 100644
--- a/ports-mgmt/poudriere-devel/Makefile
+++ b/ports-mgmt/poudriere-devel/Makefile
@@ -39,7 +39,9 @@ QEMU_RUN_DEPENDS=	qemu-user-static>0:emulators/qemu-user-static
 # gmake is not strictly needed but handles test jobs better
 TEST_DEPENDS=	gmake>0:devel/gmake
 TEST_ENV=	MAKE=gmake
+.if make(test)
 MAKE_CMD=	gmake
+.endif
 TEST_TARGET=	check
 TEST_ARGS=	-s
 TEST_ARGS+=	${_MAKE_JOBS}
diff --git a/ports-mgmt/poudriere/Makefile b/ports-mgmt/poudriere/Makefile
index ab6a7a2d31fb..6785266da65d 100644
--- a/ports-mgmt/poudriere/Makefile
+++ b/ports-mgmt/poudriere/Makefile
@@ -38,7 +38,9 @@ QEMU_RUN_DEPENDS=	qemu-user-static>0:emulators/qemu-user-static
 # gmake is not strictly needed but handles test jobs better
 TEST_DEPENDS=	gmake>0:devel/gmake
 TEST_ENV=	MAKE=gmake
+.if make(test)
 MAKE_CMD=	gmake
+.endif
 TEST_TARGET=	check
 TEST_ARGS=	-s
 TEST_ARGS+=	${_MAKE_JOBS}