How to reset aggregated output of a makefile?

I'm working on the project. The make file is very complex because it includes several other make files, which also include other make files. I would like to dump all included makefiles into a single file. How can i do this? Is there something similar to a C preprocessor dump, such as '-E'?

+4
source share
2 answers
make -p # GNU Make nmake -p # Microsoft Make make -h # help make -d # debug make -n # just print 

Start with a simple example and work from there. Starting with a big Makefile when you don't know anything about Make is not a good idea.

+1
source

You can try make --dry-run :

 `-n' `--just-print' `--dry-run' `--recon' "No-op". The activity is to print what commands would be used to make the targets up to date, but not actually execute them. 
0
source

Source: https://habr.com/ru/post/1401441/


All Articles