Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 1 | ## Process this file with automake to produce Makefile.in |
| 2 | |
Daniel Veillard | be9e595 | 1999-07-12 09:16:45 +0000 | [diff] [blame] | 3 | SUBDIRS = doc |
Daniel Veillard | 19b858c | 1999-02-06 18:12:01 +0000 | [diff] [blame] | 4 | |
Daniel Veillard | 14fff06 | 1999-06-22 21:49:07 +0000 | [diff] [blame] | 5 | INCLUDES = -I@srcdir@ @CORBA_CFLAGS@ $(VERSION_FLAGS) |
| 6 | |
| 7 | VERSION_FLAGS = -DLIBXML_VERSION=\"@LIBXML_VERSION@\" |
Daniel Veillard | 27fb075 | 1998-10-17 06:47:46 +0000 | [diff] [blame] | 8 | |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 9 | noinst_PROGRAMS=tester testSAX testHTML testXPath |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 10 | |
Daniel Veillard | a6e1d12 | 1998-10-04 14:41:05 +0000 | [diff] [blame] | 11 | bin_SCRIPTS=xml-config |
| 12 | |
Daniel Veillard | 0dc897e | 1998-07-26 04:12:22 +0000 | [diff] [blame] | 13 | lib_LTLIBRARIES = libxml.la |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 14 | |
Daniel Veillard | 14fff06 | 1999-06-22 21:49:07 +0000 | [diff] [blame] | 15 | libxml_la_LDFLAGS = -version-info @LIBXML_VERSION_INFO@ |
| 16 | |
Daniel Veillard | 0dc897e | 1998-07-26 04:12:22 +0000 | [diff] [blame] | 17 | libxml_la_SOURCES = \ |
Daniel Veillard | 260a68f | 1998-08-13 03:39:55 +0000 | [diff] [blame] | 18 | SAX.c \ |
| 19 | entities.c \ |
Daniel Veillard | 891e404 | 1998-10-19 00:43:02 +0000 | [diff] [blame] | 20 | encoding.c \ |
Daniel Veillard | 260a68f | 1998-08-13 03:39:55 +0000 | [diff] [blame] | 21 | error.c \ |
| 22 | parser.c \ |
Daniel Veillard | be70ff7 | 1999-07-05 16:50:46 +0000 | [diff] [blame] | 23 | HTMLparser.c \ |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 24 | HTMLtree.c \ |
Daniel Veillard | baf4cd5 | 1998-10-27 22:56:57 +0000 | [diff] [blame] | 25 | debugXML.c \ |
Daniel Veillard | 39a1f9a | 1999-01-17 19:11:59 +0000 | [diff] [blame] | 26 | tree.c \ |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 27 | xpath.c \ |
Daniel Veillard | e2d034d | 1999-07-27 19:52:06 +0000 | [diff] [blame] | 28 | xmlIO.c \ |
Daniel Veillard | 6454aec | 1999-09-02 22:04:43 +0000 | [diff] [blame] | 29 | xmlmemory.c \ |
Daniel Veillard | 7f7d111 | 1999-09-22 09:46:25 +0000 | [diff] [blame] | 30 | nanohttp.c \ |
Daniel Veillard | 39a1f9a | 1999-01-17 19:11:59 +0000 | [diff] [blame] | 31 | valid.c |
Daniel Veillard | 260a68f | 1998-08-13 03:39:55 +0000 | [diff] [blame] | 32 | |
Tom Tromey | c19653d | 1998-08-14 01:22:43 +0000 | [diff] [blame] | 33 | xmlincdir = $(includedir)/gnome-xml |
| 34 | xmlinc_HEADERS = \ |
Daniel Veillard | 260a68f | 1998-08-13 03:39:55 +0000 | [diff] [blame] | 35 | entities.h \ |
Daniel Veillard | 891e404 | 1998-10-19 00:43:02 +0000 | [diff] [blame] | 36 | encoding.h \ |
Daniel Veillard | 260a68f | 1998-08-13 03:39:55 +0000 | [diff] [blame] | 37 | parser.h \ |
Daniel Veillard | 5233ffc | 1999-07-06 22:25:25 +0000 | [diff] [blame] | 38 | HTMLparser.h \ |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 39 | HTMLtree.h \ |
Daniel Veillard | 3592547 | 1999-02-25 08:46:07 +0000 | [diff] [blame] | 40 | parserInternals.h \ |
Daniel Veillard | baf4cd5 | 1998-10-27 22:56:57 +0000 | [diff] [blame] | 41 | debugXML.h \ |
Daniel Veillard | d109e37 | 1999-03-05 06:26:45 +0000 | [diff] [blame] | 42 | xml-error.h \ |
Daniel Veillard | 39a1f9a | 1999-01-17 19:11:59 +0000 | [diff] [blame] | 43 | tree.h \ |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 44 | xpath.h \ |
Daniel Veillard | 14fff06 | 1999-06-22 21:49:07 +0000 | [diff] [blame] | 45 | xmlIO.h \ |
Daniel Veillard | 6454aec | 1999-09-02 22:04:43 +0000 | [diff] [blame] | 46 | xmlmemory.h \ |
Daniel Veillard | 7f7d111 | 1999-09-22 09:46:25 +0000 | [diff] [blame] | 47 | nanohttp.h \ |
Daniel Veillard | 39a1f9a | 1999-01-17 19:11:59 +0000 | [diff] [blame] | 48 | valid.h |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 49 | |
Daniel Veillard | 0dc897e | 1998-07-26 04:12:22 +0000 | [diff] [blame] | 50 | DEPS = $(top_builddir)/libxml.la |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 51 | LDADDS = $(top_builddir)/libxml.la @Z_LIBS@ @M_LIBS@ |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 52 | |
| 53 | tester_SOURCES=tester.c |
| 54 | tester_LDFLAGS = |
| 55 | tester_DEPENDENCIES = $(DEPS) |
| 56 | tester_LDADD= $(LDADDS) |
| 57 | |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 58 | testSAX_SOURCES=testSAX.c |
| 59 | testSAX_LDFLAGS = |
| 60 | testSAX_DEPENDENCIES = $(DEPS) |
| 61 | testSAX_LDADD= $(LDADDS) |
| 62 | |
Daniel Veillard | be70ff7 | 1999-07-05 16:50:46 +0000 | [diff] [blame] | 63 | testHTML_SOURCES=testHTML.c |
| 64 | testHTML_LDFLAGS = |
| 65 | testHTML_DEPENDENCIES = $(DEPS) |
| 66 | testHTML_LDADD= $(LDADDS) |
| 67 | |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 68 | testXPath_SOURCES=testXPath.c |
| 69 | testXPath_LDFLAGS = |
| 70 | testXPath_DEPENDENCIES = $(DEPS) |
| 71 | testXPath_LDADD= $(LDADDS) |
| 72 | |
Raja R Harinath | a86c23e | 1999-03-05 22:14:01 +0000 | [diff] [blame] | 73 | check-local: tests |
| 74 | |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 75 | testall : tests SVGtests SAXtests XPathtests XMLenttests |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 76 | |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 77 | tests: XMLtests HTMLtests Validtests |
| 78 | |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 79 | HTMLtests : testHTML |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 80 | @echo "##" |
| 81 | @echo "## HTML regression tests" |
| 82 | @echo "##" |
| 83 | @(for i in $(srcdir)/test/HTML/* ; do \ |
| 84 | name=`basename $$i`; \ |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 85 | if [ ! -d $$i ] ; then \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 86 | if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \ |
| 87 | echo New test file $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 88 | $(top_builddir)/testHTML $$i > $(srcdir)/result/HTML/$$name ; \ |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 89 | else \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 90 | echo Testing $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 91 | $(top_builddir)/testHTML $$i > result.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 92 | diff $(srcdir)/result/HTML/$$name result.$$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 93 | $(top_builddir)/testHTML result.$$name > result2.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 94 | diff result.$$name result2.$$name ; \ |
| 95 | rm result.$$name result2.$$name ; \ |
Daniel Veillard | 82150d8 | 1999-07-07 07:32:15 +0000 | [diff] [blame] | 96 | fi ; fi ; done) |
| 97 | |
| 98 | XMLtests : tester |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 99 | @echo "##" |
| 100 | @echo "## XML regression tests" |
| 101 | @echo "##" |
| 102 | @(for i in $(srcdir)/test/* ; do \ |
| 103 | name=`basename $$i`; \ |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 104 | if [ ! -d $$i ] ; then \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 105 | if [ ! -f $(srcdir)/result/$$name ] ; then \ |
| 106 | echo New test file $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 107 | $(top_builddir)/tester $$i > $(srcdir)/result/$$name ; \ |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 108 | else \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 109 | echo Testing $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 110 | $(top_builddir)/tester $$i > result.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 111 | diff $(srcdir)/result/$$name result.$$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 112 | $(top_builddir)/tester result.$$name > result2.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 113 | diff result.$$name result2.$$name ; \ |
| 114 | rm result.$$name result2.$$name ; \ |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 115 | fi ; fi ; done) |
| 116 | |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 117 | XMLenttests : tester |
| 118 | @echo "##" |
| 119 | @echo "## XML entity subst regression tests" |
| 120 | @echo "##" |
| 121 | @(for i in $(srcdir)/test/* ; do \ |
| 122 | name=`basename $$i`; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 123 | if [ ! -d $$i ] ; then \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 124 | if [ ! -f $(srcdir)/result/noent/$$name ] ; then \ |
| 125 | echo New test file $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 126 | $(top_builddir)/tester --noent $$i > $(srcdir)/result/noent/$$name ; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 127 | else \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 128 | echo Testing $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 129 | $(top_builddir)/tester --noent $$i > result.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 130 | diff $(srcdir)/result/noent/$$name result.$$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 131 | $(top_builddir)/tester --noent result.$$name > result2.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 132 | diff result.$$name result2.$$name ; \ |
| 133 | rm result.$$name result2.$$name ; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 134 | fi ; fi ; done) |
| 135 | |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 136 | XPathtests : testXPath |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 137 | @echo "##" |
| 138 | @echo "## XPath regression tests" |
| 139 | @echo "##" |
| 140 | @(for i in $(srcdir)/test/XPath/expr/* ; do \ |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 141 | name=`basename $$i`; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 142 | if [ ! -d $$i ] ; then \ |
| 143 | if [ ! -f $(srcdir)/result/XPath/expr/$$name ] ; then \ |
| 144 | echo New test file $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 145 | $(top_builddir)/testXPath -f --expr $$i > $(srcdir)/result/XPath/expr/$$name ; \ |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 146 | else \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 147 | echo Testing $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 148 | $(top_builddir)/testXPath -f --expr $$i > result.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 149 | diff $(srcdir)/result/XPath/expr/$$name result.$$name ; \ |
| 150 | rm result.$$name ; \ |
| 151 | fi ; fi ; done) |
| 152 | @(for i in $(srcdir)/test/XPath/docs/* ; do \ |
| 153 | if [ ! -d $$i ] ; then \ |
| 154 | doc=`basename $$i`; \ |
| 155 | for j in $(srcdir)/test/XPath/tests/$$doc* ; do \ |
| 156 | name=`basename $$j`; \ |
| 157 | if [ ! -d $$j ] ; then \ |
| 158 | if [ ! -f $(srcdir)/result/XPath/tests/$$name ] ; then \ |
| 159 | echo New test file $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 160 | $(top_builddir)/testXPath -f -i $$i $$j > $(srcdir)/result/XPath/tests/$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 161 | else \ |
| 162 | echo Testing $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 163 | $(top_builddir)/testXPath -f -i $$i $$j > result.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 164 | diff $(srcdir)/result/XPath/tests/$$name result.$$name ; \ |
| 165 | rm result.$$name ; \ |
Daniel Veillard | 1566d3a | 1999-07-15 14:24:29 +0000 | [diff] [blame] | 166 | fi ; fi ; done ; fi ; done) |
| 167 | |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 168 | SVGtests : tester |
| 169 | @echo "##" |
| 170 | @echo "## SVG parsing regression tests" |
| 171 | @echo "##" |
| 172 | @(for i in $(srcdir)/test/SVG/* ; do \ |
| 173 | name=`basename $$i`; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 174 | if [ ! -d $$i ] ; then \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 175 | if [ ! -f $(srcdir)/result/SVG/$$name ] ; then \ |
| 176 | echo New test file $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 177 | $(top_builddir)/tester $$i > $(srcdir)/result/SVG/$$name ; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 178 | else \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 179 | echo Testing $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 180 | $(top_builddir)/tester $$i > result.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 181 | diff $(srcdir)/result/SVG/$$name result.$$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 182 | $(top_builddir)/tester result.$$name > result2.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 183 | diff result.$$name result2.$$name ; \ |
| 184 | rm result.$$name result2.$$name ; \ |
Daniel Veillard | 011b63c | 1999-06-02 17:44:04 +0000 | [diff] [blame] | 185 | fi ; fi ; done) |
| 186 | |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 187 | SAXtests : testSAX |
| 188 | @echo "##" |
| 189 | @echo "## SAX callbacks regression tests" |
| 190 | @echo "##" |
| 191 | @(for i in $(srcdir)/test/* ; do \ |
| 192 | name=`basename $$i`; \ |
| 193 | if [ ! -d $$i ] ; then \ |
| 194 | if [ ! -f $(srcdir)/SAXresult/$$name ] ; then \ |
| 195 | echo New test file $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 196 | $(top_builddir)/testSAX $$i > $(srcdir)/SAXresult/$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 197 | else \ |
| 198 | echo Testing $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 199 | $(top_builddir)/testSAX $$i > result.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 200 | diff $(srcdir)/SAXresult/$$name result.$$name ; \ |
| 201 | rm result.$$name ; \ |
| 202 | fi ; fi ; done) |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 203 | |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 204 | |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 205 | Validtests : tester |
| 206 | @echo "##" |
| 207 | @echo "## Validity checking regression tests" |
| 208 | @echo "##" |
| 209 | @(for i in $(srcdir)/test/VC/* ; do \ |
| 210 | name=`basename $$i`; \ |
| 211 | if [ ! -d $$i ] ; then \ |
| 212 | if [ ! -f $(srcdir)/result/VC/$$name ] ; then \ |
| 213 | echo New test file $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 214 | $(top_builddir)/tester --noout --valid $$i 2> $(srcdir)/result/VC/$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 215 | else \ |
| 216 | echo Testing $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 217 | $(top_builddir)/tester --noout --valid $$i 2> result.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 218 | diff $(srcdir)/result/VC/$$name result.$$name ; \ |
| 219 | rm result.$$name ; \ |
| 220 | fi ; fi ; done) |
| 221 | @echo "##" |
| 222 | @echo "## Valid documents regression tests" |
| 223 | @echo "##" |
| 224 | @(for i in $(srcdir)/test/valid/* ; do \ |
| 225 | name=`basename $$i`; \ |
| 226 | if [ ! -d $$i ] ; then \ |
| 227 | if [ ! -f $(srcdir)/result/valid/$$name ] ; then \ |
| 228 | echo New test file $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 229 | $(top_builddir)/tester --valid $$i > $(srcdir)/result/valid/$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 230 | else \ |
| 231 | echo Testing $$name ; \ |
CEST 1999 Timur Bakeyev | 6db3cb0 | 1999-09-04 20:25:14 +0000 | [diff] [blame] | 232 | $(top_builddir)/tester --valid $$i > result.$$name ; \ |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 233 | diff $(srcdir)/result/valid/$$name result.$$name ; \ |
| 234 | rm result.$$name ; \ |
| 235 | fi ; fi ; done) |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 236 | |
Elliot Lee | ca84847 | 1999-09-24 16:18:00 +0000 | [diff] [blame] | 237 | dist-hook: libxml.spec |
Michael Fulbright | 63dc42c | 1999-02-21 21:20:12 +0000 | [diff] [blame] | 238 | cp libxml.spec $(distdir) |
| 239 | |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 240 | ## We create xmlConf.sh here and not from configure because we want |
| 241 | ## to get the paths expanded correctly. Macros like srcdir are given |
| 242 | ## the value NONE in configure if the user doesn't specify them (this |
| 243 | ## is an autoconf feature, not a bug). |
| 244 | |
Daniel Veillard | b556eb5 | 1999-08-15 17:19:50 +0000 | [diff] [blame] | 245 | confexecdir=$(libdir) |
| 246 | confexec_DATA = xmlConf.sh |
| 247 | |
Elliot Lee | 56316b0 | 1999-08-23 18:18:32 +0000 | [diff] [blame] | 248 | CLEANFILES=xmlConf.sh |
| 249 | |
Daniel Veillard | b556eb5 | 1999-08-15 17:19:50 +0000 | [diff] [blame] | 250 | EXTRA_DIST = xmlConf.sh.in |
| 251 | |
| 252 | confexecdir=$(libdir) |
| 253 | confexec_DATA = xmlConf.sh |
| 254 | EXTRA_DIST = xmlConf.sh.in libxml.spec.in test result SAXresult \ |
| 255 | example/Makefile.am example/gjobread.c example/gjobs.xml |
| 256 | |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 257 | xmlConf.sh: xmlConf.sh.in Makefile |
| 258 | ## Use sed and then mv to avoid problems if the user interrupts. |
Miguel de Icaza | 60681bd | 1998-09-30 19:28:59 +0000 | [diff] [blame] | 259 | sed -e 's?\@XML_LIBDIR\@?$(XML_LIBDIR)?g' \ |
| 260 | -e 's?\@XML_INCLUDEDIR\@?$(XML_INCLUDEDIR)?g' \ |
| 261 | -e 's?\@XML_LIBS\@?$(XML_LIBS)?g' \ |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 262 | < $(srcdir)/xmlConf.sh.in > xmlConf.tmp \ |
| 263 | && mv xmlConf.tmp xmlConf.sh |