bug-make
[Top][All Lists]
Advanced

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

[bug #25751] Add option to output dependency info as xml


From: anonymous
Subject: [bug #25751] Add option to output dependency info as xml
Date: Mon, 02 Mar 2009 19:15:22 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 (.NET CLR 3.5.30729)

URL:
  <http://savannah.gnu.org/bugs/?25751>

                 Summary: Add option to output dependency info as xml
                 Project: make
            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
         Discussion Lock: Any
       Component Version: 3.81
        Operating System: POSIX-Based
           Fixed Release: None

    _______________________________________________________

Details:

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




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?25751>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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