Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Feb 2002 08:10:02 -0800 (PST)
From:      Jens Schweikhardt <schweikh@schweikhardt.net>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/11114: make(1) does not work as documented with .POSIX: target
Message-ID:  <200202231610.g1NGA2Z36602@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/11114; it has been noted by GNATS.

From: Jens Schweikhardt <schweikh@schweikhardt.net>
To: cjclark@alum.mit.edu
Cc: bug-followup@freebsd.org
Subject: Re: bin/11114: make(1) does not work as documented with .POSIX: target
Date: Sat, 23 Feb 2002 15:29:56 +0100

 On Sat, Feb 23, 2002 at 12:04:44AM -0800, Crist J. Clark wrote:
 # On Fri, Feb 22, 2002 at 08:28:50PM +0100, Jens Schweikhardt wrote:
 # > Crist,
 # > 
 # > On Wed, Feb 20, 2002 at 08:23:16AM -0800, Crist J. Clark wrote:
 # > # The issue here is that the .POSIX target will not have its effect
 # > # until the makefile containing it is read. /usr/share/mk/sys.mk is the
 # > # first file read. make(1) doesn't know about anything that you have set
 # > # in your makefile yet.
 # > # 
 # > # I have no idea if that is a bug or feature. What do the standards say
 # > # (if anything)?
 # > 
 # > The POSIX 2001 Standard defines the behavior of make and mandates that
 # > the macros have the following values, when .POSIX: is specified as the
 # > first noncomment line and without prerequisites and commands:
 # 
 # Right, but what is the exact wording?
 
 ".POSIX   The application shall ensure that this special target is specified
           without prerequisites or commands. If it appears as the first
           non-comment line in the makefile, make shall process the makefile
           as specified by this section; otherwise, the behavior of make is
           unspecified."
 
 Later on it mentions the list of variables and their values.
 
 # All of this does work when the
 # ".POSIX" target is set in sys.mk. In exactly which makefile is the
 # ".POSIX" target supposed to work?
 
 The application programmer's. See the example in the PR.
 
 # If it is in the local one, this is a
 # real problem. Goes against the whole way makefiles are processed.
 
 I'm not sure what you mean with "local makefile".
 
 Regards,
 
 	Jens
 -- 
 Jens Schweikhardt http://www.schweikhardt.net/
 SIGSIG -- signature too long (core dumped)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202231610.g1NGA2Z36602>