help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: source code: src to find (target/prerequisites/recipes)


From: Pierre Lindenbaum
Subject: Re: source code: src to find (target/prerequisites/recipes)
Date: Wed, 22 Jul 2015 17:28:48 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]