head	1.87;
access;
symbols
	pkgsrc-2026Q1:1.87.0.8
	pkgsrc-2026Q1-base:1.87
	pkgsrc-2025Q4:1.87.0.6
	pkgsrc-2025Q4-base:1.87
	pkgsrc-2025Q3:1.87.0.4
	pkgsrc-2025Q3-base:1.87
	pkgsrc-2025Q2:1.87.0.2
	pkgsrc-2025Q2-base:1.87
	pkgsrc-2025Q1:1.84.0.2
	pkgsrc-2025Q1-base:1.84
	pkgsrc-2024Q4:1.82.0.4
	pkgsrc-2024Q4-base:1.82
	pkgsrc-2024Q3:1.82.0.2
	pkgsrc-2024Q3-base:1.82
	pkgsrc-2024Q2:1.80.0.14
	pkgsrc-2024Q2-base:1.80
	pkgsrc-2024Q1:1.80.0.12
	pkgsrc-2024Q1-base:1.80
	pkgsrc-2023Q4:1.80.0.10
	pkgsrc-2023Q4-base:1.80
	pkgsrc-2023Q3:1.80.0.8
	pkgsrc-2023Q3-base:1.80
	pkgsrc-2023Q2:1.80.0.6
	pkgsrc-2023Q2-base:1.80
	pkgsrc-2023Q1:1.80.0.4
	pkgsrc-2023Q1-base:1.80
	pkgsrc-2022Q4:1.80.0.2
	pkgsrc-2022Q4-base:1.80
	pkgsrc-2022Q3:1.79.0.18
	pkgsrc-2022Q3-base:1.79
	pkgsrc-2022Q2:1.79.0.16
	pkgsrc-2022Q2-base:1.79
	pkgsrc-2022Q1:1.79.0.14
	pkgsrc-2022Q1-base:1.79
	pkgsrc-2021Q4:1.79.0.12
	pkgsrc-2021Q4-base:1.79
	pkgsrc-2021Q3:1.79.0.10
	pkgsrc-2021Q3-base:1.79
	pkgsrc-2021Q2:1.79.0.8
	pkgsrc-2021Q2-base:1.79
	pkgsrc-2021Q1:1.79.0.6
	pkgsrc-2021Q1-base:1.79
	pkgsrc-2020Q4:1.79.0.4
	pkgsrc-2020Q4-base:1.79
	pkgsrc-2020Q3:1.79.0.2
	pkgsrc-2020Q3-base:1.79
	pkgsrc-2020Q2:1.78.0.2
	pkgsrc-2020Q2-base:1.78
	pkgsrc-2020Q1:1.73.0.14
	pkgsrc-2020Q1-base:1.73
	pkgsrc-2019Q4:1.73.0.36
	pkgsrc-2019Q4-base:1.73
	pkgsrc-2019Q3:1.73.0.32
	pkgsrc-2019Q3-base:1.73
	pkgsrc-2019Q2:1.73.0.30
	pkgsrc-2019Q2-base:1.73
	pkgsrc-2019Q1:1.73.0.28
	pkgsrc-2019Q1-base:1.73
	pkgsrc-2018Q4:1.73.0.26
	pkgsrc-2018Q4-base:1.73
	pkgsrc-2018Q3:1.73.0.24
	pkgsrc-2018Q3-base:1.73
	pkgsrc-2018Q2:1.73.0.22
	pkgsrc-2018Q2-base:1.73
	pkgsrc-2018Q1:1.73.0.20
	pkgsrc-2018Q1-base:1.73
	pkgsrc-2017Q4:1.73.0.18
	pkgsrc-2017Q4-base:1.73
	pkgsrc-2017Q3:1.73.0.16
	pkgsrc-2017Q3-base:1.73
	pkgsrc-2017Q2:1.73.0.12
	pkgsrc-2017Q2-base:1.73
	pkgsrc-2017Q1:1.73.0.10
	pkgsrc-2017Q1-base:1.73
	pkgsrc-2016Q4:1.73.0.8
	pkgsrc-2016Q4-base:1.73
	pkgsrc-2016Q3:1.73.0.6
	pkgsrc-2016Q3-base:1.73
	pkgsrc-2016Q2:1.73.0.4
	pkgsrc-2016Q2-base:1.73
	pkgsrc-2016Q1:1.73.0.2
	pkgsrc-2016Q1-base:1.73
	pkgsrc-2015Q4:1.71.0.6
	pkgsrc-2015Q4-base:1.71
	pkgsrc-2015Q3:1.71.0.4
	pkgsrc-2015Q3-base:1.71
	pkgsrc-2015Q2:1.71.0.2
	pkgsrc-2015Q2-base:1.71
	pkgsrc-2015Q1:1.67.0.10
	pkgsrc-2015Q1-base:1.67
	pkgsrc-2014Q4:1.67.0.8
	pkgsrc-2014Q4-base:1.67
	pkgsrc-2014Q3:1.67.0.6
	pkgsrc-2014Q3-base:1.67
	pkgsrc-2014Q2:1.67.0.4
	pkgsrc-2014Q2-base:1.67
	pkgsrc-2014Q1:1.67.0.2
	pkgsrc-2014Q1-base:1.67
	pkgsrc-2013Q4:1.63.0.8
	pkgsrc-2013Q4-base:1.63
	pkgsrc-2013Q3:1.63.0.6
	pkgsrc-2013Q3-base:1.63
	pkgsrc-2013Q2:1.63.0.4
	pkgsrc-2013Q2-base:1.63
	pkgsrc-2013Q1:1.63.0.2
	pkgsrc-2013Q1-base:1.63
	pkgsrc-2012Q4:1.60.0.2
	pkgsrc-2012Q4-base:1.60
	pkgsrc-2012Q3:1.58.0.2
	pkgsrc-2012Q3-base:1.58
	pkgsrc-2012Q2:1.57.0.2
	pkgsrc-2012Q2-base:1.57
	pkgsrc-2012Q1:1.55.0.8
	pkgsrc-2012Q1-base:1.55
	pkgsrc-2011Q4:1.55.0.6
	pkgsrc-2011Q4-base:1.55
	pkgsrc-2011Q3:1.55.0.4
	pkgsrc-2011Q3-base:1.55
	pkgsrc-2011Q2:1.55.0.2
	pkgsrc-2011Q2-base:1.55
	pkgsrc-2011Q1:1.53.0.6
	pkgsrc-2011Q1-base:1.53
	pkgsrc-2010Q4:1.53.0.4
	pkgsrc-2010Q4-base:1.53
	pkgsrc-2010Q3:1.53.0.2
	pkgsrc-2010Q3-base:1.53
	pkgsrc-2010Q2:1.51.0.2
	pkgsrc-2010Q2-base:1.51
	pkgsrc-2010Q1:1.49.0.6
	pkgsrc-2010Q1-base:1.49
	pkgsrc-2009Q4:1.49.0.4
	pkgsrc-2009Q4-base:1.49
	pkgsrc-2009Q3:1.49.0.2
	pkgsrc-2009Q3-base:1.49
	pkgsrc-2009Q2:1.47.0.2
	pkgsrc-2009Q2-base:1.47
	pkgsrc-2009Q1:1.46.0.4
	pkgsrc-2009Q1-base:1.46
	pkgsrc-2008Q4:1.46.0.2
	pkgsrc-2008Q4-base:1.46
	pkgsrc-2008Q3:1.44.0.8
	pkgsrc-2008Q3-base:1.44
	cube-native-xorg:1.44.0.6
	cube-native-xorg-base:1.44
	pkgsrc-2008Q2:1.44.0.4
	pkgsrc-2008Q2-base:1.44
	cwrapper:1.44.0.2
	pkgsrc-2008Q1:1.41.0.2
	pkgsrc-2008Q1-base:1.41
	pkgsrc-2007Q4:1.38.0.4
	pkgsrc-2007Q4-base:1.38
	pkgsrc-2007Q3:1.38.0.2
	pkgsrc-2007Q3-base:1.38
	pkgsrc-2007Q2:1.35.0.2
	pkgsrc-2007Q2-base:1.35
	pkgsrc-2007Q1:1.33.0.2
	pkgsrc-2007Q1-base:1.33
	pkgsrc-2006Q4:1.30.0.4
	pkgsrc-2006Q4-base:1.30
	pkgsrc-2006Q3:1.30.0.2
	pkgsrc-2006Q3-base:1.30
	pkgsrc-2006Q2:1.28.0.6
	pkgsrc-2006Q2-base:1.28
	pkgsrc-2006Q1:1.28.0.4
	pkgsrc-2006Q1-base:1.28
	pkgsrc-2005Q4:1.28.0.2
	pkgsrc-2005Q4-base:1.28
	pkgsrc-2005Q3:1.23.0.2
	pkgsrc-2005Q3-base:1.23
	pkgsrc-2005Q2:1.22.0.2
	pkgsrc-2005Q2-base:1.22
	pkgsrc-2005Q1:1.20.0.8
	pkgsrc-2005Q1-base:1.20
	pkgsrc-2004Q4:1.20.0.6
	pkgsrc-2004Q4-base:1.20
	pkgsrc-2004Q3:1.20.0.4
	pkgsrc-2004Q3-base:1.20
	pkgsrc-2004Q2:1.20.0.2
	pkgsrc-2004Q2-base:1.20
	pkgsrc-2004Q1:1.19.0.2
	pkgsrc-2004Q1-base:1.19
	pkgsrc-2003Q4:1.15.0.2
	pkgsrc-2003Q4-base:1.15
	netbsd-1-6-1:1.7.0.2
	netbsd-1-6-1-base:1.7
	netbsd-1-6:1.4.0.8
	netbsd-1-6-RELEASE-base:1.4
	pkgviews:1.4.0.4
	pkgviews-base:1.4
	buildlink2:1.4.0.2
	buildlink2-base:1.4
	netbsd-1-5-PATCH003:1.4
	pkgsrc-base:1.1.1.1
	TNF:1.1.1;
locks; strict;
comment	@# @;


1.87
date	2025.04.21.16.30.06;	author wiz;	state Exp;
branches;
next	1.86;
commitid	h9Yxv0QovKw4dWRF;

1.86
date	2025.04.19.08.07.26;	author wiz;	state Exp;
branches;
next	1.85;
commitid	ihnGLXtCRt4BuDRF;

1.85
date	2025.03.30.09.54.07;	author nia;	state Exp;
branches;
next	1.84;
commitid	PZDIn39Vqqe2J4PF;

1.84
date	2025.03.05.11.44.42;	author nia;	state Exp;
branches;
next	1.83;
commitid	Qi7NTBClm6AM8SLF;

1.83
date	2025.01.13.11.24.46;	author jperkin;	state Exp;
branches;
next	1.82;
commitid	p6QKJF7RbIFBFjFF;

1.82
date	2024.09.17.11.52.26;	author jperkin;	state Exp;
branches;
next	1.81;
commitid	qkh1nR0MQr0PB9qF;

1.81
date	2024.07.15.09.10.05;	author jperkin;	state Exp;
branches;
next	1.80;
commitid	osXbwYT507acJUhF;

1.80
date	2022.11.09.13.14.07;	author joerg;	state Exp;
branches;
next	1.79;
commitid	dN5ujJQiZbvcR11E;

1.79
date	2020.07.06.10.24.04;	author jperkin;	state Exp;
branches;
next	1.78;
commitid	qbmalogLF1H2r0fC;

1.78
date	2020.06.18.10.07.35;	author jperkin;	state Exp;
branches;
next	1.77;
commitid	meZv7Kvxr4zJUGcC;

1.77
date	2020.06.12.16.01.36;	author jperkin;	state Exp;
branches;
next	1.76;
commitid	YCBliDSv4CLp3XbC;

1.76
date	2020.06.02.10.07.33;	author sjmulder;	state Exp;
branches;
next	1.75;
commitid	uaIhnfL3bPoRqDaC;

1.75
date	2020.05.24.21.10.17;	author nia;	state Exp;
branches;
next	1.74;
commitid	0vrKhR8DjGugox9C;

1.74
date	2020.05.24.11.09.43;	author nia;	state Exp;
branches;
next	1.73;
commitid	FUp9tkuKo2xX3u9C;

1.73
date	2016.02.25.12.12.47;	author jperkin;	state Exp;
branches;
next	1.72;
commitid	DLROVrVW2OU1fiWy;

1.72
date	2016.01.24.16.14.44;	author jperkin;	state Exp;
branches;
next	1.71;
commitid	6ZtJ8Q9tACZQncSy;

1.71
date	2015.06.17.17.37.50;	author tron;	state Exp;
branches;
next	1.70;
commitid	JOTfftzDKl3naOpy;

1.70
date	2015.05.19.22.04.35;	author joerg;	state Exp;
branches;
next	1.69;
commitid	ExPKFWtrSDV3z6my;

1.69
date	2015.05.03.14.23.09;	author sevan;	state Exp;
branches;
next	1.68;
commitid	8abinOhYvJCNv0ky;

1.68
date	2015.04.16.11.40.43;	author joerg;	state Exp;
branches;
next	1.67;
commitid	EOTbaN6XuJwLbOhy;

1.67
date	2014.03.14.21.59.34;	author ryoon;	state Exp;
branches;
next	1.66;
commitid	Fk66RmnE1wTepIsx;

1.66
date	2014.02.16.08.55.22;	author ryoon;	state Exp;
branches;
next	1.65;
commitid	Uv90VbadBLs3Uipx;

1.65
date	2014.02.15.10.42.52;	author jperkin;	state Exp;
branches;
next	1.64;
commitid	gI9omf3mRYvNwbpx;

1.64
date	2014.02.14.16.09.18;	author jperkin;	state Exp;
branches;
next	1.63;
commitid	H4rhPTMVkzmTm5px;

1.63
date	2013.02.26.00.52.20;	author christos;	state Exp;
branches;
next	1.62;

1.62
date	2013.02.18.22.38.19;	author adam;	state Exp;
branches;
next	1.61;

1.61
date	2013.01.31.22.55.22;	author hans;	state Exp;
branches;
next	1.60;

1.60
date	2012.11.01.16.48.12;	author sjg;	state Exp;
branches;
next	1.59;

1.59
date	2012.10.31.11.16.40;	author asau;	state Exp;
branches;
next	1.58;

1.58
date	2012.07.24.13.18.00;	author jperkin;	state Exp;
branches;
next	1.57;

1.57
date	2012.06.15.09.54.41;	author jperkin;	state Exp;
branches;
next	1.56;

1.56
date	2012.06.10.12.44.27;	author asau;	state Exp;
branches;
next	1.55;

1.55
date	2011.06.18.22.43.34;	author bsiegert;	state Exp;
branches;
next	1.54;

1.54
date	2011.05.09.07.48.57;	author cheusov;	state Exp;
branches;
next	1.53;

1.53
date	2010.09.10.02.42.59;	author obache;	state Exp;
branches;
next	1.52;

1.52
date	2010.09.07.14.45.39;	author joerg;	state Exp;
branches;
next	1.51;

1.51
date	2010.04.24.21.10.52;	author joerg;	state Exp;
branches;
next	1.50;

1.50
date	2010.04.21.14.29.43;	author joerg;	state Exp;
branches;
next	1.49;

1.49
date	2009.09.19.06.44.33;	author tron;	state Exp;
branches;
next	1.48;

1.48
date	2009.09.18.21.27.25;	author joerg;	state Exp;
branches;
next	1.47;

1.47
date	2009.04.09.00.48.07;	author joerg;	state Exp;
branches;
next	1.46;

1.46
date	2008.11.11.20.01.58;	author joerg;	state Exp;
branches;
next	1.45;

1.45
date	2008.11.11.14.41.21;	author joerg;	state Exp;
branches;
next	1.44;

1.44
date	2008.06.19.18.36.51;	author joerg;	state Exp;
branches;
next	1.43;

1.43
date	2008.05.23.18.06.44;	author tnn;	state Exp;
branches;
next	1.42;

1.42
date	2008.05.23.17.43.31;	author tnn;	state Exp;
branches;
next	1.41;

1.41
date	2008.03.09.19.54.28;	author joerg;	state Exp;
branches;
next	1.40;

1.40
date	2008.03.03.17.45.34;	author jlam;	state Exp;
branches;
next	1.39;

1.39
date	2008.02.05.15.37.18;	author tnn;	state Exp;
branches;
next	1.38;

1.38
date	2007.09.21.10.16.28;	author rillig;	state Exp;
branches;
next	1.37;

1.37
date	2007.09.08.21.57.58;	author jlam;	state Exp;
branches;
next	1.36;

1.36
date	2007.09.06.19.23.25;	author joerg;	state Exp;
branches;
next	1.35;

1.35
date	2007.04.12.21.28.42;	author joerg;	state Exp;
branches;
next	1.34;

1.34
date	2007.04.12.20.31.05;	author joerg;	state Exp;
branches;
next	1.33;

1.33
date	2007.03.05.00.24.33;	author dbj;	state Exp;
branches;
next	1.32;

1.32
date	2007.02.22.19.26.20;	author wiz;	state Exp;
branches;
next	1.31;

1.31
date	2007.01.31.00.04.11;	author wiz;	state Exp;
branches;
next	1.30;

1.30
date	2006.07.14.16.24.29;	author jlam;	state Exp;
branches;
next	1.29;

1.29
date	2006.07.14.15.18.17;	author jlam;	state Exp;
branches;
next	1.28;

1.28
date	2005.11.16.13.53.51;	author joerg;	state Exp;
branches;
next	1.27;

1.27
date	2005.11.10.00.09.34;	author reed;	state Exp;
branches;
next	1.26;

1.26
date	2005.11.02.18.16.04;	author tv;	state Exp;
branches;
next	1.25;

1.25
date	2005.11.01.00.07.20;	author reed;	state Exp;
branches;
next	1.24;

1.24
date	2005.10.31.21.34.25;	author reed;	state Exp;
branches;
next	1.23;

1.23
date	2005.09.04.17.09.54;	author sjg;	state Exp;
branches;
next	1.22;

1.22
date	2005.06.16.06.57.45;	author jlam;	state Exp;
branches;
next	1.21;

1.21
date	2005.05.31.20.52.53;	author sjg;	state Exp;
branches;
next	1.20;

1.20
date	2004.05.11.18.28.32;	author sjg;	state Exp;
branches;
next	1.19;

1.19
date	2004.02.21.00.15.44;	author sjg;	state Exp;
branches;
next	1.18;

1.18
date	2004.01.20.12.13.27;	author agc;	state Exp;
branches;
next	1.17;

1.17
date	2004.01.19.00.57.10;	author sjg;	state Exp;
branches;
next	1.16;

1.16
date	2003.12.22.23.26.43;	author sjg;	state Exp;
branches;
next	1.15;

1.15
date	2003.09.28.21.08.59;	author sjg;	state Exp;
branches;
next	1.14;

1.14
date	2003.09.16.17.14.08;	author grant;	state Exp;
branches;
next	1.13;

1.13
date	2003.08.03.05.50.04;	author sjg;	state Exp;
branches;
next	1.12;

1.12
date	2003.07.23.18.34.44;	author sjg;	state Exp;
branches;
next	1.11;

1.11
date	2003.07.20.23.25.20;	author sjg;	state Exp;
branches;
next	1.10;

1.10
date	2003.07.17.21.29.41;	author grant;	state Exp;
branches;
next	1.9;

1.9
date	2003.04.30.07.58.45;	author sjg;	state Exp;
branches;
next	1.8;

1.8
date	2003.03.29.12.40.30;	author jmmv;	state Exp;
branches;
next	1.7;

1.7
date	2002.12.01.06.27.39;	author sjg;	state Exp;
branches;
next	1.6;

1.6
date	2002.11.27.07.14.59;	author sjg;	state Exp;
branches;
next	1.5;

1.5
date	2002.09.20.07.00.52;	author sjg;	state Exp;
branches;
next	1.4;

1.4
date	2002.02.06.16.58.12;	author jlam;	state Exp;
branches;
next	1.3;

1.3
date	2001.10.18.21.41.06;	author sjg;	state Exp;
branches;
next	1.2;

1.2
date	2001.06.17.22.02.20;	author agc;	state Exp;
branches;
next	1.1;

1.1
date	2001.05.25.12.41.14;	author agc;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2001.05.25.12.41.14;	author agc;	state Exp;
branches;
next	;


desc
@@


1.87
log
@*: remove Interix support
@
text
@# $NetBSD: Makefile,v 1.86 2025/04/19 08:07:26 wiz Exp $

PKGNAME=	bmake-20240909
CATEGORIES=	devel
MASTER_SITES=	https://www.crufty.net/ftp/pub/sjg/

MAINTAINER=	pkgsrc-users@@pkgsrc.org
HOMEPAGE=	http://www.crufty.net/help/sjg/bmake.html
COMMENT=	Portable (autoconf) version of NetBSD 'make' utility
LICENSE=	modified-bsd

DEPENDS+=	bootstrap-mk-files-[0-9]*:../../pkgtools/bootstrap-mk-files

POLICY_UPDATE_LIMITED=	bootstrap

BOOTSTRAP_PKG=	yes

WRKSRC=		${WRKDIR}/bmake

USE_FEATURES=	nbcompat

INSTALLATION_DIRS=	bin ${PKGMANDIR}/cat1 ${PKGMANDIR}/man1

GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--with-default-sys-path=${PREFIX}/share/mk
CONFIGURE_ARGS+=	--with-force-machine-arch=${MACHINE_ARCH}
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR}

.include "../../mk/bsd.prefs.mk"

#
# This section is incomplete, but the general idea is that we should use the
# same shell that was selected by bootstrap.
#
.if ${TOOLS_PLATFORM.sh:M?*/bin/mksh}
DEPENDS+=		mksh-[0-9]*:../../shells/mksh
CONFIGURE_ARGS+=	--with-defshell=${PREFIX}/bin/mksh
.elif ${TOOLS_PLATFORM.sh:M?*/bin/pdksh}
DEPENDS+=		pdksh-[0-9]*:../../shells/pdksh
CONFIGURE_ARGS+=	--with-defshell=${PREFIX}/bin/pdksh
.elif (${OPSYS} == "SunOS" || ${OPSYS} == "UnixWare" || \
	${OPSYS} == "SCO_SV") && exists(/usr/bin/bash)
CONFIGURE_ARGS+=	--with-defshell=/usr/bin/bash
.endif

# Fix bmake not finding files (e.g. .include) on Illumos with 32 bit ABI
CFLAGS.SunOS+=	-D_FILE_OFFSET_BITS=64

do-extract:
	${CP} -R ${FILESDIR} ${WRKSRC}

do-build:
	cd ${WRKSRC} && \
		${SETENV} ${MAKE_ENV} ${SH} make-bootstrap.sh

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/bmake ${DESTDIR}${PREFIX}/bin
.if !empty(MANINSTALL:Mcatinstall)
.  if ${CATMAN_SECTION_SUFFIX:U:tl} == "yes"
	${INSTALL_MAN} ${WRKSRC}/bmake.cat1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1/bmake.1
.  else
	${INSTALL_MAN} ${WRKSRC}/bmake.cat1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/cat1/bmake.0
.  endif
.endif
	${INSTALL_MAN} ${WRKSRC}/bmake.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1

do-test:
	cd ${WRKSRC}/unit-tests && MAKEFLAGS= ${WRKSRC}/bmake -r -m / test

.include "../../mk/bsd.pkg.mk"
@


1.86
log
@*: mark bootstrap packages with POLICY_UPDATE_LIMITED=bootstrap
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.85 2025/03/30 09:54:07 nia Exp $
a45 2
MAKE_ENV.Interix+=	XDEFS=-DUSE_SELECT

@


1.85
log
@bmake: Use bash as the make shell on SCO_SV.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.84 2025/03/05 11:44:42 nia Exp $
d14 2
@


1.84
log
@bootstrap: Fixes and improved docs for UnixWare
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.83 2025/01/13 11:24:46 jperkin Exp $
d39 2
a40 1
.elif (${OPSYS} == "SunOS" || ${OPSYS} == "UnixWare") && exists(/usr/bin/bash)
@


1.83
log
@*: Drop MAINTAINER.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.82 2024/09/17 11:52:26 jperkin Exp $
d39 1
a39 1
.elif ${OPSYS} == "SunOS" && exists(/usr/bin/bash)
@


1.82
log
@bmake: Update to 20240909.

2024-09-16  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240909

	* arch.c: fix NetBSD PR 58597

2024-09-01  Simon J Gerraty  <sjg@@beast.crufty.net>

	* Makefile: use SUBDIR.${MK_TESTS} so that we skip
	unit-tests for obj and clean when FreeBSD is building WITHOUT_TESTS

	* VERSION (_MAKE_VERSION): 20240901
	Merge with NetBSD make, pick up
	o reduce line length in error messages
	o var.c: simplify printing of an evaluation stack element

2024-08-29  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240828
	Merge with NetBSD make, pick up
	o add more context to error message about recursive variables
	o treat recursive variables non-fatally - continue parsing to end
	of makefile

2024-08-12  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240808
	Merge with NetBSD make, pick up
	o improve some error messages for better clarify and readability

2024-07-22  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240722
	Merge with NetBSD make, pick up
	o job.c: remove dead code

2024-07-21  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240720
	Merge with NetBSD make, pick up
	o compat.c: do not run commands that have parse or evaluation errors.
	o var.c: remove wrong error message about an undefined variable
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.81 2024/07/15 09:10:05 jperkin Exp $
d7 1
a7 1
MAINTAINER=	jperkin@@pkgsrc.org
@


1.81
log
@bmake: Update to 20240711.

Take MAINTAINER, clean up, and remove old import scripts.  Tested on
NetBSD, Linux, macOS, and SmartOS.  All tests pass on all OS.  Also
tested in a full SmartOS bulk build, no regressions were observed.

Previous pkgsrc patches have all been merged upstream, so while systems
such as QNX were not tested due to lack of availability, I'm hopeful they
will continue to build cleanly.  Any issues, let me know ASAP.

Changes since 2020-05-24:

2024-07-13  Simon J Gerraty  <sjg@@beast.crufty.net>

	* cleanup redundant differences from NetBSD make
	o parse.c: no longer uses mmap
	o var.c: check __STDC_VERSION__ not __STDC__

2024-07-12  Simon J Gerraty  <sjg@@beast.crufty.net>

	* Apply some patches from NetBSD pkgsrc to reduce divergence
	o meta.c: requires sys/select.h if available
	o var.c: ensure SIZE_MAX has a value
	o util.c: ensure SA_RESTART is defined

	* configure.in: use *ksh* rather than just *ksh to match
	ksh shell specification.

	* unit-tests/Makefile: expand BROKEN_TESTS for ksh and
	mksh in particular

2024-07-11  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240711
	Merge with NetBSD make, pick up
	o compat.c: allow Compat_RunCommand to also handle very long
	commands by writing to a temp file when needed.
	o main.c: extract the temp file logic recently added to Cmd_Exec
	to Cmd_Argv so it can be leveraged by Compat_RunCommand.

2024-07-09  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240709
	Merge with NetBSD make, pick up
	o error out on parse/evaluation errors in shell commands
	o var.c: error out on syntax errors in ':M' and ':N' modifiers

2024-07-07  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240707
	Merge with NetBSD make, pick up
	o only generate code for cleanup functions in CLEANUP mode
	o hash.c: don't track hash table chain lengths during lookup
	unless debugging
	o main.c: move initialization of variable scopes to targ.c
	o var.c: remove Var_End as it is now unnecessary

2024-07-06  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240706
	Merge with NetBSD make, pick up
	o reduce lint comments about ARGSUSED
	o cond.c: error out on conditions containing the operators '&' and '|'
	o str.c: error out on a matching malformed matching pattern '[['
	o var.c: in error messages, distinguish parsing from evaluating
	in error messages for anonymous variables, log the value
	error out on unclosed expressions during parse time

2024-07-04  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240704
	Merge with NetBSD make, pick up
	o add more context information to error messages
	o main.c: on error, print the targets to be made
	add detailed exit status to message for failed sub-commands
	o var.c: error out on the "Bad modifier" error message

2024-07-01  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240701
	Merge with NetBSD make, pick up
	o var.c: add :tt for Title case

2024-06-30  Simon J Gerraty  <sjg@@beast.crufty.net>

	* configure.in: 20240630 further refine check for whether
	TZ=Europe/Berlin works

	* VERSION (_MAKE_VERSION): 20240630
	Merge with NetBSD make, pick up
	o job.c: reduce use of UNCONST
	o main.c: add detailed exit status to message for failed sub-commands
	o var.c: error out on some more syntax errors
	add more context to "returned non-zero status" message

2024-06-25  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240625
	Merge with NetBSD make, pick up
	o job.c: ensure shellPath is always duped, avoid upsetting free()

2024-06-16  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240616
	Merge with NetBSD make, pick up
	o clean up collection of context information for error messages
	o in warnings, move the word "warning" to the front
	o var.c: throw an error on attempt to override an internal
	read-only variable

2024-06-10  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240610
	Merge with NetBSD make, pick up
	o for.c: remove redundant shortcut for building the .for loop body

2024-06-02  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240602
	Merge with NetBSD make, pick up
	o rename some VarEvalMode constants to better match debug names.
	o var.c: avoid out-of-bounds read when parsing indirect modifiers.

2024-06-01  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240601
	Merge with NetBSD make, pick up
	o add .export-all rather than allow .export with no argument
	which can happen accidentally.
	o if lua is available, run check-expect.lua after unit-tests
	o main.c: use snprintf rather than strncpy
	fix memory leak when purging realpath cache.

2024-05-28  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240528
	Merge with NetBSD make, pick up
	o fix a number of memory leaks
	o replace magic numbers with POSIX FILENO constants
	o hash.c: remove dead code from HashTable_DeleteEntry
	o main.c: when complaining about unusable .OBJDIR
	call PrintOnError if MAKE_DEBUG_OBJDIR_CHECK_WRITABLE is true.
	o parse.c: use fewer technical terms in debug message for dependency

2024-05-20  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION):
	Merge with NetBSD make, pick up
	o dir.c: in FindFile restore last search of .CURDIR even for
	includes, as a number of existing makefiles are broken otherwise.

2024-05-19  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240519
	Merge with NetBSD make, pick up
	o dir.c: Add Dir_FindInclude, FindFile without looking in .CURDIR.
	Also fix Dir_SetSYSPATH to use defSysIncPath if sysIncPath is empty.
	o main.c: no need to set .DOTLAST in sysIncPath

2024-05-07  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240508
	Merge with NetBSD make, pick up
	o make: ensure variables set on command line get added to
	.MAKEOVERRIDES (even if they start with '.') so they are passed to
	sub-makes.

2024-04-30  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240430
	Merge with NetBSD make, pick up
	o main.c: ensure '.include <makefile>' respects MAKESYSPATH.
	Dir_FindFile will search .CURDIR first unless ".DOTLAST" is seen.

2024-04-28  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240428
	Merge with NetBSD make, pick up
	o simplify freeing of lists
	o arch.c: trim pointless comments
	o var.c: delay variable assignments until actually needed
	don't reallocate memory after evaluating an expression, result is
	almost always short-lived.

2024-04-26  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240426
	Merge with NetBSD make, pick up
	o job.c: in debug output, print the directory in which a job
	failed at same time as failed target so it is more easily found in
	build log.

2024-04-24  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240424
	Merge with NetBSD make, pick up
	o clean up comments, code and tests

2024-04-23  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240422
	Merge with NetBSD make, pick up
	o var.c: avoid LazyBuf for :*time modifiers.
	LazyBuf's are not nul terminated so not suitable for passing to
	functions that expect that. These modifiers are used sparingly so
	an extra allocation is not a problem.

2024-04-20  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240420
	Merge with NetBSD make, pick up
	o provide more context information for parse/evaluate errors

2024-04-14  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240414
	Merge with NetBSD make, pick up
	o parse.c: print -dp debug info earlier so we see which
	.if or .for line is being parsed.

2024-04-04  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240404
	Merge with NetBSD make, pick up
	o fix some unit tests for Cygwin
	o parse.c: exit immediately after reading a null byte from a makefile

	* fix generation of bmake.cat1

2024-03-19  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240314
	Add/Improve support for Cygwin
	o uname -s output isn't useful so allow configure to
	set FORCE_MAKE_OS - to force the value of .MAKE.OS
	and use Cygwin which matches uname -o
	o fix some unit-tests for Cygwin

2024-03-10  Simon J Gerraty  <sjg@@beast.crufty.net>

	* boot-strap: tests can take a long time; use a cookie to
	skip them if bmake has not been updated since tests last
	ran successfully.

	* Makefile: Cygwin handles MANTARGET man

	* unit-tests/Makefile: set BROKEN_TESTS for Cygwin

2024-03-09  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240309
	Merge with NetBSD make, pick up
	o set .ERROR_EXIT to the exit status of .ERROR_TARGET
	this allows a .ERROR target to ignore the case of
	.ERROR_EXIT==6 which just means that the build actually
	failed somewhere else.

2024-03-04  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240303

	* var.c: on IRIX we need both inttypes.h and stdint.h

2024-03-01  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240301
	Merge with NetBSD make, pick up
	o export variables with value from target scope
	when appropriate.

2024-02-12  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240212
	Merge with NetBSD make, pick up
	o remove unneeded conditional-compilation toggles
	INCLUDES, LIBRARIES, POSIX, SYSVINCLUDE, SYSVVARSUB,
	GMAKEEXPORT NO_REGEX and SUNSHCMD

	* configure.in: add check for regex.h

	* var.c: replace use of NO_REGEX with HAVE_REGEX_H

2024-02-04  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240204
	Merge with NetBSD make, pick up
	o var.c: fix some lint (-dL) mode parsing issues

2024-02-02  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION: (_MAKE_VERSION): 20240202
	Merge with NetBSD make, pick up
	o make.1: note that arg to :D and :U can be empty
	o var.c: $$ is not a parse error when .MAKE.SAVE_DOLLARS=no

2024-01-08  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240108
	Merge with NetBSD make, pick up
	o miscellaneous cleanups

2024-01-06  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240106
	Merge with NetBSD make, pick up
	o fix duplicate progname when reporting an unknown target
	o unit tests for Cmd_Exec using temp file

2024-01-05  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240105
	Merge with NetBSD make, pick up
	o main.c: Cmd_Exec write cmd to a file if too big
	avoid blowing commandline/env limits

2024-01-02  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20240101
	o util.c: flesh out more of strftime
	* configure.in: add --with-bmake-strftime
	it is not a full implementation but enough to pass all
	the unit-tests.
	* parse.c: LoadFile do not append \n to empty buffer.

2023-12-30  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20231230
	Merge with NetBSD make, pick up
	o simplify memory allocation for string buffers
	o fix declared types of list nodes
	o suff.c: clean up freeing of suffixes
	o var.c: simplify debug message for the ':@@var@@...@@' modifier
	clean up variable handling

2023-12-26  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20231226
	Merge with NetBSD make, pick up
	o compat.c: ensure make's output is correctly ordered with that of
	the target when not going to a tty
	o main.c: check for shellPath whether to call Shell_Init()

2023-12-24  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20231224
	Merge with NetBSD make, pick up
	o compat.c: check for shellPath whether to call Shell_Init()
	tweak the unit test to detect the bug thus fixed.
	o make.1: do not claim .SHELL is only used by jobs mode.

2023-12-22  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20231220
	Merge with NetBSD make, pick up
	o str.c: speed up pattern matching in the ':M' modifier
	o var.c: fix confusing debug logging when deleting a variable
	use consistent debug messages style when ignoring variables

2023-12-10  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20231210
	Merge with NetBSD make, pick up
	o var.c: avoid segfault on empty :C match expression
	explain in debug log why variable assignment is ignored.

2023-12-08  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20231208
	Merge with NetBSD make, pick up
	o var.c: ensure fromCmd is set correctly for variables set on
	command line.

2023-11-26  Simon J Gerraty  <sjg@@beast.crufty.net>

	* configure.in: disable generation of 'makefile' for
	Darwin by default.

	* boot-strap: docuement --without-makefile

2023-11-24  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20231124
	Merge with NetBSD make, pick up
	o main.c: cleanup processing of -j
	fix lint warning about strchr
	o var.c: more accurate error message for invalid ':mtime' argument
	cleanup :[...] modifier
	avoid reading beyond substring when comparing
	o unit-tests cover all cases of :mtime, test and explain exporting
	of variables
	o cleanup comments

2023-09-17  Simon J Gerraty  <sjg@@beast.crufty.net>

	* bsd.after-import.mk (ECHO_TAG): FreeBSD no longer uses
	$FreeBSD$ tag, so avoid adding it.

2023-09-09  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20230909
	Merge with NetBSD make, pick up
	o main.c: allow -j to compute a multiple of ncpu
	If _SC_NPROCESSORS_ONLN is supported; and -j arg is a floating
	point number or ends in 'C' compute .MAKE.JOBS as a multiple of
	_SC_NPROCESSORS_ONLN
	.MAKE.JOBS.C will be "yes" if -jC is supported

2023-08-20  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20230820
	Merge with NetBSD make, pick up
	o make.1: note that :localtime is better for %s
	o parse.c: improve error messages for invalid input.
	o var.c: fix for %s:L:gmtime - set TZ=UTC and use localtime to get
	correct result, it is still better to use %s:L:localtime.

2023-08-18  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20230818
	Merge with NetBSD make, pick up
	o meta.c: meta_ignore - check raw path against metaIgnorePaths
	to potentially skip call to realpath.
	o var.c: be strict when parsing the argument of the ':mtime' modifier
	o unit-tests/varmod-mtime.mk: document why '${%s:L:localtime}'
	should be used to get an equivalent value to time(3).

2023-08-16  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20230816
	Merge with NetBSD make, pick up
	o cond.c: clean up multiple-inclusion guards

2023-07-25  Simon J Gerraty  <sjg@@beast.crufty.net>

	* unit-tests/Makefile: addd varmod-localtime to BROKEN_TESTS
	if configure cannot work out how to control TZ.
	Remove varmod-localtime from BROKEN_TESTS for IRIX*

2023-07-24  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20230723

	* configure.in: fix the test for wether TZ=Europe/Berlin works.
	Depending on the time of year, if run between 22:00 and 00:00 UTC
	the check in configure would fail incorrectly.
	Take the day into account as well.

2023-07-18  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20230711
	Merge with NetBSD make, pick up
	o make.1: clean up wording, clarify scope of '!' in conditions

2023-07-15  Simon J Gerraty  <sjg@@beast.crufty.net>

	* make-bootstrap.sh.in: set prefix
	If configure is run using ksh we get unexpanded ${prefix} in
	DEFAULT_SYS_PATH, by ensuring prefix is set we should still get
	correct result.

2023-07-13  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20230711
	bump version for IRIX tweaks

	* make.h: undef OP_NONE if defined

	* unit-tests/Makefile: set BROKEN_TESTS for IRIX

	* configure.in: override INSTALL on IRIX

2023-06-27  Simon J Gerraty  <sjg@@beast.crufty.net>

	* boot-strap op_test: ensure we set TEST_MAKE as we want it.

2023-06-22  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20230622
	Merge with NetBSD make, pick up
	o optimize string matching for ':M' and ':N'
	o warn about malformed patterns in ':M', ':N' and '.if make(...)'

2023-06-21  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20230621
	Merge with NetBSD make, pick up
	o more extensive tests for include guards
	o parse.c: if a guard is already defined a file that uses the same
	guard is still guarded by it.

2023-06-20  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20230620
	Merge with NetBSD make, pick up
	o allow guards to be targets as well as variables
	The guard targets may include variable references like
	__${.PARSEDIR:tA}/${.PARSEFILE}__

2023-06-19  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20230619
	Merge with NetBSD make, pick up
	o unit test for .undef of readOnly vars
	o optimization for makefiles protected from multiple-inclusion
	skip even opening the file after first include.
	Initially this only handles makefiles guarded by a variable
	target guards are next.

2023-06-16  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20230616
	Merge with NetBSD make, pick up
	o var.c: do not allow delete of readOnly variable

2023-06-03  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20230601
	Merge with NetBSD make, pick up
	o parse.c: .break takes no args
	o lots of unit test updates

2023-05-29  Simon J Gerraty  <sjg@@beast.crufty.net>

	* unit-tests/Makefile: skip tests that require /dev/filemon
	if it does not exists - issue a warning.

2023-05-22  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20230522
	Fix building on darwin ppc

	* os.sh (MACHINE): Darwin powerpc cannot use `uname -m`
	also recent NetBSD uses x86_64 for MACHINE_ARCH so conform.

2023-05-15  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20230515

	* Makefile (COPTS.filemon_ktrace.c): NetBSD 7 needs help to
	compile filemon_ktrace.c

2023-05-13  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20230512
	o sys.dirdeps.mk - broke after-import target

2023-05-10  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20230510
	Merge with NetBSD make, pick up
	o parse.c: don't print null filename in stack traces
	o var.c: :mtime operate on each word in variable value

2023-05-09  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20230509
	Merge with NetBSD make, pick up
	o for.c: skip syntactically wrong .for loops
	o var.c: allow for :gmtime=${mtime}
	add :mtime[=timestamp] where timestamp is used if stat(2)
	fails, if :mtime=error stat(2) failure causes error.

2023-05-05  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20230504
	Merge with NetBSD make, pick up
	o compat.c: fix compile on NetBSD 7.2
	o make.1: fix documentation of .PREFIX to match reality and POSIX
	o unit-tests: improved var-scope-local

2023-04-14  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20230414
	Merge with NetBSD make, pick up
	o minor cleanup

2023-03-25  Simon J Gerraty  <sjg@@beast.crufty.net>

	* main.c: on some systems (eg OS/X) setting RLIMIT_NOFILE to
	unlimited results in an insane number (0x7fffffffffffffff).
	If BMAKE_NOFILE_MAX is defined, use that instead.

2023-03-22  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20230321
	Merge with NetBSD make, pick up
	* make.1: document seemingly unexplained Error code 6.

2023-03-18  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20230317
	Merge with NetBSD make, pick up
	o compat.c: CompatDeleteTarget skip .PHONY targets to be
	consistent with JobDeleteTarget.
	o job.c: fix memory leak in handling sysv :from=to modifiers

2023-03-04  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20230303
	Merge with NetBSD make, pick up
	o several updated unit-tests

2023-02-22  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20230222
	Merge with NetBSD make, pick up
	o unit tests for .MAKE.META.IGNORE_{FILTER,PATHS,PATTERNS}

2023-02-20  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20230218
	Merge with NetBSD make, pick up
	o var.c: fix parsing of unevaluated subexpressions with
	unbalanced '{}'

2023-02-17  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20230215
	Merge with NetBSD make, pick up
	o inline macros for some variable names
	o cond.c: reduce complexity of evaluating expressions

2023-02-08  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20230208
	Merge with NetBSD make, pick up
	o var.c: always use SCOPE_GLOBAL for :_ to avoid problems
	when it has been used within conditional expressions

2023-01-27  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20230127

	* install-sh: if making directories ensure umask is set
	to match mode.

	* Makefile: use DIRMODE for directories and
	NONBINMODE for man pages and mk files

2023-01-26  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20230126
	Merge with NetBSD make, pick up
	o variables like .newline and .MAKE.{GID,PID,PPID,UID}
	should be read-only.

2023-01-23  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20230123
	Merge with NetBSD make, pick up
	o .[NO]READONLY: for control of read-only variables
	o .SYSPATH: for controlling the path searched for makefiles

2023-01-20  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20230120
	Merge with NetBSD make, pick up
	o allow for white-space between command specifiers @@+-
	o add more details to warning 'Extra targets ignored'

2023-01-12  Simon J Gerraty  <sjg@@beast.crufty.net>

	* machine.sh: leverage os.sh rather than duplicate
	also dispence with the $OS.$MACHINE values - we have $HOST_TARGET
	for that purpose for the past decade or so.
	We invariably get MACHINE and MACHINE_ARCH at runtime anyway.

2023-01-02  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20230101
	Merge with NetBSD make, pick up
	o cleanup comments, inline some LazyBuf_ methods
	o unit-tests/ add/improve comments in tests
	o make.1: sync list of built-in variables with reality
	sort list of built-in variables
	reduce indentation of the long list of variable names
	use consistent markup for boolean flags
	move description of .MAKE.MODE below the .MAKE.META block
	clarify in which case an expression may omit braces

2022-11-08  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20221024
	Merge with NetBSD make, pick up
	o change return type of unlink_file back to int

2022-10-07  Simon J Gerraty  <sjg@@beast.crufty.net>

	* Makefile: Darwin and Linux can handle MANTARGET=man

2022-09-28  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20220928
	Merge with NetBSD make, pick up
	o fix more ignored returns from snprintf
	o compile with higher warnings

2022-09-26  Simon J Gerraty  <sjg@@beast.crufty.net>

	* main.c meta.c: do not ignore return from snprintf

	* meta.c strlcpy.c: we need prototype for strlcpy

	* sigcompat.c: fix unused function warnings

2022-09-24  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20220924
	Merge with NetBSD make, pick up
	o fix bug in .break reset of conditional depth
	o overhaul and simplify tracking of conditional depth

2022-09-17  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20220912
	Merge with NetBSD make, pick up
	o man page updates

2022-09-09  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20220909
	Merge with NetBSD make, pick up
	o update unit-tests to handle deprecation of egrep
	o cond.c: add more details to error message for numeric comparison

	* configure.in: allow for deprecation of egrep

	* Makefile: Linux can handle MANTARGET=man

2022-09-03  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20220903
	Merge with NetBSD make, pick up
	o job.c: fix handling of null bytes in output

2022-09-02  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20220902
	Merge with NetBSD make, pick up
	o Allow .break to terminate a .for loop early

2022-09-01  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20220901
	Merge with NetBSD make, pick up
	o var.c: fix out-of-bounds errors when parsing

2022-08-24  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20220824
	Merge with NetBSD make, pick up
	o var.c: revert change to modifier parsing that breaks
	shell variable references within ':@@var@@body@@'
	o adjust unit-tests

2022-08-18  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20220818
	Merge with NetBSD make, pick up
	o fix exit status for '-q' (since 1994)

2022-08-08  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20220808
	Merge with NetBSD make, pick up
	o var.c: fix parsing of modifiers containing unbalanced subexpressions
	extract parsing of ':D' and ':U' modifiers into separate function

2022-07-26  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20220726

	* Auto-create objdir for bmake/unit-tests if appropriate

2022-07-24  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20220724
	Merge with NetBSD make, pick up
	o make.1: describe variable assignment and evaluation more precisely
	o parse.c: fix out-of-bounds read when parsing an invalid line
	o var.c: simplify return type of IsShortVarnameValid

2022-06-12  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20220612
	Merge with NetBSD make, pick up
	o allow to randomize build order of targets
	.MAKE.MODE += randomize-targets can help uncover dependency bugs
	within a makefile.
	o compat.c: rename Compat_Run to Compat_MakeAll
	o make.c: inline MakeBuildParent
	inline make_abort, improve error details
	o parse.c: reorganize Parse_Error
	fix memory leak in wildcard targets and sources
	separate cases in HandleDependencyTargetMundane
	extract HandleSingleDependencyTargetMundane
	rename loadfile to LoadFile
	split IncludeFile into separate functions
	condense code for searching a file in the paths
	fix off-by-one error in buffer for .WAIT nodes
	o str.c: condense Str_Match
	make code for string matching syntactically more consistent

2022-04-18  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20220418
	Merge with NetBSD make, pick up
	o ignore '.POSIX:' if not in first non-comment line
	of Makefile as specified by POSIX.
	add unit-tests for above.
	o meta.c: make it easier to find usage of identifiers
	o targ.c: add .USEBEFORE to Targ_PrintType

2022-04-14  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20220414

	* unit-tests/Makefile: simplify checks for shells with
	BROKEN_TESTS, this helps with other Linux distros that
	use dash.

2022-03-30  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20220330
	Merge with NetBSD make, pick up
	o var.c: fix spacing, and a typo in a test

2022-03-26  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20220326
	Merge with NetBSD make, pick up
	o parse.c: try to include 'posix.mk' the first time
	.POSIX: is encountered, to allow for beter POSIX compliance.
	o var.c: make debug logs more readable
	prefer 'long long' over 'long' on 32-bit C99 platforms
	fix crash on .undef of an environment variable

2022-03-03  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20220303
	Merge with NetBSD make, pick up
	o tell meta mode unit tests not to expect filemon
	o cond.c: make debug logging for comparisons less technical
	o lst.c: fix mem leak in Lst_Remove
	o str.c: make code for string matching syntactically more consistent
	o var.c: simplify ParseModifier_Match

2022-02-14  Simon J Gerraty  <sjg@@beast.crufty.net>

	* unit-tests/Makefile: control MAKESYSPATH for deptgt-phony

	* VERSION (_MAKE_VERSION): 20220214
	Merge with NetBSD make, pick up
	o cond.c: simplify control flow in CondParser_Comparison
	o job.c: fix echoing of command with '-' in silent target in jobs mode
	o main.c: prefix the warning about read-only .OBJDIR with a colon
	o parse.c: remove redundant conditions
	o var.c: simplify control flow in ModifyWord_SysVSubst

2022-02-08  Simon J Gerraty  <sjg@@beast.crufty.net>

	* unit-tests/Makefile: disable opt-debug-x-trace on Linux if there
	is any chance we have dash as .SHELL

	* VERSION (_MAKE_VERSION): 20220208
	Merge with NetBSD make, pick up
	o more unit tests
	o meta.c: use a variable to hold command line to be filtered
	to avoid any side effects from content of command line.

2022-02-04  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20220204
	Merge with NetBSD make, pick up
	o use unsigned consistently for line numbers, avoid the need for %z
	o parse.c: do not step off end of input in Parse_IsVar
	when checking for target local variable assignments

2022-02-02  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20220202
	Merge with NetBSD make, pick up
	o remove redundant declaration of HashIter_Init
	o make DEBUG0 simpler

2022-01-30  Simon J Gerraty  <sjg@@beast.crufty.net>

	* cast gn->lineno to avoid %z

	* VERSION (_MAKE_VERSION): 20220130
	Merge with NetBSD make, pick up
	o more unit tests
	o make GNode lineno unsigned to please lint
	o print location of recursive variable references in commands
	o print "stack trace" (makefile includes) on fatal errors
	o make.1: refine documentation for target local assignments

2022-01-28  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20220128
	Merge with NetBSD make, pick up
	o inline functions called only once
	o for.c: clean up AddEscape for building the body of a .for loop
	o hash.c: merge duplicate code for finding an entry in a hash table
	replace HashEntry_KeyEquals with strncmp
	o make.1: document quirks of target local variable assignments.
	o parse.c: cleanup white-space

2022-01-26  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20220126
	Merge with NetBSD make, pick up
	o allow setting target local variables
	o more unit tests
	o add missing newline after "cannot continue" message
	o meta.c: clean up eat_dots
	o parse.c: fix filename in warning about duplicate script
	o var.c: when expanding nested variables, check simple things first

2022-01-16  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20220116
	Merge with NetBSD make, pick up
	o fix for unit-tests/varname-makeflags on non-BSD systems
	o use Var_Exists rather than Var_Value where appropriate
	o remove unnecessary functions for expanding variable names
	o cond.c: inline EvalBare
	o main.c: lint cleanup
	o parse.c: condense code in Parse_IsVar
	use islower for parsing directives (none have upper case)

2022-01-12  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20220112
	Merge with NetBSD make, pick up
	o meta.c: add .MAKE.META.CMP_FILTER for filtering commands before
	comparion, rarely needed but useful when it is.

2022-01-10  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20220110
	Merge with NetBSD make, pick up
	o inline Buf_Clear
	o remove redundant braces
	o rename and inline Targ_Precious
	o cond.c: remove redundant initializer in CondParser_ComparisonOrLeaf
	o for.c: clean up handling of .for loops
	fix reported line numbers of continuation lines
	add details about .for loop variables to stack traces
	o job.c: reduce code for initializing error handling in shell
	o main.c: in Cmd_Exec, return error message instead of format string
	have as few statements as possible between va_start and va_end
	add debug logging for capturing the output of external commands
	o make.c: use consistent variable names for varargs
	o make_malloc.c: remove duplicate code from bmake_strdup
	o parse.c: add missing printflike annotations
	remove redundant lines from stack traces
	fix stack traces in -dp mode
	reduce confusing code in ParseForLoop
	fix line number in debug log after returning from a file
	rename IFile and its fields to match their actual content
	clean up ParseDependencySources
	o var.c: shorten ApplyModifier_Assign
	rename is_shell_metachar, fix character conversion warning
	merge calls to ApplyModifier_Time
	merge duplicate code for modifiers 'gmtime' and 'localtime'

2022-01-04  Simon J Gerraty  <sjg@@beast.crufty.net>

	* parse.c: loadfile restore extra byte in buffer.

2022-01-01  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20220101
	Merge with NetBSD make, pick up
	o more unit-tests
	o remove unnecessary words from command line options in CmdOpts
	o rename eunlink to unlink_file
	o cond.c: make ParseWord in condition parser simpler
	internally return false for irrelevant leaves in conditions
	replace table for function lookup in conditions with simple code
	merge duplicate types CondEvalResult and CondResult
	o for.c: clean up handling of .for loops and .include directives
	o main.c: constify cached_realpath
	clean up Cmd_Exec
	o parse.c: sync API documentation
	fix error message when reading more than 1 GB from stdin
	clean up parsing of makefiles
	fix line number in error message about open conditionals
	unexport types VarAssignOp and VarAssign
	clean up function names
	remove redundant parameters in dependency parsing functions
	reduce scope of the list of wildcard target names
	extract OP_NOTARGET into separate function
	clean up variable names for parsing dependency lines
	make debug logging a bit more human-friendly
	o var.c: condense code in ApplyModifier_Assign

2021-12-21  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20211221
	Merge with NetBSD make, pick up
	o more unit-tests
	o style cleanup
	o in CLEANUP mode, free interned strings at the very end
	o fix memory leak for filenames in .for loops
	o buf.c: avoid memory leak
	o cond.c: condense CondParser_ComparisonOp
	o hash.c: change return type of HashTable_Set to void
	o job.c: change return type of Compat_RunCommand from int to bool
	o main.c: remove bmake_free
	o parse.c: condense repetetive code in ParseDirective
	remove dead code for handling traditional include directives
	clean up parsing of variable assignments
	remove unreachable code for parsing the dependency operator
	clean up loading of files
	fix memory leak in IncludeFile
	o var.c: fix memory leak when parsing a variable name
	fix memory leak from ${.SUFFIXES}
	reduce memory allocation in modifier ':?' and ':C'
	condense RegexReplace for the modifier ':C' and avoid strlen
	merge duplicate code for memory handling in Var_Parse
	distinguish between short-lived and environment variables
	rename VarFreeEnv to VarFreeShortLived

2021-12-15  Simon J Gerraty  <sjg@@beast.crufty.net>

	* cond.c: fix mem leak in CondParser_Leaf

2021-12-12  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20211212
	Merge with NetBSD make, pick up
	o rename Parse_SetInput to Parse_PushInput
	o remove remove period from end of error messages and warnings
	to be more consistent
	o arch.c: use simpler memory management for parsing archive members
	o cond.c: rework and reduce recursion
	o for.c: rename some functions to better reflect purpose
	o suff.c: add Suff_NamesStr to provide .SUFFIXES as a string.
	o var.c: in parse errors, mark whitespace more clearly
	inline ParseEmptyArg into CondParser_FuncCallEmpty
	minimize calls to LazyBuf_Get in ParseVarnameLong
	treat .SUFFIXES as a read-only variable

2021-12-07  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20211207
	Merge with NetBSD make, pick up
	o inline HashIter_Init
	o parse.c: inline common subexpression in ParseRawLine
	o var.c: merge branches for modifiers ':D' and ':U'
	extract common code into Expr_Words
	extract common code into Expr_Str
	move low-level implementation details out of Var_Parse

2021-12-06  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20211206
	Merge with NetBSD make, pick up
	o add unit-tests/varmod-loop-delete
	o for.c: inline Str_Words - reduce memory allocation
	o parse.c: do not try to expand fixed variable names
	only allocate the name of an included file if necessary
	clean up ParseInclude
	o var.c: fix use-after-free in modifier ':@@'
	save a memory allocation in each modifier ':O' and ':u'
	save a memory allocation in the modifier ':[...]'
	in UnexportVars, replace Str_Words with Substring_Words to
	reduce allocations and copying.

2021-12-04  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20211204
	Merge with NetBSD make, pick up
	o flesh out a number of tests
	o replace enums with bitfields, this simplifies a lot of code.
	o var.c: refactor ParseModifierPartSubst

2021-10-24  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20211024
	Merge with NetBSD make, pick up
	o Punt on write errors - ENOSPC etc.

2021-10-22  Simon J Gerraty  <sjg@@beast.crufty.net>

	* configure.in: use_defshell, set both DEFSHELL_INDEX
	and defshell_path if appropriate.
	This makes it easier to use say the KSH specification with
	and alternate path for the shell.

	* configure.in compat.c: for SCO we need to force UseShell

	* configure.in: SCO /bin/sh is not usable, provide a list of
	alternatives for use as .SHELL.
	We still have to mark some tests as broken, plus more if we end up
	with ksh as .SHELL.
	Issue a warning about skipped tests.

	* boot-strap: leave TOOL_DIFF to configure

	* configure.in: on SCO native cc is not usable,
	gcc is to be found in /usr/gnu/bin
	and while ancient is at least able to compile bmake.
	Thus we add /usr/gnu/bin to PATH if it exists, and later
	check if $CC would have been found via $PATH.
	If not we set CC to the full path of $CC.
	Also gnu diff is known to support -u, so if it exists use it.

	* configure.in: move getopt to AC_REPLACE_FUNCS
	also add AC_C_INLINE - in an attempt to compile using
	native cc on SCO.

	* configure.in: check for stresep as well as strsep, since we
	define the later to the former if necessary, and if we have to
	provide stresep we also need to provide a prototype.

	* configure.in: we no longer need to worry about
	sys/cdefs.h providing __RCSID which simplifies things quite a bit.

	* make.h: make sure we have __RCSID

	* unit-tests/Makefile.config.in: add TOOL_DIFF so configure
	can control it.

2021-10-20  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION: 20211020
	Merge with NetBSD make, pick up
	o confirm sync of unit-tests

2021-10-18  Simon J Gerraty  <sjg@@beast.crufty.net>

	* configure.in: check if timezone Europe/Berlin is supported
	if not try UTC-1
	* configure.in: if .OBJDIR is $srcdir/obj we need to create a
	symlink unit-tests -> ../unit-tests/obj so that
	unit-tests/Makefile.config is put in the right place.
	* refine filtering of .OBJDIR in unit-tests

2021-10-16  Simon J Gerraty  <sjg@@beast.crufty.net>

	* Fix unit-tests on Minix 3.2.0
	o job.c: do not punt if read of token pipe fails for EAGAIN.
	On Minix at least, we are not ready to read the childExitJob pipe
	when poll says we are.
	There should actually be no reason for this pipe to be
	non-blocking, but while that works fine on {Net,Free}BSD it
	breaks another test case on Minix.
	o unit-tests/Makefile: deal with variants of error messages
	  and use of obj as .OBJDIR

2021-10-14  Simon J Gerraty  <sjg@@beast.crufty.net>

	* configure.in: add sigaction to AC_REPLACE_FUNCS
	we also need to check for sigaddset etc just for the benefit of
	sigact.c

	* Add sigact.c as sigaction.c so this "just works".
	This should have been done back when bmake_signal started using
	sigaction (I only just noticed that sigact.c wasn't here ;-)
	Note: I no longer have access to any system where this would matter.

2021-10-13  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20211011

	* Makefile: cleanup a little

	* configure.in: check for sigsetmask

2021-10-01  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20211001
	Merge with NetBSD make, pick up
	o reduce locations reducing text size
	o remove unnecessary const
	o cond.c: fix lint warning on i386
	do not allow unquoted 'left == right' after modifier ':?'
	o hash.c: fix build for DEBUG_HASH_LOOKUP
	o var.c: fix memory leak in error case of the ':?' modifier

2021-09-11  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20210911
	Merge with NetBSD make, pick up
	o var.c: replace remaining ModChain_ShouldEval with Expr_ShouldEval

2021-09-08  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20210906
	Merge with NetBSD make, pick up
	o more unit tests
	o lint cleanup
	o rename some functions to better fit purpose
	o for.c: cleanup - remove unnecessary optimization
	  fix embedded newlines
	o parse.c: correct case for CVS/RCS

2021-08-11  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20210808
	Merge with NetBSD make, pick up
	o var.c: remove redundant initialization in ApplyModifier_Order

	* mk/options.mk: issue warning for incorrect usage

2021-08-03  Simon J Gerraty  <sjg@@beast.crufty.net>

	* var.c: use long for :On if we don't have a 64bit int type

	* VERSION (_MAKE_VERSION): 20210803
	Merge with NetBSD make, pick up
	o rework varmod-order tests to avoid qsort instability
	o make.1: clarify :On entry

2021-07-31  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20210731
	Merge with NetBSD make, pick up
	o fix some lint issues
	o more unit tests
	o var.c: rework of ApplyModifier_Order

2021-07-30  Simon J Gerraty  <sjg@@beast.crufty.net>

	* util.c: add strto*l if HAVE_STRTO*L not defined

	* VERSION (_MAKE_VERSION): 20210730
	Merge with NetBSD make, pick up
	o var.c: add :On and :Orn for numeric sort
	  disabled if no 64bit type available.
	o _strtol.h: to implement strto*l functions

2021-07-04  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20210704
	Merge with NetBSD make, pick up
	o unit-tests: fix some tests to be more portable
	- job-output-null not all shells do the same number of write calls
	- objdir-writable if TMPDIR is set; /tmp may not be usable

2021-07-01  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20210701
	Merge with NetBSD make, pick up
	o unit-tests: allow for BROKEN_TESTS to list TESTS to be skipped;
	some tests just cannot work in some environments.
	o buf.c: simpler upper bound for length in Buf_AddInt
	o cond.c: fix grammar in error message for malformed conditional
	o for.c: prevent newline injection (from ${.newline}) in .for loops
	o var.c: use more practical data type in RegexReplace
	(avoid need for %zu)
	extract RegexReplace from ModifyWord_SubstRegex

2021-06-21  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20210621
	Merge with NetBSD make, pick up
	o var.c: only report error for unmatched regex subexpression
	when linting (-dL) since we cannot tell when an unmatched
	subexpression is an expected result.
	o move unmatched regex subexpression tests to
	varmod-subst-regex.mk and enable strict (lint) mode

2021-06-16  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20210616
	Merge with NetBSD make, pick up
	o more unit tests
	o cond.c: rename If_Eval to EvalBare
	improve function names for parsing conditions
	o job.c: fix error handling of targets that cannot be made
	o var.c: uncompress code in ApplyModifier_Unique

2021-05-18  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20210518
	Merge with NetBSD make, pick up
	o fix unit-tests/opt-chdir to cope with /nonexistent existing.
	o job.c: Print -de error information when running multiple jobs

2021-04-20  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20210420
	Merge with NetBSD make, pick up
	o use C99 bool type
	o convert VarEvalFlags back into an enum
	o cond.c: do not complain when skipping the condition 'no >= 10'
	o hash.c: avoid allocating memory for simple variable names
	o job.c: use distinct wording for writing to the shell commands file
	remove type name for the abort status in job handling
	rename PrintOutput to PrintFilteredOutput to avoid confusion
	o main.c: avoid double slash in name of temporary directory
	o var.c: use straight quotes for error 'Bad conditional expression'
	reduce memory allocations in the modifiers ':D' and ':U'
	rename members of ModifyWord_LoopArgs
	clean up pattern flags for the modifiers ':S' and ':C'
	reduce memory allocation and strlen calls in modifier ':from=to'
	in the ':Q' modifier, only allocate memory if necessary
	improve performance for LazyBuf
	remove redundant parameter from ParseVarnameLong
	migrate ParseModifierPart to use Substring
	avoid unnecessary calls to strlen when evaluating modifiers
	migrate ModifyWord functions to use Substring
	migrate handling of the modifier ':S,from,to,' to Substring
	reduce debug logging and memory allocation for ${:U...}
	reduce verbosity of the -dv debug logging for standard cases
	clean up debug logging for ':M' and ':N'
	disallow '$' in the variable name of the modifier ':@@'
	simplify access to the name of an expression during evaluation

2021-03-30  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20210330
	Merge with NetBSD make, pick up
	o replace enum bit-field with struct bit-field for VarEvalFlags
	o rename VARE_NONE to VARE_PARSE_ONLY
	o var.c: rename ApplyModifiersState to ModChain
	fix double varname expansion in the variable modifier '::='
	change debug log for variable evaluation flags to lowercase

2021-03-14  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20210314
	Merge with NetBSD make, pick up
	o var.c: avoid evaluating many modifiers in parse only mode
	in strict mode (-dL) many variable references are parsed twice,
	the first time just to report parse errors early, so we want to
	avoid side effects and wasted effort to the extent possible.

2021-02-26  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20210226
	Merge with NetBSD make, pick up
	o remove freestanding freeIt variables
	link via FStr
	o var.c: restructure code in ParseVarname to target human readers
	improve error message for;
	  bad modifier in variable expression
	  unclosed modifier
	  unknown modifier
	remove redundant parameter of ApplySingleModifier
	explain non-obvious code around indirect variable modifiers
	quote ':S' in error message about missing delimiter
	extract ParseModifier_Match into separate function
	add context information to error message about ':range' modifier
	add quotes around variable name in an error message
	reorder code in ModifyWords
	use more common parameter order for VarSelectWords
	make ModifyWord_Subst a little easier to understand
	do not expand variable name from the command line twice
	extract ExistsInCmdline from Var_SetWithFlags
	save a hash map lookup when defining a cmdline variable
	clean up VarAdd, Var_Delete, Var_ReexportVars
	use bit-shift expressions for VarFlags constants
	rename constants for VarFlags
	rename ExprDefined constants for debug logging
	rename ExprStatus to ExprDefined
	split parameters for evaluating variable expressions
	reduce redundant code around ModifyWords
	print error about failed shell command before overwriting variable
	clean up ValidShortVarname, ParseVarnameShort
	rename VarExprStatus to ExprStatus
	add functions for assigning the value of an expression
	rename ApplyModifiersState_Define to Expr_Define
	condense the code for parsing :S and :C modifiers

2021-02-06  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20210206
	Merge with NetBSD make, pick up
	o unit-tests: use private TMPDIR to avoid errors from other users

2021-02-05  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20210205
	Merge with NetBSD make, pick up
	o avoid strdup in mkTempFile
	o always use vfork
	o rename context and ctxt to scope
	o rename some VAR constants to SCOPE
	o Var_ functions, move the scope to the front
	o use shortcut functions Global_Set and Global_Append
	o add shortcut Global_Delete for deleting a global variable
	o rename Var_Delete to Var_DeleteExpand, Var_DeleteVar to Var_Delete
	o compat.c: when exiting due to an error, print graph information
	o enum.c: remove overengineered Enum_ValueToString
	o make.c: remove unused INTERNAL flag
	remove unused return type of MakeBuildParent
	o parse.c: replace parse error "Need an operator" with better message
	o var.c: improve documentation about variable scopes
	rename Var_ValueDirect to GNode_ValueDirect
	rename old Var_SetWithFlags to Var_SetExpandWithFlags
	merge SetVar into Var_SetWithFlags
	split Var_Exists into plain Var_Exists and Var_ExistsExpand
	split Var_Append into Var_Append and Var_AppendExpand
	replace enum bit-set with bit-field
	o unit-tests/var-op-shell: use kill rather than kill -14
	which broke on darwin with recent update.

2021-02-01  Simon J Gerraty  <sjg@@beast.crufty.net>

	* configure.in: check for sig_atomic_t and define it as 'int'
	if missing.

	* VERSION (_MAKE_VERSION): 20210201
	Merge with NetBSD make, pick up
	o use sig_atomic_t for caught_sigchld

2021-01-30  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20210130
	Merge with NetBSD make, pick up
	o more unit tests
	o convert SearchPath to struct
	o split Buf_Destroy into Buf_Done and Buf_DoneData
	o for.c: split For_Eval into separate functions
	rename struct For to struct ForLoop
	o job.c: do not create empty shell files in jobs mode
	rename JobOpenTmpFile to JobWriteShellCommands
	reduce unnecessary calls to waitpid
	o parse.c: in -dp mode, print stack trace with each diagnostic

2021-01-23  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20210123
	Merge with NetBSD make, pick up
	o rename Dir_Expand to SearchPath_Expand
	o rename Dir_AddDir, reorder parameters of SearchPath_ToFlags
	o cond.c: fix debug output for comparison operators in conditionals
	o dir.c: split Dir_FindFile into separate functions

2021-01-20  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20210120
	Merge with NetBSD make, pick up
	o fix some more lint nits
	o refine some unit tests for portability
	o cond.c: rework parsing

2021-01-10  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20210110
	Merge with NetBSD make, pick up
	o fix lint warnings
	o consistently use boolean expressions in conditions

2021-01-08  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20210108
	Merge with NetBSD make, pick up
	o job.c: back to polling token pipe if we want a token
	o main.c: always print 'stopped in' on first call
	The execption is if we bail because of an abort token
	in which case just exit 6.

2021-01-01  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20210101
	Merge with NetBSD make, pick up
	o Happy New Year!
	o rename CmdOpts.lint to strict
	o exit 2 on technical errors
	o replace pointers in controlling conditions with booleans
	o replace global preserveUndefined with VARE_KEEP_UNDEF
	o compat.c: re-export variables from the actual make process
	if using vfork this is the effect anyway
	o cond.c: clean up VarParseResult constants
	o for.c: fix undefined behavior in SubstVarLong
	make control flow in SubstVarLong of .for loops more obvious
	clean up SubstVarShort in .for loops
	extract ForSubstBody from ForReadMore
	clean up ForReadMore
	simplify termination condition for .for loop
	add error handling for .for loop items
	job.c: re-export variables from the actual make process
	parse.c: remove mmap for loading files, only allow files < 1 GiB
	fix edge case in := with undefined in variable name
	skip variable expansion in ParseDependencyTargetWord
	var.c: split ExportVar into separate functions
	clean up code in extracted ExportVar functions
	remove dead code from ApplyModifiersIndirect
	split Var_Subst into easily understandable functions
	clean up VarParseResult constants

2020-12-25  Simon J Gerraty  <sjg@@beast.crufty.net>

	* main.c: use .MAKE.DEPENDFILE as set by makefiles

2020-12-22  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20201222
	Merge with NetBSD make, pick up
	o make DEBUG macro return boolean
	o parse.c: fix assertion failure for files without trailing newline
	o var.c: allow .undef to undefine multiple variables at once
	remove excess newline from parse errors

2020-12-21  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20201221
	Merge with NetBSD make, pick up
	o some unit-test updates

2020-12-20  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20201220
	Merge with NetBSD make, pick up
	o more unit tests
	o return FStr from Var_Parse and Var_Value
	o spell nonexistent consistently
	o add str_basename to reduce duplicate code
	o compat.c: fix .ERROR_TARGET in compat -k mode
	extract InitSignals from Compat_Run
	extract UseShell from Compat_RunCommand
	o cond.c: error out if an '.endif' or '.else' contain extraneous text
	o for.c: rename ForIterate to ForReadMore
	o hash.c: clean up hash function for HashTable
	o lst.c: rename Vector.priv_cap to cap
	o main.c: remove constant parameter from MakeMode
	o make.c: use symbolic time for 0 in Make_Recheck
	extract MakeChildren from MakeStartJobs
	o parse.c: clean up memory handling in VarAssign_EvalShell, Parse_DoVar
	fix error message for .info/.warning/.error without argument
	extract Var_Undef from ParseDirective
	extract ParseSkippedBranches, ParseForLoop from ParseReadLine
	rename mode constants for ParseGetLine to be more expressive
	reduce debugging details in Parse_SetInput
	fix line numbers in .for loops
	split ParseGetLine into separate functions
	fix garbled output for failed shell command
	var.c: remove redundant assignment in ApplyModifier_SysV
	error out on unknown variable modifiers at parse time
	remove wrong error message for indirect modifier in lint mode
	extract ApplySingleModifier from ApplyModifiers
	use FStr for memory management in Var_SetWithFlags
	extract SetVar from Var_SetWithFlags
	use FStr in VarNew
	extract string functions from ApplyModifier_To
	error out if .undef has not exactly 1 argument
	extract Var_DeleteVar from Var_Delete
	extract Var_Undef from ParseDirective
	clean up memory management for expanding variable expressions

2020-12-12  Simon J Gerraty  <sjg@@beast.crufty.net>

	* avoid %zu

	* lst.c: avoid anonymous union

	* VERSION (_MAKE_VERSION): 20201212
	Merge with NetBSD make, pick up
	o more unit tests
	o inline Targ_Ignore and Targ_Silent
	o split JobFlags into separate fields
	o remove const from function parameters (left overs from refactoring)
	o eliminate boolean argument of Var_Export
	o make API of Buf_Init simpler
	o rename ParseRunOptions to ParseCommandFlags
	o replace *line with line[0]
	o compat.c: fix wrong exit status for multiple failed main targets
	refactor Compat_Run to show the error condition more clearly
	don't make .END if the main targets already failed (-k mode)
	fix exit status in -k mode if a dependency fails
	o for.c: clean up Buf_AddEscaped in .for loops
	o job.c: extract ShellWriter_ErrOn from JobPrintCommand
	make Job_Touch simpler
	refactor JobFinish
	rename Shell.exitFlag to errFlag
	move Job.xtraced to ShellWriter
	make printing of shell commands independent from the job
	rename shell flags in struct Shell
	extract JobOpenTmpFile from JobStart
	rename RunFlags to CommandFlags
	split various Job.* into separate fields
	rename commandShell to shell
	extract InitShellNameAndPath from Shell_Init
	replace signal handling macros with local functions
	replace macro MESSAGE with local function
	parse.c: error out on null bytes in makefiles
	error out on misspelled directives
	rename IFile.nextbuf to readMore
	fix undefined behavior in ParseEOF
	str.c: remove redundant call to strlen in Str_Words
	var.c: error out on misspelled .unexport-env
	error out on misspelled .export directives
	extract ExportVars from Var_Export
	extract ExportVarsExpand from Var_Export
	eliminate boolean argument of Var_Export
	fix undefined behavior when exporting ${:U }
	rename Var_ExportVars to Var_ReexportVars
	rename Var_Export1 to ExportVar

2020-12-06  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20201206
	Merge with NetBSD make, pick up
	o more unit tests
	o inline macros for debug logging
	o use consistent variable names for list nodes
	o define constants for enum zero-values
	o dir.c: use fixed format for debug output of the directory cache
	remove Dir_InitDir
	o lst.c: inline Lst_Enqueue, Vector_Done
	o meta.c: remove unused parameter from meta_needed
	o parse.c: rename parse functions
	o suff.c: extract ExpandChildrenRegular from ExpandChildren
	o targ.c: don't concatenate identifiers in Targ_PrintType
	o var.c: remove comment decoration
	extract UnexportVars from Var_UnExport
	extract GetVarnamesToUnexport from Var_UnExport
	extract UnexportEnv from Var_UnExport
	extract UnexportVar from Var_UnExport
	move CleanEnv to UnexportVars
	replace pointer comparisons with enum
	add FStr to var.c to make memory handling simpler
	use FStr in Var_UnExport
	move type definitions in var.c to the top
	extract FreeEnvVar from Var_Parse
	extract ShuffleStrings from ApplyModifier_Order

2020-11-30  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20201130
	Merge with NetBSD make, pick up
	o add unit tests for META MODE
	o reduce memory allocation for dirSearchPath, GNode.parents,
	GNode.children, OpenDirs
	o reduce pointer indirection for GNode.cohorts and
	GNode.implicitParents
	o remove pointer indirection from GNode.commands
	o inline Lst_ForEachUntil in meta mode
	o dir.c: fix memory leak for lstat cache in -DCLEANUP mode
	clean up memory management for CachedDirs
	fix the reference count of dotLast going negative
	add debug logging for OpenDirs_Done
	extract CacheNewDir from Dir_AddDir
	add debug logging for reference counting of CachedDir
	rename some Dir functions to SearchPath
	o job.c: rename some global variables
	o main.c: reduce memory allocation in ReadBuiltinRules
	reduce memory allocation in CmdOpts.create, CmdOpts.variables,
	CmdOpts.makefiles
	Add .MAKE.UID and .MAKE.GID
	o make.c: reduce memory allocation for/in toBeMade,
	Make_ProcessWait, Make_ExpandUse
	o meta.c: reduce memory allocation in meta_oodate
	o parse.c: reduce memory allocations for parsing dependencies and
	targets
	o suff.c: reduce memory allocation in suffix handling

2020-11-24  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20201124
	Merge with NetBSD make, pick up
	o .MAKE.{UID,GID} represent uid and gid running make.
	o fix error handling for .BEGIN and .END dependency in -k mode
	o fix missing "Stop." after failed .END node in -k mode
	o use properly typed comparisons in boolean contexts
	o replace a few HashTable_CreateEntry with HashTable_Set
	o add HashSet type
	o compat.c: split Compat_Make into smaller functions
	extract DebugFailedTarget from Compat_RunCommand
	o dir.c: refactor Dir_UpdateMTime
	migrate CachedDir.files from HashTable to HashSet
	o make.c: add high-level API for GNode.made

2020-11-22  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20201122
	Merge with NetBSD make, pick up
	o rename GNode.context to vars
	o suff.c: cleanup and refactor
	rename some functions and vars to better reflect usage
	add high-level API for CandidateSearcher
	o targ.c: add more debug logging for suffix handling
	o more unit tests
	o add debug logging for setting and resetting the main target

2020-11-17  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20201117
	Merge with NetBSD make, pick up
	o fix some unit-tests when .SHELL is dash
	o rename Targ_NewGN to GNode_New
	o make some GNode functions const
	o main.c: call Targ_Init before Var_Init
	cleanup PrintOnError, getTmpdir and ParseBoolean
	o var.c: fix error message of failed :!cmd! modifier

2020-11-14  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20201114
	Merge with NetBSD make, pick up
	o replace a few HashTable_CreateEntry with HashTable_Set
	o clean up cached_stats
	o rename DEFAULT to defaultNode
	o remove redundant struct make_stat
	o cond.c: in lint mode, check for ".else <cond>"
	use bitset for IfState
	replace large switch with if-else in Cond_EvalLine
	o job.c: clean up JobExec, JobStart, JobDoOutput
	use stderr for error message about failed touch
	clean up Job_Touch
	replace macro DBPRINTF with JobPrintln
	rename JobState to JobStatus
	main.c: switch cache for realpath from GNode to HashTable
	clean up Fatal
	clean up InitDefSysIncPath
	use progname instead of hard-coded 'make' in warning
	rename Main_SetVarObjdir to SetVarObjdir
	make.1: document the -S option
	make.c: fix debug output for GNode details
	use symbolic names in debug output of GNodes

2020-11-12  Simon J Gerraty  <sjg@@beast.crufty.net>

	* configure.in: fix --with-force-machine-arch

	* VERSION (_MAKE_VERSION): 20201112
	Merge with NetBSD make, pick up
	o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable
	checks in InitObjdir.  Explicit .OBJDIR target always allows
	read-only directory.
	o cond.c: clean up Cond_EvalLine

2020-11-11  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20201111
	Merge with NetBSD make, pick up
	o more unit-tests
	o style cleanup
	remove redundant parentheses from sizeof operator
	replace character literal 0 with '\0'.
	replace pointer literal 0 with NULL.
	remove redundant parentheses.
	replace (expr & mask) == 0 with !(expr & mask).
	use strict typing in conditions of the form !var
	o rename Make_OODate to GNode_IsOODate
	o rename Make_TimeStamp to GNode_UpdateYoungestChild
	o rename Var_Set_with_flags to Var_SetWithFlags
	o rename dieQuietly to shouldDieQuietly
	o buf.c: make API of Buf_Init simpler
	o compat.c: clean up Compat_Make, Compat_RunCommand,
	CompatDeleteTarget and CompatInterrupt
	o cond.c: in lint mode, only allow '&&' and '||', not '&' and '|'
	clean up CondParser_Comparison
	o main.c: rename getBoolean and s2Boolean
	rename MAKEFILE_PREFERENCE for consistency
	o parse.c: replace strstr in ParseMaybeSubMake with optimized code
	o var.c: rename VARE_ASSIGN to VARE_KEEP_DOLLAR
	replace emptyString with allocated empty string
	error out on unclosed expressions after the colon

2020-11-01  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20201101
	Merge with NetBSD make, pick up
	o negate NoExecute to GNode_ShouldExecute
	o job.c: rename JobMatchShell to FindShellByName
	extract EscapeShellDblQuot from JobPrintCommand
	extract ParseRunOptions from JobPrintCommand
	o var.c: extract ApplyModifiersIndirect from ApplyModifiers
	treat malformed :range, :ts and :[...] as errors
	add tests for the variable modifiers :[words] and :range

2020-10-31  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20201031
	Merge with NetBSD make, pick up
	o format #include directives consistently
	o do not look up local variables like .TARGET anywhere else
	o main.c: Main_SetObjdir is first called for curdir which may be
	readonly
	reduce the scope where recursive expressions are detected
	remove redundant :tl from getBoolean
	clean up mkTempFile
	o meta.c: simplify memory allocation in meta_create and meta_oodate
	o parse.c: extract loadedfile_mmap from loadfile
	o trace.c: document possible undefined behavior with .CURDIR
	o var.c: make parsing of the :gmtime and :localtime modifiers stricter
	rename ismeta to is_shell_metachar
	remove debug logging for the :Q variable modifier
	rename VarIsDynamic to VarnameIsDynamic
	use consistent parameter order in varname parsing functions
	extract ParseVarnameLong from Var_Parse
	extract ParseVarnameShort from Var_Parse
	fix type of ParseModifierPart parameter delim
	extract IsEscapedModifierPart from ParseModifierPart
	clean up ModifyWords
	add test for combining the :@@ and :? variable modifiers

2020-10-30  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20201030
	Merge with NetBSD make, pick up
	o change char * to void * in Var_Value
	o make iterating over HashTable simpler
	o rename VAR_CMD to VAR_CMDLINE
	o cond.c: clean up is_separator
	fix parse error in string literal in conditional
	o main.c: do not use objdir that is not writable
	in lint mode, exit with error status on errors
	o  parse.c: clean up StrContainsWord
	fix out-of-bounds pointer in ParseTrackInput
	o var.c: rename Str_SYSVMatch and its parameters
	remove unsatisfiable conditions in Var_Set_with_flags
	document where the variable name is expanded
	fix documentation for VARP_SUB_ONE
	rename VAR_EXPORTED_YES to VAR_EXPORTED_SOME
	document VAR_READONLY
	prevent appending to read-only variables
	extract MayExport from Var_Export1
	remove redundant evaluations in VarFind
	replace VarFindFlags with a simple Boolean
	rename FIND_CMD to FIND_CMDLINE, to match VAR_CMDLINE

2020-10-28  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20201028
	Merge with NetBSD make, pick up
	o rename defIncPath to defSysIncPath
	o initialize all CmdOpts fields
	o lst.c: inline Vector_Get
	o main.c: refactor main extract
	InitMaxJobs,InitObjdir,InitVarMake,InitRandom,
	ReadMakefiles,CleanUp,InitVpath,ReadBuiltinRules,
	InitDefIncPath,CmdOpts_Init,UnlimitFiles
	o parse.c: merge curFile into includes
	rename predecessor to order_pred
	sort ParseSpecial alphabetically
	remove unused, undocumented .NOEXPORT
	rename ParseSpecial enum values consistently
	rename some fields of struct IFile

2020-10-26  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20201026
	Merge with NetBSD make, pick up
	o group the command line options and arguments into a struct
	o rename GNode.cmgn to youngestChild
	o rename hash functions to identify the type name
	o negate OP_NOP and rename it to GNode_IsTarget
	o add GNode_Path to access the path of a GNode
	o remove macros MIN and MAX
	o remove unused Lst_Find and Lst_FindFrom
	o arch.c: and make Arch_FindLib simpler
	clean up code layout
	make Arch_ParseArchive simpler
	o cond.c: inline CondFindStrMatch into FuncMake
	o dir.c: replace Dir_CopyDir with Dir_CopyDirSearchPath
	omit trailing space in debug output for expanding file patterns
	refactor DirMatchFiles
	document that the SearchPath of Dir_FindFile may be NULL
	remove UNCONST from Dir_Expand
	inline DirFindName
	o for.c: clean up code for handling .for loops
	o hash.c: print hash in debug log with fixed width
	clean up hash table functions
	reduce amount of string hashing
	o job.c: refactor JobDeleteTarget
	use proper enum constants for aborting
	convert result of JobStart from macros to enum
	convert abort reason macros to enum
	rework Job_CheckCommands to reduce indentation
	rename Shell fields
	add field names in declaration of DEFSHELL_CUSTOM
	convert JobState and JobFlags to enum types
	move handling of the "..." command to JobPrintCommands
	o lst.c: clean up
	refactor LstNodeNew
	remove Lst_Open, Lst_Next, Lst_Close
	remove code for circular lists from Lst_Next
	o main.c: do not attempt to read .MAKE.DEPENFILE if set to
	/dev/null or anything starting with "no"
	convert macros for debug flags into enum
	o make.c: inline Lst_Copy in Make_ExpandUse
	o meta.c: inline Lst_Find in meta_oodate
	make Lst_RemoveIf simpler in meta_oodate
	o parse.c: convert error level for Parse_Error to an enum
	o suff.c: properly terminate debug output with newline
	add more details to DEBUG_SRC log
	replace Dir_CopyDir with Dir_CopyDirSearchPath
	don't modify GNode name while rebuilding the suffix graph
	o var.c: reduce duplicate code in VarFind

2020-10-22  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20201022
	Merge with NetBSD make, pick up
	o more refactoring and simplification to reduce code size
	o var.c: extract CanonicalVarname from VarFind
	o make.c: extract UpdateImplicitParentsVars from Make_Update
	o main.c: extract PrintVar from doPrintVars
	extract HandlePWD from main
	o lst.c: inline simple Lst getters
	remove unused Lst_ForEach
	o job.c: move struct Shell from job.h to job.c
	o more unit tests

2020-10-19  Simon J Gerraty  <sjg@@beast.crufty.net>

	* configure.in: remove inappropriate use of AC_INCLUDES_DEFAULT

2020-10-18  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20201018
	Merge with NetBSD make, pick up
	o remove USE_IOVEC
	o rename some Hash_* apis to Hash*
	o replace execError with execDie
	o rename Lst_Init to Lst_New
	o add tags to enum types
	o rename Stack to Vector
	o parse.c: more refactoring
	o unit-tests: make some tests use line buffered stdout
	o unit-tests/Makefile: in meta mode do not make all tests depend on
	Makefile, it isn't necessary.

2020-10-10  Simon J Gerraty  <sjg@@beast.crufty.net>

	* main.c: check for CTL_HW being defined.
	* unit-tests/Makefile: ensure export tests output are POSIX compliant
	disable opt-debug-jobs test until it works on ubuntu

	* VERSION (_MAKE_VERSION): 20201010
	Merge with NetBSD make, pick up
	o dir.c: remove pathname limit for Dir_FindHereOrAbove
	o hash.c: replace strcpy with memcpy in Hash_CreateEntry
	o main.c: extract init_machine and init_machine_arch from main
	allow to disable debug logging options
	o parse.c: enable format string truncation warnings
	extract parsing of sources from ParseDoDependency
	split ParseDoSrc into smaller functions
	hide implementation details from Parse_DoVar
	clean up parsing of variable assignments
	split Parse_DoVar into manageable pieces
	don't modify the given line during Parse_DoVar
	fix out-of-bounds memory access in Parse_DoVar
	fix parsing of the :sh assignment modifier
	o var.c: rework memory allocation for the name of variables
	extract ApplyModifier_Literal into separate function
	in lint mode, reject modifiers without delimiter
	do not export variable names starting with '-'
	o fix double-free bug in -DCLEANUP mode
	o more cleanup to enable higher warnings level
	o more unit tests

2020-10-02  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20201002
	Merge with NetBSD make, pick up
	o dir.c: use hash table for looking up open directories by name
	o main.c: clean up option handling
	o parse.c: add missing const for Parse_AddIncludeDir
	o var.c: ApplyModifier_To, update pp in each branch
	o remove redundant function prototypes
	o more unit tests

2020-10-01  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20201001
	Merge with NetBSD make, pick up
	o compat.c: comment about "..."

2020-09-30  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200930
	Merge with NetBSD make, pick up
	o job.c: split Job.jobPipe into 2 separate fields
	replace Lst_Open with direct iteration
	o lst.c: remove redundant assertions
	o targ.c: replace Lst_Open with direct iteration
	o var.c: fix bug in evaluation of indirect variable modifiers
	extract ApplyModifier_Quote into separate function
	o make debug logging simpler

2020-09-27  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200927
	Merge with NetBSD make, pick up
	o parse.c: ensure parse errors result in 'stopped in' message.
	o compat.c: make parameter of Compat_RunCommand const
	o main.c: extract InitVarTarget from main
	o parse.c: rename ParseFinishLine to FinishDependencyGroup
	refactor ParseDoDependency
	o var.c: Var_Subst no longer returns string result
	rename Var_ParsePP back to Var_Parse
	in lint mode, improve error handling for undefined variables
	extract ParseVarname from Var_Parse
	o rename Lst_ForEach to Lst_ForEachUntil
	o inline Lst_ForEachUntil in several cases
	o clean up API for finding and creating GNodes
	o fix assertion failure in -j mode with .END node
	o inline and remove LstNode_Prev and LstNode_Next
	o use fine-grained type names for lists and their nodes
	o more unit tests

2020-09-11  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200911
	Merge with NetBSD make, pick up
	o cond.c: split EvalComparison into smaller functions
	reorder parameters of condition parsing functions
	reduce code size in CondParser_Eval
	rename CondGetString to CondParser_String
	add CondLexer_SkipWhitespace
	group the condition parsing state into a struct
	in CondGetString, replace repeated Buf_Add with Buf_AddStr
	o migrate Var_Parse to Var_ParsePP
	o add wrappers around ctype.h functions
	o lst.c: use a stack instead of a list for the nested include path
	o more unit tests

2020-09-04  Simon J Gerraty  <sjg@@beast.crufty.net>

	* make-bootstrap.sh.in: adjust object list

2020-09-02  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200902
	Merge with NetBSD make, pick up
	o use make_stat to ensure no confusion over valid fields
	returned by cached_stat
	o var.c: make VarQuote const-correct
	o add unit tests for .for

2020-09-01  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200901
	Merge with NetBSD make, pick up
	o rename Hash_Table fields
	o make data types in Dir_HasWildcards more precise

2020-08-31  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200831
	Merge with NetBSD make, pick up
	o suff.c: fix unbalanced Lst_Open/Lst_Close in SuffFindCmds
	o lst.c: Lst_Open renable assert that list isn't open
	o unit test for .TARGET dependent flags
	o var.c: fix aliasing bug in VarUniq
	o more unit tests for :u

2020-08-30  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200830
	Merge with NetBSD make, pick up
	o allow for strict type checking for Boolean
	o Var_Parse never returns NULL
	o Var_Subst never returns NULL
	o Lst_Find now takes boolean match function
	o rename Lst_Memeber to Lst_FindDatum
	o rename LstNode functions to match their type
	o rename GNode.iParents to implicitParents
	o fix assertion failure for .SUFFIXES in archives
	o compat.c: clean up documentation for CompatInterrupt and Compat_Run
	remove unreachable code from CompatRunCommand
	o main.c: simplify getBoolean
	o stc.c: replace brk_string with simpler Str_Words
	o suff.c: add debug macros

2020-08-28  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200828
	Merge with NetBSD make, pick up
	o lst.c: inline LstIsValid and LstNodeIsValid
	o remove trailing S from Lst function names after migration complete
	o more comment cleanup/clarification
	o suff.c: clean up suffix handling
	o more unit tests

2020-08-26  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200826
	Merge with NetBSD make, pick up
	o enum.c: distinguish between bitsets containing flags and
	ordinary enums
	o var.c: fix error message for ::!= modifier with shell error
	o fix bugs in -DCLEANUP mode

2020-08-24  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200824
	Merge with NetBSD make, pick up
	o in debug mode, print GNode details in symbols

2020-08-23  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200823
	Merge with NetBSD make, pick up
	o lst.c: more asserts,
	make args to Lst_Find match others.
	o var.c: pass flags to VarAdd
	o arch.c: use Buffer
	o str.c: brk_string return size_t for nwords
	o more unit tests

2020-08-22  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION):
	Merge with NetBSD make, pick up
	o var.c: support for read-only variables eg .SHELL
	being the shell used to run scripts.
	o lst.c: more simplification
	o more documentation and style cleanup
	o more unit tests
	o ensure unit-test/Makefile is run by TEST_MAKE
	o reduce duplication of header inclusion

2020-08-21  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200821
	Merge with NetBSD make, pick up
	o lst.c: revert invalid assertion - but document it
	o dir.c: split Dir_Init into two functions

2020-08-20  Simon J Gerraty  <sjg@@beast.crufty.net>

	* lst.c: needs inttypes.h on Linux

	* VERSION (_MAKE_VERSION): 20200820
	Merge with NetBSD make, pick up
	o make.1: clarify some passages
	o var.c: more cleanup, clarify comments
	o make_malloc.c: remove unreachable code
	o cond.c: make CondGetString easier to debug
	o simplify list usage
	o unit-tests: more

2020-08-16  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200816
	Merge with NetBSD make, pick up
	o refactor unit-tests to be more fine grained
	  not all tests moved yet

2020-08-14  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200814
	Merge with NetBSD make, pick up
	o more str_concat variants
	o more enums for flags
	o var.c: cleanup for higher warnings level

2020-08-10  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200810
	Merge with NetBSD make, pick up
	o more unit tests
	o general comment and style cleanup

2020-08-08  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200808
	Merge with NetBSD make, pick up
	o enum.[ch]: streamline, enums for use in flags and debug output
	o cond.c: cleanup
	o var.c: reduce duplicate code for modifiers
	debug logging for Var_Parse
	more detailed debug output
	o more unit tests

2020-08-06  Simon J Gerraty  <sjg@@beast.crufty.net>

	* unit-tests/Makefile: -r for recursive and include Makefile.inc
	so I can run tests in meta mode
	supress extra noise if in meta mode

	* VERSION (_MAKE_VERSION): 20200806
	Merge with NetBSD make, pick up
	o parse.c: remove VARE_WANTRES for LINT
	we just want to check parsing (for now).

2020-08-05  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200805
	Merge with NetBSD make, pick up
	o make.1: Rework the description of dependence operators

2020-08-03  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200803
	Merge with NetBSD make, pick up
	o revert some C99 usage, for max portability
	o unit-tests/lint

2020-08-02  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200802
	Merge with NetBSD make, pick up
	o more unit tests

2020-08-01  Simon J Gerraty  <sjg@@beast.crufty.net>

	* Remove NetBSD specific plumbing from unit-tests/Makefile

	* VERSION (_MAKE_VERSION): 20200801
	Merge with NetBSD make, pick up
	o make Var_Value return const
	o size_t for buf sizes
	o optimize some buffer operations - avoid strlen

2020-07-31  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200731
	Merge with NetBSD make, pick up
	o var.c: fix undefinded behavior for incomplete :t modifier
	  fixes unit-test/moderrs on Ubuntu
	o parse.c: When parsing variable assignments other than :=
	  if DEBUG(LINT) test substition of value, so we get a file and
	  line number in the resulting error.
	o dir.c: fix parsing of nested braces in dependency lines
	  add unit-tests

2020-07-30  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200730
	Merge with NetBSD make, pick up
	o var.c: minor cleanup
	o unit-tests: more tests to improve code coverage

2020-07-28  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200728
	Merge with NetBSD make, pick up
	o var.c: more optimizations

2020-07-26  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200726
	Merge with NetBSD make, pick up
	o collapse lsd.lib into lst.c - reduce code size and allow inlining
	o lots of function comment updates
	o var.c: more optimizations
	o make return of Var_Parse const

2020-07-20  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200720
	Merge with NetBSD make, pick up
	o DEBUG_HASH report stats at end and tone down the noise
	o var.c: each flag type gets its own prefix.
	move SysV string matching to var.c
	make ampersand in ${VAR:from=to&} an ordinary character
	cleanup and simplify implementation of modifiers
	o make.1: move documentation for assignment modifiers

2020-07-18  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200718
	Merge with NetBSD make, pick up
	o DEBUG_HASH to see how well the hash tables are working

2020-07-11  Simon J Gerraty  <sjg@@beast.crufty.net>

	* bsd.after-import.mk: make sure we update unit-tests/Makefile

2020-07-10  Simon J Gerraty  <sjg@@beast.crufty.net>

	* configure.in: use AC_INCLUDES_DEFAULT rather than AC_HEADER_STDC

	* VERSION (_MAKE_VERSION): 20200710
	Merge with NetBSD make, pick up
	o filemon/filemon_dev.c: use O_CLOEXEC rather than extra syscall
	o meta.c: target flagged .META is out-of-date if meta file missing

2020-07-09  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200709
	Merge with NetBSD make, pick up
	o cond.c: fix for compare_expression when doEval=0
	o unit-tests/Makefile: rework
	o filemon/filemon_dev.c: ensure filemon fd is closed on exec.

2020-07-04  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200704
	Merge with NetBSD make, pick up
	(most of this by rillig@@)
	o lots of style and white-space cleanup
	o lots more unit tests for variable modifiers
	o simplified description of some functions
	o str.c: refactor Str_Match
	o var.c: debugging output for :@@
	  constify VarModify parameter
	  fix :hash modifier on 16-bit platforms
	  remove unnecessary forward declarations
	  refactor ApplyModifier_SysV to have less indentation
	  simplify code for :E and :R
	  clean up code for :H and :T
	  refactor ApplyModifiers

	* var.c: we need stdint.h on some platforms to get uint32_t
	* unit-test/Makefile: we need to supress the specific error
	for RE substitution error in modmisc, since it varies accross
	different OS.

2020-07-02  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200702
	Merge with NetBSD make, pick up
	o var.c: more improvements to avoiding unnecessary evaluation
	use enums for flags
	o remove flags arg to Var_Set which outside of var.c is always 0

2020-07-01  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200701
	Merge with NetBSD make, pick up
	o var.c: with change to cond.c; ensure that nested variables
	within a variable name are expanded.
	o unit-tests/varmisc.mk: test for nested varname

2020-06-29  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200629
	Merge with NetBSD make, pick up
	o cond.c: do not eval unnecessary terms of conditionals.

2020-06-25  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200625
	Merge with NetBSD make, pick up
	o meta.c: report error if lseek in filemon_read fails

2020-06-22  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200622
	Merge with NetBSD make, pick up
	o dieQuietly: ignore OP_SUBMAKE as too aggressive

2020-06-19  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200619
	Merge with NetBSD make, pick up
	o str.c: performance improvement for Str_Match for multiple '*'
	o dieQuietly: supress the failure output from make
	when failing node is a sub-make or a sibling failed.
	This cuts down greatly on unhelpful noise at the end of
	build log.  Disabled by -dj or .MAKE.DIE_QUIETLY=no

2020-06-10  Simon J Gerraty  <sjg@@beast.crufty.net>

	* FILES: add LICENSE to appease some packagers.
	This is an attempt to fairly represent the license on almost
	200 files, which are almost all BSD-3-Clause
	The few exceptions being more liberal.

	* VERSION (_MAKE_VERSION): 20200610
	Merge with NetBSD make, pick up
	o unit test for :Or

2020-06-06  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200606
	Merge with NetBSD make, pick up
	o make.1: cleanup

	* Makefile: fix depends for main.o which broke MAKE_VERSION

2020-06-05  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200605
	Merge with NetBSD make, pick up
	o dir.c: cached_stats - don't confuse stat and lstat results.
	o var.c: add :Or for reverse sort.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.80 2022/11/09 13:14:07 joerg Exp $
d3 1
a3 1
PKGNAME=	bmake-20240711
@


1.80
log
@Reset MAINTAINER
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.79 2020/07/06 10:24:04 jperkin Exp $
d3 1
a3 2
DISTNAME=	bmake-20200524
PKGREVISION=	1
d5 1
a5 2
MASTER_SITES=	# empty
DISTFILES=	# empty
d7 1
a7 4
# distfile obtained from ftp://ftp.NetBSD.org/pub/NetBSD/misc/sjg/
# source is kept in files/ for bootstrap purposes

MAINTAINER=	pkgsrc-users@@NetBSD.org
a19 2
makesyspath=	${PREFIX}/share/mk

d23 2
a24 3
CONFIGURE_ARGS+=	--prefix=${PREFIX}
CONFIGURE_ARGS+=	--with-default-sys-path=${makesyspath}
CONFIGURE_ARGS+=	--with-machine_arch=${MACHINE_ARCH}
d58 1
a58 1
.  if defined(CATMAN_SECTION_SUFFIX) && !empty(CATMAN_SECTION_SUFFIX:M[Yy][Ee][Ss])
d67 1
a67 1
	cd ${WRKSRC}/unit-tests && ${WRKSRC}/bmake test
@


1.79
log
@bmake: Support mksh as a bootstrap shell.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.78 2020/06/18 10:07:35 jperkin Exp $
d12 1
a12 1
MAINTAINER=	joerg@@NetBSD.org
@


1.78
log
@bmake: Fix match for bootstrap pdksh.

When bmake is built during bootstrap it's using a temporary prefix, so matching
against LOCALBASE doesn't work.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.77 2020/06/12 16:01:36 jperkin Exp $
d41 4
a44 3
.if ${OPSYS} == "SunOS" && exists(/usr/bin/bash)
CONFIGURE_ARGS+=	--with-defshell=/usr/bin/bash
.elif ${TOOLS_PLATFORM.sh:M*/bin/pdksh}
d47 2
@


1.77
log
@bmake: Improve heuristic deciding whether to use pdksh.

The ultimate goal here is to completely sync with what was used by the
bootstrap script, but for now this will at least ensure if pdksh was pulled
in by bootstrap then the final build of devel/bmake will also use the same
shell rather than randomly based on OPSYS.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.76 2020/06/02 10:07:33 sjmulder Exp $
d43 1
a43 1
.elif ${TOOLS_PLATFORM.sh} == "${LOCALBASE}/bin/pdksh"
@


1.76
log
@bmake: Use 64 bit off_t on SunOS

Fixes bmake not finding files (e.g. .include) on Illumos wiht 32 bit
ABI.

See also: https://www.illumos.org/issues/9508
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.75 2020/05/24 21:10:17 nia Exp $
d37 4
d43 1
a43 1
.elif ${OPSYS} == "SunOS" || ${OPSYS} == "OSF1" || ${OPSYS} == "IRIX" || ${OPSYS} == "AIX"
d47 1
d51 1
a51 1
CFLAGS.SunOS+=-D_FILE_OFFSET_BITS=64
@


1.75
log
@bmake: Update to 20200524.

This should help bootstrap on older platforms, such as IRIX with
the mipspro compiler.

2020-05-24  Simon J Gerraty  <sjg@@beast.crufty.net>

	* configure.in: add AC_PROG_CC_C99 for mipspro compiler
	* dirname.c: remove include of namespace.h
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.74 2020/05/24 11:09:43 nia Exp $
d4 1
d45 3
@


1.74
log
@bmake: Update to 20200517

2020-05-17  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200517
	Merge with NetBSD make, pick up
	o modified dollar tests to avoid shell dependencies
	o new tests for .INCLUDEFROM

2020-05-16  Simon J Gerraty  <sjg@@beast.crufty.net>

	* unit-tests/dollar.mk: tweak  '1 dollar literal' test
	to not depend so much on shell behavior

2020-05-10  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200510
	Merge with NetBSD make, pick up
	o unit test for dollar handling

2020-05-06  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200506
	Merge with NetBSD make, pick up
	o str.c: empty string does not match % pattern
	  plus unit-test changes

2020-05-04  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200504
	May the 4th be with you
	Merge with NetBSD make, pick up
	o var.c: import handling of old sysV style modifier using '%'
	o str.c: refactor brk_string
	o unit-tests: add test case for lazy conditions

2020-04-18  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200418

	* configure.in: use_makefile=no for cygwin et al.
	case insensitive filesystems just don't work if both
	makefile and Makefile exist.
	NOTE: bmake does not support cygwin and likely never will,
	but if brave souls want to try it - help them out.

2020-04-02  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200402
	Merge with NetBSD make, pick up
	o meta.c: meta_oodate, CHECK_VALID_META is too aggressive for CMD
	  a blank command is perfectly valid.

2020-03-30  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200330
	Merge with NetBSD make, pick up
	o make.h: extern debug_file

2020-03-18  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200318
	Merge with NetBSD make, pick up
	o meta.c: meta_oodate, check for corrupted meta file
	  earlier and more often.

2020-02-20  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200220

2020-02-19  Simon J Gerraty  <sjg@@beast.crufty.net>

	* boot-strap: unset MAKEFLAGS

2020-02-12  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION (_MAKE_VERSION): 20200212
	* meta.c: meta_compat_parent check for USE_FILEMON
	  patch from Soeren Tempel

2020-02-05  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION: 20200205
	Merge with NetBSD make, pick up
	o meta.c: fix compat mode, need to call meta_job_output()
	o job.c: extra fds for meta mode not needed if using filemon_dev

2020-01-22  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION: 20200122
	Merge with NetBSD make, pick up
	o meta.c: avoid passing NULL to filemon_*() when meta_needed()
	  returns FALSE.

2020-01-21  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION: 20200121
	Merge with NetBSD make, pick up
	o filemon/filemon_{dev,ktrace}.c: allow selection of
	  filemon implementation.  filemon_dev.c uses the kernel module
	  while filemon_ktrace.c leverages the fktrace api available in
	  NetBSD.  filemon_ktrace.c can hopefully form the basis for
	  adding support for other tracing mechanisms such as strace on
	  Linux.
	o meta.c: when target is out-of-date per normal make rules
	  record value of .OODATE in meta file.

2019-09-26  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION: 20190926
	  Merge with NetBSD make, pick up
	  o parse.c: don't pass NULL to realpath(3)
	    some versions cannot handle it.

2019-04-09  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION: 20190409
	  Merge with NetBSD make, pick up
	  o parse.c: ParseDoDependency: free paths rather than assert

2018-12-22  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION: 20181222

	* configure.in: add --without-makefile to avoid generating
	  makefile and make-bootstrap.sh

	* include Makefile.inc if it exists

	* Use Makefile and Makefile.config.in in unit-tests
	  so we can use just: make obj && make && make test
	  when bmake is already available.
	  We add --without-makefile to CONFIGURE_ARGS in this case.

	* tweak bsd.after-import.mk (captures Makefile.config etc
	  after import to FreeBSD for example) to cope with all the above.

2018-12-21  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION: 20181221
	  Merge with NetBSD make, pick up
	  o parse.c: ParseVErrorInternal use .PARSEDIR
	    and apply if relative, and then use .PARSEFILE
	    for consistent result.

2018-12-20  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION: 20181220
	  Merge with NetBSD make, pick up
	  o parse.c: ParseVErrorInternal use .CURDIR if .PARSEDIR
	    is relative
	  o var.c: avoid SEGFAULT in .unexport-env
	    when MAKELEVEL is not set

2018-12-16  Simon J Gerraty  <sjg@@beast.crufty.net>

	* VERSION: 20181216
	  Merge with NetBSD make, pick up
	  o fix for unit-tests/varquote.mk on Debian

2018-09-21  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* VERSION: 20180919
	  Merge with NetBSD make, pick up
	  o var.c: add :q
	  o dir.c: cleanup caching of stats

2018-09-21  Simon J Gerraty  <sjg@@beast.crufty.net>

	* Makefile.config.in: use += where it makes sense.

2018-05-12  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* VERSION: 20180512
	  Merge with NetBSD make, pick up
	  o job.c: skip polling job token pipe

2018-04-05  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* VERSION: 20180405
	  Merge with NetBSD make, pick up
	  o parse.c: be more cautious about detecting depenency line
	    rather than sysV style include.

2018-02-22  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* VERSION: 20180222
	  Merge with NetBSD make, pick up
	  o parse.c: avoid calling sysconf for every call to loadfile

2018-02-18  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* VERSION: 20180218
	  Merge with NetBSD make, pick up
	  o var.c: Var_Set handle NULL value anytime.

2018-02-12  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* VERSION: 20180212
	  Merge with NetBSD make, pick up
	  o parse.c: do not treat .info as warning with -W

2017-12-07  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* VERSION: 20171207
	  Merge with NetBSD make, pick up
	  o var.c: Var_Append use Var_Set if var not previously set
	    so that VAR_CMD is handled correctly.
	    Add a suitable unit-test.

2017-11-26  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* VERSION (_MAKE_VERSION): 20171126

	* aclocal.m4: use AC_LINK_IFELSE for AC_C___ATTRIBUTE__
	  since AC_TRY_COMPILE puts input inside main()
	  which upsets modern compilers.

2017-11-18  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* VERSION: 20171118
	  Merge with NetBSD make, pick up
	  o var.c: do not append to variable set on command line
	    add unit-test to catch this.

2017-10-28  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* VERSION: 20171028
	  Merge with NetBSD make, pick up
	  o main.c: ignore empty MAKEOBJDIR

	* Makefile.config.in:
	  make @@prefix@@ @@machine*@@ and @@default_sys_path@@ defaults.

2017-10-05  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* VERSION: 20171005

	* unit-tests/dotwait.mk: redirect stderr through pipe for more
	  consistent result on some platforms.

2017-08-13  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* machine.sh: entry for AIX

2017-08-12  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* VERSION (_MAKE_VERSION): Move the setting of _MAKE_VERSION
	  to a file that can be included by configure as well as make.
	  This allows configure to set set _MAKE_VERSION in make-bootstrap.sh

2017-08-10  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170810
	  Merge with NetBSD make, pick up
	  o meta.c: if target is in subdir we only need subdir name in
	    meta_name.

2017-07-20  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170720
	  Merge with NetBSD make, pick up
	  o compat.c: pass SIGINT etc onto child and wait for it to exit
	    before we self-terminate.

2017-07-11  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170711
	  forgot to update after merge on 20170708 ;-)
	  o main.c: refactor to reduce size of main function.
	    add -v option to always fully expand values.
	  o meta.c: ensure command output in meta file has ending newline
	    even when filemon not being used.
	    When matching ${.MAKE.META.IGNORE_PATTERNS} do not use
	    pathname via ':L' since any ':' in pathname breaks that.
	    Instead set a '${.p.}' to pathname in the target context and
	    use that.

2017-05-10  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170510
	  Merge with NetBSD make, pick up
	  o main.c: Main_SetObjdir: ensure buf2 is in scope

2017-05-08  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170505
	  see mk/ChangeLog

2017-05-05  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* parse.c: not everyone has stdint.h

2017-05-01  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170501
	  see mk/ChangeLog

2017-04-21  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170421
	  Merge with NetBSD make, pick up
	  o str.c: Str_Match: fix closure tests for [^] and add unit-test.

2017-04-20  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170420
	  Merge with NetBSD make, pick up
	  o main.c: only use -C arg "as is" if it contains no
	    relative component.

2017-04-18  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170418
	  Merge with NetBSD make, pick up
	  o main.c: fix Main_SetObjdir() for relative paths (eg obj).

2017-04-17  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170417
	  Merge with NetBSD make, pick up
	  o fixes a number of coverity complaints
	    - check return value of fseek, fcntl
	    - plug memory leak in Dir_FindFile, Var_LoopExpand,
	      JobPrintCommand, ParseTraditionalInclude
	    - use bmake_malloc() where NULL is not tollerated
	    - use MAKE_ATTR_UNUSED rather that kludges like
	      return(unused ? 0 : 0)
	    - use purge_cached_realpaths() rather than abuse cached_realpath()

2017-04-13  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170413
	  Merge with NetBSD make, pick up
	  o main.c: when setting .OBJDIR ignore '$' in paths.

	* job.c: use MALLOC_OPTIONS to set malloc_options.

2017-04-11  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170411
	  Merge with NetBSD make, pick up
	  o str.c: Str_Match: allow [^a-z] to behave as expected.

2017-03-26  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170326
	  Merge with NetBSD make, pick up
	  o main.c: purge relative paths from realpath cache when .OBJDIR
	    is changed.

2017-03-11  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170311
	  Merge with NetBSD make, pick up
          o main.c: only use -C arg "as is" if it starts with '/'.

2017-03-01  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170301
	  Merge with NetBSD make, pick up
	  o main.c: use -C arg "as is" rather than getcwd()
	    if they identify the same directory.
	  o parse.c: ensure loadfile buffer is \n terminated in non-mmap case

2017-02-01  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170201
	  Merge with NetBSD make, pick up
	  o var.c: allow :_=var and avoid use of special context.

2017-01-30  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170130
	  Merge with NetBSD make, pick up
	  o var.c: add :range and :_
	  o main.c: partially initialize Dir_* before MainParseArgs()
	    can be called.
	    If -V, skip Main_ExportMAKEFLAGS()

2017-01-14  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20170114
	  Merge with NetBSD make, pick up
	  o var.c: allow specifying the utc value used by :{gm,local}time

2016-12-12  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20161212
	  Merge with NetBSD make, pick up
          o main.c: look for obj.${MACHINE}-${MACHINE_ARCH} too.

2016-12-09  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20161209
	  Merge with NetBSD make, pick up
	  o main.c: cleanup setting of .OBJDIR
	  o parse.c: avoid coredump from (var)=val

2016-11-26  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20161126
	  Merge with NetBSD make, pick up
	  o make.c: Make_OODate: report src node name if path not set

2016-09-26  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20160926
	  Merge with NetBSD make, pick up
	  o support for .DELETE_ON_ERROR: (remove targets that fail)

2016-09-26  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile MAN: tweak .Dt to match ${PROG}

2016-08-18  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20160818
	  its a neater number; pick up whitespace fixes to man page.

2016-08-17  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20160817
	  Merge with NetBSD make, pick up
	  o meta.c: move handling of .MAKE.META.IGNORE_* to meta_ignore()
	    so we can call it before adding entries to missingFiles.
	    Thus we do not track files we have been told to ignore.

2016-08-15  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20160815
	  Merge with NetBSD make, pick up
	  o meta_oodate: apply .MAKE.META.IGNORE_FILTER (if defined) to
	    pathnames, and skip if the expansion is empty.
	    Useful for dirdeps.mk when checking DIRDEPS_CACHE.

2016-08-12  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20160812
	  Merge with NetBSD make, pick up
	  o meta.c: remove all missingFiles entries that match a deleted
	    dir.
	  o main.c: set .ERROR_CMD if possible.

2016-06-06  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20160606
	  Merge with NetBSD make, pick up
	  o dir.c: extend mtimes cache to others via cached_stat()

2016-06-04  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20160604
	  Merge with NetBSD make, pick up
	  o meta.c: missing filemon data is only relevant if we read a
	    meta file.
	    Also do not return oodate for a missing metafile if gn->path
	    points to .CURDIR

2016-06-02  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20160602
	  Merge with NetBSD make, pick up
	  o cached_realpath(): avoid hitting filesystem more than necessary.
	  o meta.c: refactor need_meta decision, add knobs for
	    missing meta file and filemon data wrt out-of-datedness.

2016-05-28  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20160528

	* boot-strap, make-bootstrap.sh.in: Makefile now uses _MAKE_VERSION

2016-05-12  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20160512
	  Merge with NetBSD make, pick up
	  o meta.c: ignore paths that match .MAKE.META.IGNORE_PATTERNS
	    this is useful for gcov builds.
	  o propagate errors from filemon(4).

2016-05-09  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20160509
	  Merge with NetBSD make, pick up
	  o remove use of non-standard types u_int etc.
	  o meta.c: apply realpath() before matching against metaIgnorePaths

2016-04-04  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20160404
	  Merge with NetBSD make, pick up
	  o allow makefile to set .MAKE.JOBS

	* Makefile (PROG_NAME): use ${_MAKE_VERSION}

2016-03-15  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): 20160315
	  Merge with NetBSD make, pick up
	  o fix handling of archive members

2016-03-13  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (_MAKE_VERSION): rename variable to avoid interference
	  with checks for ${MAKE_VERSION}

2016-03-10  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (MAKE_VERSION): 20160310
	  Merge with NetBSD make, pick up
	  o meta.c: treat missing Read file same as Write, incase we Delete it.

2016-03-07  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (MAKE_VERSION): 20160307
	  Merge with NetBSD make, pick up
	  o var.c: fix :ts\nnn to be octal by default.
	  o meta.c: meta_finish() to cleanup memory.

2016-02-26  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (MAKE_VERSION): 20160226
	  Merge with NetBSD make, pick up
	  o meta.c: allow meta file for makeDepend if makefiles want it.

2016-02-19  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* var.c: default .MAKE.SAVE_DOLLARS to FALSE
	  for backwards compatability.

	* Makefile (MAKE_VERSION): 20160220
	  Merge with NetBSD make, pick up
	  o var.c: add knob to control handling of '$$' in :=

2016-02-18  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (MAKE_VERSION): 20160218
	  Merge with NetBSD make, pick up
	  o var.c: add .export-literal allows us to fix sys.clean-env.mk
	    post the changes to Var_Subst.
	    Var_Subst now takes flags, and does not consume '$$' in :=

2016-02-17  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (MAKE_VERSION): 20160217
	  Merge with NetBSD make, pick up
	  o var.c: preserve '$$' in :=
	  o parse.c: add .dinclude for handling included
	    makefile like .depend

2015-12-20  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (MAKE_VERSION): 20151220
	  Merge with NetBSD make, pick up
	  o suff.c: re-initialize suffNull when clearing suffixes.

2015-12-01  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (MAKE_VERSION): 20151201
	  Merge with NetBSD make, pick up
	  o cond.c: CondCvtArg: avoid access beyond end of empty buffer.
	  o meta.c: meta_oodate: use lstat(2) for checking link target
	    in case it is a symlink.
	  o var.c: avoid calling brk_string and Var_Export1 with empty
	    strings.

2015-11-26  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (MAKE_VERSION): 20151126
	  Merge with NetBSD make, pick up
	  o parse.c: ParseTrackInput don't access beyond
	    end of old value.

2015-10-22  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (MAKE_VERSION): 20151022

	* Add support for BSD/OS which lacks inttypes.h
	  and really needs sys/param.h for sys/sysctl.h
	  also 'type' is not a shell builtin.

	* var.c: eliminate uint32_t and need for inttypes.h

	* main.c: PrintOnError flush stdout before run .ERROR

	* parse.c: cope with _SC_PAGESIZE not being defined.


2015-10-20  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (MAKE_VERSION): 20151020
	  Merge with NetBSD make, pick up
	  o var.c: fix uninitialized var

2015-10-12  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* var.c: the conditional expressions used with ':?' can be
	expensive, if already discarding do not evaluate or expand
	anything.

2015-10-10  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (MAKE_VERSION): 20151010
	  Merge with NetBSD make, pick up
	  o Add Boolean wantit flag to Var_Subst and Var_Parse
	    when FALSE we know we are discarding the result and can
	    skip operations like Cmd_Exec.

2015-10-09  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (MAKE_VERSION): 20151009
	  Merge with NetBSD make, pick up
	  o var.c: don't check for NULL before free()
	  o meta.c: meta_oodate, do not hard code ignore of makeDependfile

2015-09-10  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (MAKE_VERSION): 20150910
	  Merge with NetBSD make, pick up
	  o main.c: with -w print Enter/Leaving messages for objdir too
	    if necessary.
	  o centralize shell metachar handling

	* FILES: add metachar.[ch]

2015-06-06  Simon J. Gerraty  <sjg@@bad.crufty.net>

	* Makefile (MAKE_VERSION): 20150606
	  Merge with NetBSD make, pick up
	  o make.1: document .OBJDIR target
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.73 2016/02/25 12:12:47 jperkin Exp $
d3 1
a3 1
DISTNAME=	bmake-20200517
@


1.73
log
@Use OPSYSVARS.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.72 2016/01/24 16:14:44 jperkin Exp $
d3 1
a3 1
DISTNAME=	bmake-20150505
@


1.72
log
@Attempt to bring sanity to how ABI and MACHINE_ARCH are set.

Previously there were at least 5 different ways MACHINE_ARCH could be set,
some statically and some at run time, and in many cases these settings
differed, leading to issues at pkg_add time where there was conflict
between the setting encoded into the package and that used by pkg_install.

Instead, move to a single source of truth where the correct value based on
the host and the chosen (or default) ABI is determined in the bootstrap
script.  The value can still be overridden in mk.conf if necessary, e.g.
for cross-compiling.

ABI is now set by default and if unset a default is calculated based on
MACHINE_ARCH.  This fixes some OS, e.g. Linux, where the wrong default was
previously chosen.

As a result of the refactoring there is no need for LOWER_ARCH, with
references to it replaced by MACHINE_ARCH.  SPARC_TARGET_ARCH is also
removed.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.71 2015/06/17 17:37:50 tron Exp $
d42 1
a42 3
.if ${OPSYS} == "Interix"
MAKE_ENV+=		XDEFS=-DUSE_SELECT
.endif
@


1.71
log
@Prefer "/usr/bin/bash" over the "pdksh" package for all versions
of Solaris.

Change during pkgsrc freeze approved by Jonathan Perkin.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.70 2015/05/19 22:04:35 joerg Exp $
d31 1
a44 3
.if ${OPSYS} == "IRIX"
CONFIGURE_ARGS+=	--with-machine_arch=${MACHINE_ARCH}
.endif
@


1.70
log
@Update to bmake-20150505:
- Better .if checks
- Improved handling for "-" mode
- Improved suffix handling
- Recognize bitrig
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.69 2015/05/03 14:23:09 sevan Exp $
d35 1
a35 1
.if !empty(MACHINE_PLATFORM:MSunOS-5.11-*) && exists(/usr/bin/bash)
@


1.69
log
@Switch AIX to using pdksh as the default shell too.

"/bin/sh: There is no process to read data written to a pipe." is logged using
system supplied shell during the scan stage of a bulkbuildi otherwise.

Reviewed by wiz@@
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.68 2015/04/16 11:40:43 joerg Exp $
d3 1
a3 2
DISTNAME=	bmake-20140314
PKGREVISION=	1
@


1.68
log
@Don't use memcpy for overlapping ranges. Bump revision.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.67 2014/03/14 21:59:34 ryoon Exp $
d38 1
a38 1
.elif ${OPSYS} == "SunOS" || ${OPSYS} == "OSF1" || ${OPSYS} == "IRIX"
@


1.67
log
@Bump version to 20140314

* Add SCO OpenServer 5.0.7/3.2 support
* Replace _DIR with _DIR_H in dir.h, because SCO OpenServer 5.0.7/3.2 has _DIR
  macro in dirent.h
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.66 2014/02/16 08:55:22 ryoon Exp $
d4 1
@


1.66
log
@Fix column of .if etc.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.65 2014/02/15 10:42:52 jperkin Exp $
d3 1
a3 1
DISTNAME=	bmake-20140214
@


1.65
log
@Only install the catman page if catinstall is defined.  Noticed by tron@@
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.64 2014/02/14 16:09:18 jperkin Exp $
d58 1
a58 1
  .if defined(CATMAN_SECTION_SUFFIX) && !empty(CATMAN_SECTION_SUFFIX:M[Yy][Ee][Ss])
d60 1
a60 1
  .else
d62 1
a62 1
  .endif
@


1.64
log
@bmake-20140214: Install the catman page.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.63 2013/02/26 00:52:20 christos Exp $
d57 2
a58 1
.if defined(CATMAN_SECTION_SUFFIX) && !empty(CATMAN_SECTION_SUFFIX:M[Yy][Ee][Ss])
d60 1
a60 1
.else
d62 1
@


1.63
log
@bump revision
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.62 2013/02/18 22:38:19 adam Exp $
d3 1
a3 2
DISTNAME=	bmake-20110606
PKGREVISION=	1
d26 1
a26 1
INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1
d57 5
@


1.62
log
@Added do-test:
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.61 2013/01/31 22:55:22 hans Exp $
d4 1
@


1.61
log
@Use /usr/bin/bash on all SunOS 5.11 variants if it exists. Fall back to
shells/pdksh in all other cases, native /bin/ksh is not good enough.
@
text
@d1 1
a1 2
# $NetBSD: Makefile,v 1.60 2012/11/01 16:48:12 sjg Exp $
#
d31 1
a31 1
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR:Q}
d59 3
@


1.60
log
@Patch from Jan-Jaap van der Heijden for IRIX
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.59 2012/10/31 11:16:40 asau Exp $
d36 1
a36 1
.if ${OS_VARIANT} == "SmartOS"
a37 2
.elif ${OPSYS} == "SunOS" && ${OS_VERSION} == "5.11"
CONFIGURE_ARGS+=	--with-defshell=/bin/ksh
@


1.59
log
@Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.58 2012/07/24 13:18:00 jperkin Exp $
d40 1
a40 1
.elif ${OPSYS} == "SunOS" || ${OPSYS} == "OSF1"
@


1.58
log
@Make bash the default shell on SmartOS.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.57 2012/06/15 09:54:41 jperkin Exp $
a18 1
PKG_DESTDIR_SUPPORT=	user-destdir
@


1.57
log
@Use native ksh93 on Solaris 11 and derivatives.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.56 2012/06/10 12:44:27 asau Exp $
d37 3
a39 1
.if ${OPSYS} == "SunOS" && ${OS_VERSION} == "5.11"
@


1.56
log
@Use configure framework and separate configure and build steps as usually.
From GSoC 2011 project by Stathis Kamperis.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.55 2011/06/18 22:43:34 bsiegert Exp $
d37 3
a39 1
.if ${OPSYS} == "SunOS" || ${OPSYS} == "OSF1"
@


1.55
log
@Update version in Makefile
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.54 2011/05/09 07:48:57 cheusov Exp $
d30 4
a33 3
BOOTSTRAP_ARGS=		-q -o ${OPSYS} --prefix=${PREFIX} \
			--with-default-sys-path=${makesyspath} \
			--mksrc none --sysconfdir=${PKG_SYSCONFDIR:Q}
d39 1
a39 1
BOOTSTRAP_ARGS+=	--with-defshell=${PREFIX}/bin/pdksh
d45 1
a45 1
BOOTSTRAP_ARGS+=	--with-machine_arch=${MACHINE_ARCH}
a50 2
do-configure:

d52 2
a53 2
	cd ${WRKDIR} && \
		${SETENV} ${MAKE_ENV} ${SH} ./bmake/boot-strap ${BOOTSTRAP_ARGS}
d56 1
a56 1
	${INSTALL_PROGRAM} ${WRKDIR}/${OPSYS}/bmake ${DESTDIR}${PREFIX}/bin
@


1.54
log
@
Closes PR pkg/44501.
Pass pkgsrc's MACHINE_ARCH to bmake's configure script. Oked by wiz@@
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.53 2010/09/10 02:42:59 obache Exp $
d4 1
a4 1
DISTNAME=	bmake-20100808
@


1.53
log
@Force to use select(2) instead of poll(3) for Interix.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.52 2010/09/07 14:45:39 joerg Exp $
d43 3
@


1.52
log
@Mark as bmake 20100808
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.51 2010/04/24 21:10:52 joerg Exp $
d40 3
@


1.51
log
@Update to bmake-20100423
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.50 2010/04/21 14:29:43 joerg Exp $
d4 1
a4 1
DISTNAME=	bmake-20100423
@


1.50
log
@Reflect update.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.49 2009/09/19 06:44:33 tron Exp $
d4 1
a4 1
DISTNAME=	bmake-20100414
@


1.49
log
@Set the license to "modified-bsd".
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.48 2009/09/18 21:27:25 joerg Exp $
d4 1
a4 1
DISTNAME=	bmake-20090909
@


1.48
log
@Update to bmake-20090909
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.47 2009/04/09 00:48:07 joerg Exp $
d15 1
@


1.47
log
@Remove redundant NO_CHECKSUM and EXTRACT_ONLY definitions.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.46 2008/11/11 20:01:58 joerg Exp $
d4 1
a4 1
DISTNAME=	bmake-20081111
@


1.46
log
@Update to bmake-20081111 (portability changes).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.45 2008/11/11 14:41:21 joerg Exp $
a21 1
NO_CHECKSUM=	yes
@


1.45
log
@bmake is now at 20081101.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.44 2008/06/19 18:36:51 joerg Exp $
d4 1
a4 1
DISTNAME=	bmake-20081101
@


1.44
log
@Add a marker for bootstrap packages to allow special cases them during
bulk builds.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.43 2008/05/23 18:06:44 tnn Exp $
d4 1
a4 2
DISTNAME=	bmake-20080215
PKGREVISION=	1
@


1.43
log
@Set need_ksh=yes for SunOS as well. Asked by joerg@@
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.42 2008/05/23 17:43:31 tnn Exp $
d20 1
@


1.42
log
@On OSF1, depend on shells/pdksh and use it for the default shell.
Bump the pkgrevision because if this change.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.41 2008/03/09 19:54:28 joerg Exp $
d36 1
a36 5
.if ${OPSYS} == "SunOS" && exists(/usr/xpg4/bin/sh)
BOOTSTRAP_ARGS+=	--with-defshell=/usr/xpg4/bin/sh
.endif

.if ${OPSYS} == "OSF1"
@


1.41
log
@Update bmake to 20080215. I'll take care of pkgsrc maintainership.

Changes include many bugfixes and performance speed ups. See
ChangeLog for details.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.40 2008/03/03 17:45:34 jlam Exp $
d5 1
d40 5
@


1.40
log
@Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.39 2008/02/05 15:37:18 tnn Exp $
d4 1
a4 2
DISTNAME=	bmake-20051105
PKGREVISION=	4
d12 1
a12 1
MAINTAINER=	pkgsrc-users@@NetBSD.org
a21 1
NO_MTREE=	yes
@


1.39
log
@Reset maintainer, until someone merges the changes from NetBSD-current.
Any takers?
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.38 2007/09/21 10:16:28 rillig Exp $
d19 2
d51 2
a52 2
	${INSTALL_PROGRAM} ${WRKDIR}/${OPSYS}/bmake ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/bmake.1 ${PREFIX}/${PKGMANDIR}/man1
@


1.38
log
@Fixed a typo (xpg4 instead of xpg).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.37 2007/09/08 21:57:58 jlam Exp $
d13 1
a13 1
MAINTAINER=	sjg@@NetBSD.org
@


1.37
log
@Convert to use the features framework.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.36 2007/09/06 19:23:25 joerg Exp $
d35 1
a35 1
.if ${OPSYS} == "SunOS" && exists(/usr/xpg/bin/sh)
@


1.36
log
@Try to force a proper shell on Solaris by extending bmake to
expect full path names. Use the default locations in /bin unless
overriden explicitly. Bump revision of bmake.

On Solaris, use /usr/xpg4/bin/sh if it exists.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.35 2007/04/12 21:28:42 joerg Exp $
d23 2
a51 1
.include "../../pkgtools/libnbcompat/inplace.mk"
@


1.35
log
@Explicitly depend on bootstrap-mk-files, remove the broken_in marker.
This package is special. Bump revision.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.34 2007/04/12 20:31:05 joerg Exp $
d5 1
a5 1
PKGREVISION=	3
d27 10
d44 1
a44 4
		${SETENV} ${MAKE_ENV} ${SH} ./bmake/boot-strap \
		-q -o ${OPSYS} --prefix=${PREFIX} \
		--with-default-sys-path=${makesyspath} --mksrc none \
		--sysconfdir=${PKG_SYSCONFDIR}
@


1.34
log
@Change bootstrap to register bmake as package. Change bmake to
use inplace libnbcompat like the direct build from bootstrap
does. Fix a long-standing bug in mkbinarykit. The default work
directory was "work" (relative) and therefore MAKECONF=work/...
was passed down, effectively making it a nop. That resulted in
digest being incorrectly installed during the bootstrap.

Tested on DragonFly by myself and on OSF by tnn@@, discussed with jlam@@
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.33 2007/03/05 00:24:33 dbj Exp $
d5 1
a5 1
PKGREVISION=	2
d17 1
a17 1
BROKEN_IN=		pkgsrc-2006Q4
@


1.33
log
@install bmake.1 from ${WRKSRC} instead of ${WRKDIR}/${OBJSYS}
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.32 2007/02/22 19:26:20 wiz Exp $
d34 2
a35 1
		./bmake/boot-strap -q -o ${OPSYS} --prefix=${PREFIX} \
d43 1
a43 6
.if defined(LIBNBCOMPAT_STYLE) && (${LIBNBCOMPAT_STYLE} == "inplace")
.  include "../../pkgtools/libnbcompat/inplace.mk"
.else
.  include "../../pkgtools/libnbcompat/buildlink3.mk"
.endif

@


1.32
log
@Whitespace cleanup, courtesy of pkglint.
Patch provided by Sergey Svishchev in private mail.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.31 2007/01/31 00:04:11 wiz Exp $
d40 1
a40 1
	${INSTALL_MAN} ${WRKDIR}/${OPSYS}/bmake.1 ${PREFIX}/${PKGMANDIR}/man1
@


1.31
log
@Mark as BROKEN_IN pkgsrc-2006Q4, based on
ftp://asim.lip6.fr/outgoing/packages/i386/3.1/20070114.1132/broken.html
(latest 3.1/i386 bulk build of 2006Q4).

Feel free to fix them...
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.30 2006/07/14 16:24:29 jlam Exp $
d4 1
a4 1
DISTNAME=       bmake-20051105
d42 1
a42 1
.if defined(LIBNBCOMPAT_STYLE) && (${LIBNBCOMPAT_STYLE} == "inplace")  
@


1.30
log
@Mark these packages as NO_MTREE as they are bootstrap packages and don't
need mtree to pre-generate any directories for them.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.29 2006/07/14 15:18:17 jlam Exp $
d17 2
@


1.29
log
@Don't bother installing the catman page... it's not worth the hassle for
a bootstrap tool to figure out how to do this.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.28 2005/11/16 13:53:51 joerg Exp $
d18 2
a19 1
NO_CHECKSUM=	YES
@


1.28
log
@sysMkPath should be ${PREFIX}/share/mk by default and only that.
Including e.g. /usr/share/mk results in sys.mk read from there
as well. On DragonFly this adds X11BASE and results in obscure
breakages. Since the mk files are supposed to be self-contained,
it doesn't make much sense to look in other directories anyway.
Bump revision to annotate this.

Discussed-with: reed@@.
Reported-by: Aggelos Economopoulos <aoiko AT cc DOT ece DOT ntua DOT gr>
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.27 2005/11/10 00:09:34 reed Exp $
d5 1
a5 1
PKGREVISION=	1
d22 1
a22 1
INSTALLATION_DIRS=	bin ${PKGMANDIR}/cat1 ${PKGMANDIR}/man1
a34 5
# we use locally formatted version if available
BMAKE_CATg=${WRKDIR}/${OPSYS}/bmake.cat1
# otherwise we use the distributed one
BMAKE_CATd=${WRKSRC}/bmake.cat1

a36 1
	${INSTALL_MAN} ${BMAKE_CAT1} ${PREFIX}/${PKGMANDIR}/cat1/bmake.0
a45 10

# with bmake-20040108 or later we could use
# ${exists(${BMAKE_CATg}):?${BMAKE_CATg}:${BMAKE_CATd}}
# to do the existence test at the time we run the script
# but pkgsrc/bootstrap/bmake won't handle that.
.if exists(${BMAKE_CATg})
BMAKE_CAT1=${BMAKE_CATg}
.else
BMAKE_CAT1=${BMAKE_CATd}
.endif
@


1.27
log
@Update to version 20051105.

Remove GNU_CONFIGURE=no from pkgsrc Makefile.

Add "--mksrc none" to arguments and
add --prefix=${PREFIX} and --sysconfdir=${PKG_SYSCONFDIR}
and remove ${CONFIGURE_ARGS} for boot-strap.

Note that I didn't import the files that only change was a
CVS $Id$ tag.

From ChangeLog:

2005-11-05  Simon J. Gerraty  <sjg@@void.crufty.net>

	* Makefile.in (BMAKE_VERSION): bump to 20051105
	* configure.in: always set default_sys_path
	  default is ${prefix}/share/mk
	  - remove prefix_sys_path, anyone wanting more than above
	    needs to set it manually.

2005-11-04  Simon J. Gerraty  <sjg@@void.crufty.net>

	* boot-strap: make this a bit easier for pkgsrc folk.
	  bootstrap still fails on IRIX64 since MACHINE_ARCH gets set to
	  'mips' while pkgsrc wants 'mipseb' or 'mipsel'

2005-11-02  Simon J. Gerraty  <sjg@@void.crufty.net>

	* Makefile.in (BMAKE_VERSION): bump to 20051102
	* job.c (JobFinish): fix likely ancient merge lossage
	fix from Todd Vierling.
	* boot-strap (srcdir): allow setting mksrc=none

2005-10-31  Simon J. Gerraty  <sjg@@void.crufty.net>

	* Makefile.in (BMAKE_VERSION): bump to 20051031
	* ranlib.h: skip on OSF too.
	  (NetBSD PR 31864)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.26 2005/11/02 18:16:04 tv Exp $
d5 1
d20 1
a20 1
makesyspath=${PREFIX}/share/mk:/usr/share/mk:/usr/local/share/mk:/opt/share/mk
@


1.26
log
@Fix glaring error in job.c that I fixed back in the prehistoric
bootstrap-pkgsrc incarnation (WTERMSIG->WSTOPSIG).
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.25 2005/11/01 00:07:20 reed Exp $
d4 1
a4 2
DISTNAME=       bmake-20051002
PKGREVISION=	2
a19 2
GNU_CONFIGURE=	no
CONFIGURE_ARGS+= --with-default-sys-path=${makesyspath}
d29 4
a32 1
	cd ${WRKDIR} && ./bmake/boot-strap -q -o ${OPSYS} ${CONFIGURE_ARGS}
@


1.25
log
@Add patch-ab and bump PKGREVISION.
This is from bootstrap for OSF1 5.1 from Sergey Svishchev in PR 31864.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2005/10/31 21:34:25 reed Exp $
d5 1
a5 1
PKGREVISION=	1
@


1.24
log
@Keep the bmake source in pkgsrc/devel/bmake/files/.
The plan is to remove the out-of-date source from bootstrap/bmake.
Sources obtained from ftp://ftp.NetBSD.org/pub/NetBSD/misc/sjg/.
Source is kept in files/ for bootstrap purposes (to be done).

Update to version bmake-20051002. Changes include:

        * Makefile.in (BMAKE_VERSION): bump to 20051001
          support for UnixWare and some other systems,
          based on patches from pkgsrc/bootstrap

Remove DEPENDS for mk-files (as mentioned on tech-pkg in June).

Use libnbcompat. Also patch-aa is to use libnbcompat.
(I chose to use patches so files would be exact from original source
tarball.)

And use PKGMANDIR.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2005/09/04 17:09:54 sjg Exp $
d5 1
@


1.23
log
@Update to bmake-20050901 which includes a fix for PR/31077
Also use the distributed bmake.cat1 if one is not generated for
this platform.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2005/06/16 06:57:45 jlam Exp $
d4 1
a4 1
DISTNAME=       bmake-20050901
d6 5
a10 1
MASTER_SITES=   ftp://ftp.NetBSD.org/pub/NetBSD/misc/sjg/
a15 2
DEPENDS+=	mk-files>=20030714:../../devel/mk-files

d17 1
d23 4
a26 1
INSTALLATION_DIRS=	bin man/cat1 man/man1
d40 8
a47 2
	${INSTALL_MAN} ${BMAKE_CAT1} ${PREFIX}/man/cat1/bmake.0
	${INSTALL_MAN} ${WRKDIR}/${OPSYS}/bmake.1 ${PREFIX}/man/man1
@


1.22
log
@Create directories before installing files into them.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2005/05/31 20:52:53 sjg Exp $
d4 1
a4 1
DISTNAME=       bmake-20050530
d27 5
d34 1
a34 1
	${INSTALL_MAN} ${WRKDIR}/${OPSYS}/bmake.cat1 ${PREFIX}/man/cat1/bmake.0
d38 10
@


1.21
log
@Update bmake to sync with latest make.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2004/05/11 18:28:32 sjg Exp $
d20 2
@


1.20
log
@Update bmake to 20040511 which syncs with -current (and 2.0).
We now use bmake/boot-strap for simpler building.
New location for distfile.

Changes to bmake include:
o allow quoted strings on lhs of conditionals
o issue warning when extra .else is seen
o print line numer when errors encountered during parsing from
  string.
o posix fixes
  - remove '-e' from compat mode
  - add support for '+' command-line prefix.
o fix for handling '--' on command-line.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2004/02/21 00:15:44 sjg Exp $
d4 1
a4 1
DISTNAME=       bmake-20040511
@


1.19
log
@Update bmake and mk-files.
bmake is sync'd with -current make as of 2004-02-20
Fixes include:
o fix for old :M parsing bug.
o re-jigged unit-tests
o search upwards for *.mk
o fix for double free of var substitution buffers
o use of getopt replaced with custom code, since the usage
  (re-scanning) isn't posix compatible.
* arch.c: don't include ranlib.h on ELF systems

mk-files adds dpadd.mk (cool magic driven by DPADD)
and a re-worked warnings.mk (very cool).
Also fixes:
* own.mk: don't use NetBSD's _SRC_TOP_ it can
  cause confusion.  Also don't take just 'mk' as a
  srctop indicator.
* Generic.sys.mk: need to use ${.PARSEDIR} with exists().
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2004/01/20 12:13:27 agc Exp $
d4 1
a4 1
DISTNAME=       bmake-20040220
d6 1
a6 1
MASTER_SITES=   ftp://ftp.NetBSD.org/pub/incoming/sjg/
d14 1
a14 1
ONLY_FOR_PLATFORM=	NetBSD-*-*
a15 1
WRKSRC=		${WRKDIR}/bmake
d17 1
a17 1
GNU_CONFIGURE=	yes
d20 2
d23 1
a23 1
	cd ${WRKSRC} && MAKESYSPATH=${makesyspath} make -f makefile.boot bootstrap
d26 3
a28 3
	${INSTALL_PROGRAM} ${WRKSRC}/bmake ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/bmake.cat1 ${PREFIX}/man/cat1/bmake.0
	${INSTALL_MAN} ${WRKSRC}/bmake.1 ${PREFIX}/man/man1
@


1.18
log
@Move WRKSRC definition away from the first paragraph in a Makefile.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2004/01/19 00:57:10 sjg Exp $
d4 1
a4 1
DISTNAME=       bmake-20040118
@


1.17
log
@Update bmake to 20040118.
Changes include:
variable expansion in sysV style replacements
fix for cond.c to handle compound expressions better
fix for ternary modifier
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2003/12/22 23:26:43 sjg Exp $
a4 1
WRKSRC=		${WRKDIR}/bmake
d16 1
@


1.16
log
@Update bmake to 20031222 - matches NetBSD make as of that date.
Changes include:
* Make portable snprintf safer - output to /dev/null first to
check space needed.

o -dg3 to show input graph when things go wrong.
o explicitly look for makefiles in objdir if not found in curdir so
  that errors in .depend etc will be reported accurarely.
o avoid use of -e in shell scripts in jobs mode, use '|| exit $?'
  instead as it more accurately reflects the expected behavior and
  is more consistently implemented.
o avoid use of asprintf.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2003/09/28 21:08:59 sjg Exp $
d4 1
a4 1
DISTNAME=       bmake-20031222
@


1.15
log
@Update bmake to 20030928 - now includes
-de to get more verbose error messages
:[] modifier to pick words from variable etc.

Update mk-files to 20030928
added some extra sys.mk's from bootstrap-pkgsrc
changed own.mk to default to root:${ROOT_GROUP} ownership.
sys.mk can set ROOT_GROUP if wheel is not right.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2003/09/16 17:14:08 grant Exp $
d4 1
a4 1
DISTNAME=       bmake-20030928
@


1.14
log
@mark this ONLY_FOR_PLATFORM NetBSD for now, as it destroys the
mk files installed from bootstrap-pkgsrc. thanks, salo.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2003/08/03 05:50:04 sjg Exp $
d4 1
a4 1
DISTNAME=       bmake-20030731
@


1.13
log
@Update bmake and mk-files.
Changes to mk-files:
	* install-mk: add ability to use cp -f when updating
	destination .mk files.  Also now possible to play games with
	FORCE_SYS_MK=ln etc on *BSD machines to link /usr/share/mk/sys.mk
	into dest - not recommended unless you seriously want to.
	* own.mk (IMPFLAGS): add support for COPTS.${IMPSRC:T} etc
	for semi-compatability with NetBSD.
Changes to bmake:
	* boot-strap: Allow setting configure args on command line.
	* configure.in: add --with-defshell to allow sh or ksh
	to be selected as default shell.
	* Merge with NetBSD make 20030731
	Pick up .SHELL spec for ksh and associate man page changes.
	Also compat mode now uses the same shell specs.
	* var.c (Var_Parse): ensure delim is initialized.
	* unit-tests/Makefile.in: use single quotes to avoid problems from
	some shells.
	* makefile.boot.in:
	Run the unit-tests as part of the bootstrap procedure.
	* unit-tests/Makefile.in: always force complaints from
	${TEST_MAKE} to be from 'make'.
	* configure.in: add check for 'diff -u'
	also fix some old autoconf'isms
	* Makefile.in (BMAKE_VERSION): bump version to 20030728.
	if using GCC add -Wno-cast-qual to CFLAGS for var.o
	* Merge with NetBSD make 20030728
	Pick up fix for :ts parsing error in some cases.
	Pick unit-tests.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2003/07/23 18:34:44 sjg Exp $
d14 2
@


1.12
log
@There was a bug in make 20030714 such that the :ts modifier didn't work.
Update to 20030723, which also has some minor portability improvements
in the boot-strap and install-mk scripts.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2003/07/20 23:25:20 sjg Exp $
d4 1
a4 1
DISTNAME=       bmake-20030723
@


1.11
log
@Update to latest bmake which now uses a date based version.
Same for mk-files.  In the case of bmake the version closely
corresponds to the date of the latest sync with usr.bin/make.

Changes to bmake since 3.1.18 include:

	Pick up fixes for const-correctness, now passes WARNS=3 on
	NetBSD.
	Pick up :ts modifier, allows controlling the separator used
	between words in variable expansion.

	* FILES: include boot-strap and os.sh

	* Makefile.in: only set WARNS if we are NetBSD, the effect on
	FreeBSD is known to be bad.

	* makefile.boot.in (bootstrap): make this the default target.

	* Makefile.in: bump version to 3.1.19

	* machine.sh: avoid A-Z with tr as it is bound to lose.

	Pick up fix for PR/19781 - unhelpful error msg on unclosed ${var:foo
	Plus some doc fixes.


Changes to mk-files since 1.3.2:

	Don't inlcue -pipe in CC for SunOS.

	Make it easier to do non-root installs by overriding *_INSTALL_OWN.
	Use STRIP_FLAG rather than STRIP for -s
	Avoid use of A-Z with tr.
	Avoid searching above /a/b/ when looking for
	top-of-tree Linux at least hangs if you try to examine an automount
	mount point.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2003/07/17 21:29:41 grant Exp $
d4 1
a4 1
DISTNAME=       bmake-20030714
@


1.10
log
@s/netbsd.org/NetBSD.org/
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2003/04/30 07:58:45 sjg Exp $
d4 1
a4 1
DISTNAME=       bmake-3.1.18
d13 1
a13 1
DEPENDS+=	mk-files>=1.3.2:../../devel/mk-files
@


1.9
log
@Update to bmake-3.1.18
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2003/03/29 12:40:30 jmmv Exp $
d7 1
a7 1
MASTER_SITES=   ftp://ftp.netbsd.org/pub/incoming/sjg/
d9 1
a9 1
MAINTAINER=	sjg@@netbsd.org
@


1.8
log
@Place WRKSRC where it belongs, to make pkglint happy; ok'ed by wiz.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2002/12/01 06:27:39 sjg Exp $
d4 1
a4 1
DISTNAME=       bmake-3.1.15
@


1.7
log
@Need to update bmake - pick up fix for bug introduced in 3.1.14.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2002/11/27 07:14:59 sjg Exp $
d5 1
a13 2

WRKSRC=		${WRKDIR}/bmake
@


1.6
log
@Update to bmake-3.1.14 which apart from adding support for ${.PATH}
fixes a bug in location of sources specified with relative paths
(via .depend).

This version also has some bootstrapping improvments.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2002/09/20 07:00:52 sjg Exp $
d4 1
a4 1
DISTNAME=       bmake-3.1.14
@


1.5
log
@Update bmake and mk-files to latest versions.
bmake is now sync'd with NetBSD-1.6
mk-files have been overhauled to handle ELF on BSD systems.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2002/02/06 16:58:12 jlam Exp $
d4 1
a4 1
DISTNAME=       bmake-3.1.13
@


1.4
log
@Changes instances where BSD_INSTALL_* were used by targets in the Makefile
into the equivalent INSTALL_*.  This is fallout from the change in
revision 1.915 that removed ${MAKE_ENV} from the environment for a
recursive make.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2001/10/18 21:41:06 sjg Exp $
d4 1
a4 1
DISTNAME=       bmake-3.1.12
d12 1
a12 1
DEPENDS+=	mk-files>=1.2.5:../../devel/mk-files
@


1.3
log
@Update to bmake-3.1.12
Changes of note:
        synched with NetBSD make as of 2001/10/16
        fix for bug in compat mode .END processing
        fix for bug in cleanup of jobs when using -jN
        addition of .USEBEFORE
        simpler bootstrap - compiles again on recent linux (Red Hat)
The Makefile here now deals with the fact that we may not have installed
a sys.mk in /usr/pkg/share/mk on BSD systems.

Reviewed: agc
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2001/06/17 22:02:20 agc Exp $
d24 3
a26 3
	${BSD_INSTALL_PROGRAM} ${WRKSRC}/bmake ${PREFIX}/bin
	${BSD_INSTALL_MAN} ${WRKSRC}/bmake.cat1 ${PREFIX}/man/cat1/bmake.0
	${BSD_INSTALL_MAN} ${WRKSRC}/bmake.1 ${PREFIX}/man/man1
@


1.2
log
@Update package to version 3.1.10, sync-ing with NetBSD-current in one fell
swoop.

Changes since previous version:

Tue Jun 12 16:48:57 2001  Simon J. Gerraty  <sjg@@zen.quick.com.au>

        * var.c (Var_Set): Add 4th (flags) arg so VarLoopExpand can tell
        us not to export the iterator variable when using VAR_CMD context.

Sun Jun 10 21:55:21 2001  Simon J. Gerraty  <sjg@@zen.quick.com.au>

        * job.c (Job_CatchChildren): don't call Job_CatchOutput() here,
        its the wrong "fix".

Sat Jun  9 00:11:24 2001  Simon J. Gerraty  <sjg@@zen.quick.com.au>

        * Redesigned export of VAR_CMD's via MAKEFLAGS.
        We now simply append the variable names to .MAKEOVERRIDES, and
        handle duplicate suppression and quoting in ExportMAKEFLAGS using:
        ${.MAKEOVERRIDES:O:u:@@v@@$v=${$v:Q}@@}
        Apart from fixing quoting bugs in previous version, this allows us
        to export vars to the environment by simply doing:
        .MAKEOVERRIDES+= PATH
        Merged again with NetBSD make, but the above is the only change.

        * configure.in: added
        --disable-pwd-override          disable $PWD overriding getcwd()
        --disable-check-make-chdir      disable make trying to guess
                when it should automatically cd ${.CURDIR}

        * Merge with NetBSD make, changes include:
        parse.c (ParseDoDependency): Spot that the syntax error is
        caused by an unresolved cvs/rcs conflict and say so.
        var.c: most of Var* functions now take a ctxt as 1st arg.
        now does variable substituion on rhs of sysv style modifiers.

        * var.c (Var_Set): exporting of command line variables (VAR_CMD)
        is now done here.  We append the name='value' to .MAKEOVERRIDES
        rather than directly into MAKEFLAGS as this allows a Makefile to
        use .MAKEOVERRIDES= to disable this behaviour.  GNU make uses a
        very similar mechanism.  Note that in adding name='value' to
        .MAKEOVERRIDES we do the moral equivalent of:
        .MAKEOVERRIDES:= ${.MAKEOVERRIDES:Nname=*} name='val'
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1.1.1 2001/05/25 12:41:14 agc Exp $
d4 1
a4 1
DISTNAME=       bmake-3.1.10
d9 2
a10 2
HOMEPAGE=	http://www.quick.com.au/help/sjg/bmake.html
COMMENT=	NetBSD version of 'make' utility
d12 1
a12 1
DEPENDS+=	mk-files-1.2.2:../../devel/mk-files
d16 1
d18 1
a18 2
CONFIGURE_ARGS+=	  						\
	--with-default-sys-path=${PREFIX}/share/mk:/usr/share/mk:/usr/local/share/mk:/opt/share/mk
d21 1
a21 1
	cd ${WRKSRC}; make -f makefile.boot bootstrap; ./bmake -f Makefile; ./bmake -f Makefile bmake.1
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# $NetBSD$
d4 1
a4 1
DISTNAME=       bmake-3.1.6
@


1.1.1.1
log
@Initial import of bmake-3.1.6 into the packages collection.

This is NetBSD's make(1) utility, with a configure script and
supporting replacements for various NetBSD library routines, ported to
other Operating Systems by Simon Gerraty.  Solaris, SunOS, HP-UX,
Linux and AIX are amongst the operating systems supported.
@
text
@@
