From owner-cvs-src@FreeBSD.ORG Wed May 11 06:31:11 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E9AD716A4CE; Wed, 11 May 2005 06:31:11 +0000 (GMT) Received: from smtp-1.dlr.de (smtp-1.dlr.de [195.37.61.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id B550943D4C; Wed, 11 May 2005 06:31:10 +0000 (GMT) (envelope-from Hartmut.Brandt@dlr.de) Received: from beagle.kn.op.dlr.de ([129.247.173.6]) by smtp-1.dlr.de over TLS secured channel with Microsoft SMTPSVC(6.0.3790.211); Wed, 11 May 2005 08:31:05 +0200 Date: Wed, 11 May 2005 08:31:08 +0200 (CEST) From: Harti Brandt X-X-Sender: brandt_h@beagle.kn.op.dlr.de To: Alfred Perlstein In-Reply-To: <20050510210440.GT51193@elvis.mu.org> Message-ID: <20050511082609.B2955@beagle.kn.op.dlr.de> References: <200505100806.j4A86Edq046232@repoman.freebsd.org> <20050510210440.GT51193@elvis.mu.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-OriginalArrivalTime: 11 May 2005 06:31:05.0698 (UTC) FILETIME=[027B5C20:01C555F3] cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/make main.c var.c var.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Harti Brandt List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 May 2005 06:31:12 -0000 On Tue, 10 May 2005, Alfred Perlstein wrote: AP>What about a flag/variable that if set enables "full POSIX mode"? Make is expected to be POSIX if the first non-empty line in the Makefile looks like: .POSIX: , the Makefile is syntactically correct (with regard to the description in Posix, not make(1)) and if it doesn't use any \.[A-Z]+ target names besides those in the standard. So, except for the command line parsing, it is possible to get POSIX behaviour (it doesn't work yet though, but we're working on it). With regard to a flag/variable I would like, at some point, to re-start the discussion about making a Posix option available for all Posix-tools in some common way (ls, ...). Make would then be just one of them. harti AP> AP>* Hartmut Brandt [050510 01:06] wrote: AP>> harti 2005-05-10 08:06:13 UTC AP>> AP>> FreeBSD src repository AP>> AP>> Modified files: AP>> usr.bin/make main.c var.c var.h AP>> Log: AP>> Make make a little bit more POSIXish with regard to option parsing: AP>> take everything after -- as either a macro assignment or a target. AP>> Note that make still reorders arguments before --: anything starting AP>> with a dash is considered an option, anything which contains an equal AP>> sign is considered a macro assignment and everything else a target. AP>> This still is not POSIX with regard to the options, but it will probably AP>> not change because it has been make's behaviour for ages. AP>> Add a new function Var_Match() that correctly skips a macro call by just AP>> doing the same as Var_Subst() but without producing output. This will help AP>> making the parser more robust. AP>> AP>> Patches: 7.190,7.191 AP>> Submitted by: Max Okumoto AP>> AP>> Revision Changes Path AP>> 1.138 +18 -4 src/usr.bin/make/main.c AP>> 1.147 +45 -8 src/usr.bin/make/var.c AP>> 1.19 +1 -0 src/usr.bin/make/var.h AP> AP>