Re: How do I set a runtime variable in debian/rules
Oliver Elphick <olly@lfix.co.uk> wrote:
> So, is there any way to set a variable in a makefile to `pwd` but only
> have it evaluated once?
If you don't mind a gnu-ism, use := instead of =
If you want maximum portability, recursively invoke make (using a
phony target the first time around) setting the variable in
the secondary make invocation (and, of course, with a target that
actually does someting).
--
Raul
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: