I want assigned the variable something in shell some value and then echo it.

########
.PHONY: all

all:
        something=$(shell basename abc.txt .txt)
        echo $(something)
        echo $$(something)
################

But the above code doesn't work. Would you please let me know what the
correct way is to assign a shell variable and retrieve it?

$ make
something=abc
echo

echo $(something)
/bin/sh: something: not found



-- 
Regards,
Peng


_______________________________________________
Help-make mailing list
Help-make@gnu.org
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to