cvs commit: src/usr.bin/make

Joerg Sonnenberger joerg at crater.dragonflybsd.org
Tue Nov 30 17:10:51 PST 2004


joerg       2004/11/30 17:10:17 PST

DragonFly src repository

  Modified files:
    usr.bin/make         Makefile main.c make.1 nonints.h var.c 
  Log:
  Makefile: 1.31->1.32
  main.c: 1.89->1.90
  nonints.h: 1.21->1.22
  var.c: 1.46->1.47
  Author: harti
  Log:
  Put variable assignments from the command line into the MAKEFLAGS
  variable as required by POSIX. This causes such variables to be
  pushed into all sub-makes called by the make (except when the MAKEFLAGS
  variable is explicitely changed in the sub-make's environment).
  This makes them also mostly un-overrideable in sub-makes except on the
  sub-make's command line. Therefor specifying 'make CC=icc' will cause
  icc to be used as C compiler in all sub-makes no matter what the Makefiles
  itself try to do to the CC variable.
  
  This patch also corrects the handling of the MFLAGS variable. MFLAGS
  contains all the command line flags but not the command line variable
  assignments. The evaluation of the .MFLAGS or .MAKEFLAGS target now
  changes both MFLAGS and MAKEFLAGS (they used to change MAKEFLAGS only).
  Makefiles can use MFLAGS for their own purposes given that they do not
  except MFLAGS to be undefined at the beginning and that they don't evaluate
  .MFLAGS or .MAKEFLAGS. MFLAGS should be removed for POSIX compliance,
  but it is unfortunately heavily used by the X makefiles.
  
  This has been extensively tested by port builds (thanks to portmgr), new
  worlds and kernels.
  
  PR:             standards/57295 (1st part above)
  Submitted by:   James E. Flemer <jflemer at xxxxxxxxxxxx>
  Approved by:    portmgr
  Obtained from:  NetBSD (1st part above)
  MFC after:      4 weeks
  
  make.1: 1.75->1.76
  Author: harti
  Log:
  Correct the description of the MFLAGS and .MAKEFLAGS variables. Add
  the MFLAGS target. Document that variable assignments from the MAKEFLAGS
  environment variable and the .MAKEFLAGS and .MFLAGS target have the
  same precedence as command line variable assignments.
  
  make.1: 1.76->1.77
  Author: harti
  Log:
  Correct the .Dd date. Pluralize 'assignment' in one place.
  
  Requested by: ru
  
  Revision  Changes    Path
  1.8       +1 -1      src/usr.bin/make/Makefile
  1.22      +39 -31    src/usr.bin/make/main.c
  1.13      +17 -7     src/usr.bin/make/make.1
  1.17      +1 -0      src/usr.bin/make/nonints.h
  1.16      +38 -0     src/usr.bin/make/var.c


http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/Makefile.diff?r1=1.7&r2=1.8&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/main.c.diff?r1=1.21&r2=1.22&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/make.1.diff?r1=1.12&r2=1.13&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/nonints.h.diff?r1=1.16&r2=1.17&f=u
http://www.dragonflybsd.org/cvsweb/src/usr.bin/make/var.c.diff?r1=1.15&r2=1.16&f=u





More information about the Commits mailing list