c - Backtrace for GNU make -
is there way gnu make print "backtrace" of targets led command being executed when fails? regularly deal heavily obfuscated makefiles while resolving portability issues building software on new system, , seems should extremely simple thing make aid in debugging, can't find way request it. i'd see like:
gcc: error: ... make[2]: error: gcc ... make[2]: error building target bar make[2]: error building dependency bar target foo make[1]: error: make -c subdir make[1]: error building target subdir make[1]: error building dependency subdir target ...
showing entire dependency path how failed command ended getting executed.
is there way this?
make -p
, make -d
provide interesting information, not precisely asking for. see make's man page.
Comments
Post a Comment