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

 
 

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

Submitter:  None
Submitted:  Mon 02 Mar 2009 07:15:19 PM UTC
   
 
Severity:  3 - Normal Item Group:  Enhancement
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Component Version:  3.81 Operating System:  POSIX-Based
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

No changes have been made to this item

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code