From 091bcc764cf5e1ceed64578f8f0bbbcbc9438685 Mon Sep 17 00:00:00 2001 From: James Shaw Date: Thu, 19 Jul 2007 23:03:13 +0000 Subject: Add XML to C transformation to 'make test' target svn path=/trunk/dom/; revision=3443 --- test/Makefile | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'test/Makefile') diff --git a/test/Makefile b/test/Makefile index 56e0e3f..95fe381 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,4 +1,4 @@ -# Makefile for Hubbub testcases +# Makefile for DOM testcases # # Toolchain is exported by top-level makefile # @@ -28,8 +28,14 @@ RELEASE = # Debug output DEBUG = +# Transformer input +XMLFILES = $(wildcard xml/*.xml) + +# Transformer output +CFILES = $(XMLFILES:.xml=.c) + # Objects -OBJS = binding +OBJS = $(CFILES:.c=) .PHONY: clean debug export release setup test @@ -52,6 +58,8 @@ export: test: $(OBJS) @${PERL} testrunner.pl ${EXEEXT} + +transform: $(CFILES) # Pattern rules %: %.c @@ -59,3 +67,6 @@ test: $(OBJS) @${CC} -c -g ${CFLAGS} -o $@.o $< @${LD} -g -o $@ $@.o ${LDFLAGS} -ldom-libxml-debug -ldom-debug @${RM} ${RMFLAGS} $@.o + +%.c: %.xml + ${XSLT} -o $@ transform/test-to-c.xsl $< -- cgit v1.2.3