Re: bmake question
Aleksey Cheusov <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.pkgsrc.wip.general |
|---|---|
| Message-ID | <[email protected]> |
> I'm getting an error about a variable being recursive. Does this mean
> I can't massage a variable and assign the result to itself??
To some extent variables in bmake (and other makes too)
work like expressions in lazy programming languages (Haskell, Clean,
Lazy Lisp etc.). That is they "evaluated" only in special cases:
- in rules (${target} : ${dependeny}) during scaning Makefiles
- on the left side of =, != and +=
- on the right side of += and :=
- in conditions in .if operator
- ...
So, yes, you cannot right a=${a}.
Maybe := will satisfy your needs.
--
Best regards, Aleksey Cheusov.
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo