diff options
author | James Shaw <jshaw@netsurf-browser.org> | 2007-07-19 23:03:13 +0000 |
---|---|---|
committer | James Shaw <jshaw@netsurf-browser.org> | 2007-07-19 23:03:13 +0000 |
commit | 091bcc764cf5e1ceed64578f8f0bbbcbc9438685 (patch) | |
tree | ac5c38e160965fdd828a2a25d6f2d692e7d91ca0 /test/Makefile | |
parent | 0409f0a8014007c3c0865d4869ee51941f2d8de7 (diff) | |
download | libdom-091bcc764cf5e1ceed64578f8f0bbbcbc9438685.tar.gz libdom-091bcc764cf5e1ceed64578f8f0bbbcbc9438685.tar.bz2 |
Add XML to C transformation to 'make test' target
svn path=/trunk/dom/; revision=3443
Diffstat (limited to 'test/Makefile')
-rw-r--r-- | test/Makefile | 15 |
1 files changed, 13 insertions, 2 deletions
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 $< |