logological / gpp

GPP, a generic preprocessor
https://logological.org/gpp
GNU Lesser General Public License v3.0
192 stars 33 forks source link

List of all includes (dependencies) #24

Open thundertaker opened 6 years ago

thundertaker commented 6 years ago

Hello, is there is a way to generate list of files GPP will include? I would like to generate dependencies list for Make, as described here:

http://www.evanjones.ca/makefile-dependencies.html

duncanmac99 commented 5 years ago

If you do add arguments to enable such a function, you'll have to use different ones from the C pre-processor, as the '-M' argument is already in use by GPP to do something else.

Perhaps a long-form argument, like '--makefile-spec', could be used; one could also add versions like '--makefile-spec-file' or '--makefile-spec-nosys'.