On 07/22/2015 05:14 PM, Kenneth Adam Miller wrote:
... reading the actual makefile itself?
Did you know that you can use remake -x to get a trace of what make is
trying to build? You can also do a dry run to see what all make would
do with make -n.
Thanks for the answer, but dry-run won't print the prerequisites.
My final aim is to get a JSON|XML description of the Makefile to convert
it into for another worflow engine. Something like:
(...)
<rule>
<target>file.o</target>
<prerequisite>file.c</prerequisite>
<prerequisite>file.h</prerequisite>
<recipe>gcc -o file.o -c file.c</recipe>
</rule>
(...)
P.
_______________________________________________
Help-make mailing list
Help-make@gnu.org
https://lists.gnu.org/mailman/listinfo/help-make