--- a/syntheticPatients/Makefile Sun Oct 03 13:42:16 2010 -0400
+++ b/syntheticPatients/Makefile Sun Oct 03 17:15:57 2010 -0400
@@ -1,3 +1,6 @@
+# $Id$
+
+# XSLT ?= xsltprocDocStyle.sh
XSLT ?= saxonb-xslt -ext:on
SPARQL ?= ~/checkouts/swobjects/bin/SPARQL
@@ -41,10 +44,11 @@
TMOLIST := t_1 t_2 t_3 t_4 t_5 t_6 t_7
#$(error TMOLIST: $(TMOLIST))
-.PHONY: --compare
-
-t_%: AD_PCHR_%-tmo.trig --compare tests/email_%.srt
- $(SPARQL) -qd $^ -e 'PREFIX foaf: <http://xmlns.com/foaf/0.1/> SELECT ?mbox { ?s foaf:mbox ?mbox }' || echo $<\(0\): error !mbox
+t_%: AD_PCHR_%-tmo.trig tests/email_%.srt
+ $(SPARQL) -qd $(word 1, $^) --compare $(word 2, $^) -e 'PREFIX foaf: <http://xmlns.com/foaf/0.1/> SELECT ?mbox { ?s foaf:mbox ?mbox }' || echo $<\(0\): error !mbox
test: all $(TMOLIST)
+clean:
+ rm -f *-indivo.xml *-tmo.trig
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/syntheticPatients/xsltprocDocStyle.sh Sun Oct 03 17:15:57 2010 -0400
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# reverse the arguments to xsltproc per:
+# xsltproc [STYLESHEET] {XML-FILE
+
+xsltproc $2 $1
+