[Bug 274272] usr.bin/bmake: does not create make if tests dir does not exist

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 05 Oct 2023 01:56:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274272

            Bug ID: 274272
           Summary: usr.bin/bmake: does not create make if tests dir does
                    not exist
           Product: Base System
           Version: 13.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: rozhuk.im@gmail.com

/usr/src/usr.bin/bmake/Makefile.inc
...
.if exists(${.CURDIR}/tests)
PROG= make
.if ${PROGNAME:U} != "bmake"
LINKS= ${BINDIR}/make ${BINDIR}/bmake
MLINKS= ${MAN} b${MAN}
.endif
.endif
...

This looks strange, FreeBSD relies that 'make' always exist.

As far I understand from git history, probably it should be:
.if exists(${.CURDIR}/tests)
PROG= make
.endif

.if ${PROGNAME:U} != "bmake"
LINKS= ${BINDIR}/make ${BINDIR}/bmake
MLINKS= ${MAN} b${MAN}
.endif

-- 
You are receiving this mail because:
You are the assignee for the bug.