Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Sep 2002 10:06:12 -0400 (EDT)
From:      Chuck Robey <chuckr@chuckr.org>
To:        Roman Neuhauser <neuhauser@bellavista.cz>
Cc:        <freebsd-hackers@FreeBSD.ORG>
Subject:   Re: two make questions
Message-ID:  <20020923095217.O332-100000@april.chuckr.org>
In-Reply-To: <20020923133431.GZ30361@freepuppy.bellavista.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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