I would like to store all paths to headers in separate file. I’m going to generate file with paths dynamically, to avoid re-creating Makefile whenever paths change.
Is that possible?
I would like to store all paths to headers in separate file. I’m going
Share
Yes, you can generate the file, let’s call it
paths.inc, so it looks like, for example:and then include the file in your main
Makefileand use the variable defined in it:
${INCLUDEPATH}