bugmake - Bugs: bug #25751, Add option to output dependency...

 
 

bug #25751: Add option to output dependency info as xml

Submitted by:  None
Submitted on:  Mon 02 Mar 2009 07:15:19 PM UTC  
 
Severity: 3 - NormalItem Group: Enhancement
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Component Version: 3.81Operating System: POSIX-Based
Fixed Release: NoneTriage Status: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 02 Mar 2009 07:15:19 PM UTC, original submission:

Hi,

I have added some code to output the dependency graph in XML.
The output is fed to a commercial build framework (Electric Commander) to generate appropriate build steps. This is not to be used on the file level, but rather with the targets that can be built on a host farm with (potentially) different architectures.

Please let me know if this may be of any interest to a larger audience. Here is a trivial example:
<pre>

--- Makefile --
RULE = @echo making $@ from $^

$(warning HELLO)

all: t1 #t2 t3
$(RULE) \
echo and then some > bla

t1: t11 t12
$(RULE)

t11 t12:
$(RULE)

t2: t3
$(RULE)

t3: t2
$(RULE)
--- Makefile --

--- Make Output ---
<?xml version="1.0" encoding="UTF-8"?>
<root>
<Goal name="/tmp/Makefile"/>
<Variable name="MAKEFILE_LIST"> /tmp/Makefile</Variable>
<Goal name="all">
<Prerequisite>t1</Prerequisite>
<Command> @echo making all from t1 \
echo and then some &gt; bla</Command>
</Goal>
<Goal name="t1">
<Prerequisite>t11</Prerequisite>
<Prerequisite>t12</Prerequisite>
<Command> @echo making t1 from t11 t12</Command>
</Goal>
<Goal name="t11">
<Command> @echo making t11 from </Command>
</Goal>
<Goal name="t12">
<Command> @echo making t12 from </Command>
</Goal>
<Warning>/tmp/Makefile:3: HELLO</Warning>
</root>
</pre>
--- Make Output ---

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

No Changes Have Been Made to This Item

Back to the top


Powered by Savane 3.1-cleanup