pkgsrc-WIP-discuss archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bmake question
> 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
_______________________________________________
pkgsrc-wip-discuss mailing list
pkgsrc-wip-discuss%lists.sourceforge.net@localhost
https://lists.sourceforge.net/lists/listinfo/pkgsrc-wip-discuss
Home |
Main Index |
Thread Index |
Old Index