Today I'm learning
make command, and I find it seems can execute any
bash command by reading
Makefile on current directory.
However, I encountered a problem. That when using variables, it seems that system will only read the first character of the variable.
Below is my file and running result:
# FILE CONTENT Z="zen_on_the_moon" now=$(date) fun: touch $Z echo $now echo "file created on" $now >> $Z # RUNNING IT =>make fun touch "zen_on_the_moon" echo ow ow echo "file created on" ow >> "zen_on_the_moon"
How should I use the variable
now in the