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