This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] Pre-parse XML target descriptions
On Fri, Oct 05, 2007 at 10:52:39AM -0700, Jim Blandy wrote:
> I think you're imagining something more complicated than I had in
> mind. This is all I meant:
>
> gdb: check-xml-regs
>
> check-xml-regs: foo.check-xml-regs-stamp bar.check-xml-regs-stamp
>
> %.check-xml-regs-stamp: %.xml %.c
> stamp=$$(sed -ne 's|/. stamp: \(.*\) ./|\1|p' < $*.c); \
> if [ "$$(md5sum $*.xml)" = "$$stamp" ]; then \
> touch $@; \
> else \
> echo '.c file must be regenerated from .xml: $*.c' >&2; \
> exit 1; \
> fi
I think you're not checking what you think you are: there's
dependencies between the XML files so checksumming them does not much
help unless you have xsltproc or expat to expand <xi:include/>.
--
Daniel Jacobowitz
CodeSourcery