[Top][All Lists]

[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: Gecko/2009011913 Firefox/3.0.6 (.NET CLR 3.5.30729)


                 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




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


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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