c6951a7f40
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'
28 lines
829 B
Makefile
28 lines
829 B
Makefile
# $NetBSD: Makefile,v 1.2 2001/06/17 22:02:20 agc Exp $
|
|
#
|
|
|
|
DISTNAME= bmake-3.1.10
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ftp://ftp.netbsd.org/pub/incoming/sjg/
|
|
|
|
MAINTAINER= sjg@netbsd.org
|
|
HOMEPAGE= http://www.quick.com.au/help/sjg/bmake.html
|
|
COMMENT= NetBSD version of 'make' utility
|
|
|
|
DEPENDS+= mk-files-1.2.2:../../devel/mk-files
|
|
|
|
WRKSRC= ${WRKDIR}/bmake
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= \
|
|
--with-default-sys-path=${PREFIX}/share/mk:/usr/share/mk:/usr/local/share/mk:/opt/share/mk
|
|
|
|
do-build:
|
|
cd ${WRKSRC}; make -f makefile.boot bootstrap; ./bmake -f Makefile; ./bmake -f Makefile bmake.1
|
|
|
|
do-install:
|
|
${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
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|