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 - 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

Add a New Comment (Rich 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:  


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:

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

$(warning HELLO)

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

t1: t11 t12

t11 t12:

t2: t3

t3: t2
--- Makefile --

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



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

Attach Files:

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 add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.




No changes have been made to this item

Back to the top

Powered by Savane 3.5