2

Some makefiles are too large, define lots of macros. It's hard to understand. Is there any tool that can expand macros in makefile and output the new makefile? (Just as the -E option of gcc, which expands the macros in c source file)

2
  • 1
    If a make file is too large, won't expanding the macros result in another make file which is too too large ? Feb 29, 2012 at 9:33
  • 2
    make -n some-target ? It may not be as full-featured as you are looking for, but I use the -n flag all of the time to see what the macroexpansion is going to do, before I commit to running the make target. Mar 6, 2012 at 4:58

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.