[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug #25751] Add option to output dependency info as xml
From: |
Tim Murphy |
Subject: |
Re: [bug #25751] Add option to output dependency info as xml |
Date: |
Tue, 3 Mar 2009 10:55:04 +0000 |
Hi,
This is very interesting. I have used emake with Electric Accelerator
and it's a pretty amazing system but I was just wondering why you need
to generate XML since emake can read gnu makefiles pretty accurately
already?
I obviously don't understand your posting properly so please don't
think I mean any offence.
One thought that I've had in the past was about how one could generate
a graph of make database and allow people to look at all the
dependencies and rules. One step from there would be a visual editor
for a make database so that one could, in effect, visually edit
makefiles. This is a kind of step on the way in that it puts the
dependencies into a format that a gui could parse fairly easily.
Regards,
Tim
2009/3/2 anonymous <address@hidden>:
>
> 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 > 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/
>
>
>
> _______________________________________________
> Bug-make mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-make
>
--
You could help some brave and decent people to have access to
uncensored news by making a donation at:
http://www.thezimbabwean.co.uk/