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