From owner-cvs-src@FreeBSD.ORG Tue May 10 08:06:15 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 040A316A4F0; Tue, 10 May 2005 08:06:15 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E4D0C43D58; Tue, 10 May 2005 08:06:14 +0000 (GMT) (envelope-from harti@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j4A86EtR046233; Tue, 10 May 2005 08:06:14 GMT (envelope-from harti@repoman.freebsd.org) Received: (from harti@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j4A86Edq046232; Tue, 10 May 2005 08:06:14 GMT (envelope-from harti) Message-Id: <200505100806.j4A86Edq046232@repoman.freebsd.org> From: Hartmut Brandt Date: Tue, 10 May 2005 08:06:13 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: 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 List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 May 2005 08:06:15 -0000 harti 2005-05-10 08:06:13 UTC FreeBSD src repository Modified files: usr.bin/make main.c var.c var.h Log: Make make a little bit more POSIXish with regard to option parsing: take everything after -- as either a macro assignment or a target. Note that make still reorders arguments before --: anything starting with a dash is considered an option, anything which contains an equal sign is considered a macro assignment and everything else a target. This still is not POSIX with regard to the options, but it will probably not change because it has been make's behaviour for ages. Add a new function Var_Match() that correctly skips a macro call by just doing the same as Var_Subst() but without producing output. This will help making the parser more robust. Patches: 7.190,7.191 Submitted by: Max Okumoto Revision Changes Path 1.138 +18 -4 src/usr.bin/make/main.c 1.147 +45 -8 src/usr.bin/make/var.c 1.19 +1 -0 src/usr.bin/make/var.h