On 2010-12-08 10:29Z, Warlich, Christof wrote:
> 
> all:
>         @if [ "${USER}" == "" ]; then \
>             export message="no user defined"; \
>         else \
>             export message="user is ${USER}"; \
>         fi
>         @echo ${message} $${message} $message $$message eval $$message
> 
> My problem ist that I cannot find a way to pass data being determined in one
> reciepe line to the next reciepe line. Executing the example given above:

"if ... fi" is passed to a subshell; then "echo ..." is passed to a
different subshell:
  http://www.gnu.org/software/make/manual/html_node/Execution.html#Execution
I'd change the makefile:

-       fi
-       @echo ${message}, $${message}, $message, $$message, eval $$message
+       fi; \
+       echo ${message}, $${message}, $message, $$message, eval $$message

_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to