GNU Makefile “preprocessor”?
问题 Is there an option to output the "preprocessed" makefile, something equivalent to the GCC's -E option? I have a project comprised of an hierarchy of dozens of modules, each with its makefile. The build is invoked from a master makefile. That master makefile contains includes, variable definitions, command line option dependent variables, etc. So, essentially, I am looking for the processed makefile, including all substitutions. 回答1: Not that I'm aware of. The closest thing you can get to this