In my Makefile, I would like to assign a value to a variable when a target is executed:
var=`find dir_name -name "file_name"`
How do I do this? It didn't work when I just put the assignment in the target.
In my Makefile, I would like to assign a value to a variable when a target is executed:
var=`find dir_name -name "file_name"`
How do I do this? It didn't work when I just put the assignment in the target.