I have a bash script (like A.sh) which includes a variable like:
ToBeRead=$(sed -n '$=' LogFile)
I was wondering how can I use this variable in a makefile which is called from A.sh like:
make -f Makefile SayHello
Forgive me if this is a dumb noob answer, but couldn't you use an environment variable?
In A.sh:
export VARIABLE=value
In makefile:
# sets VARIABLE if not already set
VARIABLE?=other_value
I could be wrong I'm new to makefiles as well.