Quantcast
Channel: User spraff - Stack Overflow
Viewing all articles
Browse latest Browse all 66

How to debug GNU make's variable assignment

$
0
0

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?


Viewing all articles
Browse latest Browse all 66

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>