From owner-freebsd-hackers Mon Sep 23 7: 7:24 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AEE4537B401 for ; Mon, 23 Sep 2002 07:07:22 -0700 (PDT) Received: from april.chuckr.org (april.chuckr.org [66.92.147.143]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE95543E4A for ; Mon, 23 Sep 2002 07:07:21 -0700 (PDT) (envelope-from chuckr@chuckr.org) Received: from april.chuckr.org (localhost [127.0.0.1]) by april.chuckr.org (8.12.6/8.12.5) with ESMTP id g8NE6F5s047723; Mon, 23 Sep 2002 10:06:15 -0400 (EDT) (envelope-from chuckr@chuckr.org) Received: from localhost (chuckr@localhost) by april.chuckr.org (8.12.6/8.12.5/Submit) with ESMTP id g8NE6DLi047720; Mon, 23 Sep 2002 10:06:13 -0400 (EDT) X-Authentication-Warning: april.chuckr.org: chuckr owned process doing -bs Date: Mon, 23 Sep 2002 10:06:12 -0400 (EDT) From: Chuck Robey To: Roman Neuhauser Cc: Subject: Re: two make questions In-Reply-To: <20020923133431.GZ30361@freepuppy.bellavista.cz> Message-ID: <20020923095217.O332-100000@april.chuckr.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 23 Sep 2002, Roman Neuhauser wrote: > Hi, > > I've sent two messages about (p)make to questions@ but have not received > any replies, so I ask here. > > I'm not a C programmer (thus not really familiar with make), and I'm > trying to use it for project management (we write apps in php). I've > stumbled across a few variable related issues where the actual behavior > doesn't exactly map to the available documentation (make(1), and the > pmake paper). See the messages below for complete descriptions. > > Also, since two attempts sent to this list before I subscribed haven't > make it through and I'm not sure about the cause, I'm just posting > links to the original messages in questions@: > > http://marc.theaimsgroup.com/?l=freebsd-questions&m=103250565427752&w=2 > http://marc.theaimsgroup.com/?l=freebsd-questions&m=103251441702280&w=2 You're trying to treat the make variables as program variables, and that doesn't work, once you assign a value to them, that's the value you get. They *do not* work like variables in C or Basic. The rule to follow is never to attempt to modify a value in a variable. If you need that specific action, either use the ".for" type constructs, else use shell variables, which will let you do that. ---------------------------------------------------------------------------- Chuck Robey | Interests include C & Java programming, FreeBSD, chuckr@chuckr.org | electronics, communications, and signal processing. New Year's Resolution: I will not sphroxify gullible people into looking up fictitious words in the dictionary. ---------------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message