Transcription of CHAPTER 12 Debugging Makefiles - O'Reilly Media
{{id}} {{{paragraph}}}
This is the Title of the Book, eMatter EditionCopyright 2005 O Reilly & Associates, Inc. All rights 12 CHAPTER 12 Debugging MakefilesDebuggingmakefiles is somewhat of a black art. Unfortunately, there is no suchthing as amakefiledebugger to examine how a particular rule is being evaluated or avariable expanded. Instead, most Debugging is performed with simple print state-ments and by inspection of themakefile. GNUmakeprovides some help with variousbuilt-in functions and command -line of the best ways to debug amakefileis to add Debugging hooks and use defen-sive programming techniques that you can fall back on when things go awry.
venience, GNU make will also echo commands marked with the silent modifier (@). The option is supposed to suppress all command execution. While this may be true in one sense, practically speaking, you must take care. While make will not execute command scripts, it will evaluate shellfunction calls that occur within an immedi-ate context. For ...
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}