My Makefile contains something like
BASE_VAR=$(cat path/to/value.txt)DERIVED_VAR=$(if $(BASE_VAR),foo,bar)
This does not produce the results I expected. make --debug=a
produces detailed trace but path/to/value.txt
doesn't appear anywhere in it. How do I debug this kind of variable assignment in a makefile?