yes... that's make sense... thank you very much.

is there any other way to handle user input? I came up with this, but I
think it is pretty lame. pretty sure there a smarter way to this...

again... thanks

----- Original Message ----- 
From: "Paul D. Smith" <[EMAIL PROTECTED]>
To: "Gustavo A. Baratto" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, November 09, 2003 4:55 PM
Subject: Re: user input


> %% "Gustavo A. Baratto" <[EMAIL PROTECTED]> writes:
>
>   gab> CREATE = ${shell echo 'read input; echo $$input' > input.sh}
>   gab> CHMOD = ${shell chmod 700 input.sh}
>   gab> $(warning  enter value 1:)
>   gab> VALUE1 = ${shell ./input.sh}
>   gab> $(warning  enter value 2:)
>   gab> VALUE2 = ${shell ./input.sh}
>
>   gab> as you can see make prints all the warnings before giving me the
>   gab> prompts... I have no more ideas on how to get out of this. can
>   gab> someone help?
>
> You need to use simple variable assignments (:=) instead of recursive
> assignments (=), so that the right-hand side of the assignment is
> evaluated immediately when the variable is declared.
>
> Otherwise, it won't be evaluated until the variable is used (and it will
> be evaluated _every time_ the variable is used), which is definitely not
> what you want.
>
> -- 
> --------------------------------------------------------------------------
-----
>  Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
>  http://www.gnu.org                      http://make.paulandlesley.org
>  "Please remain calm...I may be mad, but I am a professional." --Mad
Scientist
>



_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to