Makefile.am revision 89cad536e3e38002bfc931acfa2e0645d4b08a51
1## Process this file with automake to produce Makefile.in 2 3SUBDIRS = include . doc example 4 5INCLUDES = -I@srcdir@/include -I$(top_builddir)/include @THREAD_CFLAGS@ @Z_CFLAGS@ 6 7noinst_PROGRAMS=testSAX testHTML testXPath testURI testDocbook testThreads 8 9bin_PROGRAMS = xmllint xmlcatalog 10 11bin_SCRIPTS=xml2-config 12 13lib_LTLIBRARIES = libxml2.la 14libxml2_la_LIBADD = @Z_LIBS@ $(ICONV_LIBS) -lm 15 16libxml2_la_LDFLAGS = -version-info @LIBXML_VERSION_INFO@ 17 18if WITH_TRIO_SOURCES 19libxml2_la_SOURCES = SAX.c entities.c encoding.c error.c parserInternals.c \ 20 parser.c tree.c hash.c list.c xmlIO.c xmlmemory.c uri.c \ 21 valid.c xlink.c HTMLparser.c HTMLtree.c debugXML.c xpath.c \ 22 xpointer.c xinclude.c nanohttp.c nanoftp.c DOCBparser.c \ 23 catalog.c globals.c threads.c strio.c trio.c 24 25else 26libxml2_la_SOURCES = SAX.c entities.c encoding.c error.c parserInternals.c \ 27 parser.c tree.c hash.c list.c xmlIO.c xmlmemory.c uri.c \ 28 valid.c xlink.c HTMLparser.c HTMLtree.c debugXML.c xpath.c \ 29 xpointer.c xinclude.c nanohttp.c nanoftp.c DOCBparser.c \ 30 catalog.c globals.c threads.c 31 32endif 33 34DEPS = $(top_builddir)/libxml2.la 35LDADDS = $(top_builddir)/libxml2.la @THREAD_LIBS@ @Z_LIBS@ $(ICONV_LIBS) -lm 36 37man_MANS = xmllint.1 xml2-config.1 libxml.4 38 39m4datadir = $(datadir)/aclocal 40m4data_DATA = libxml.m4 41 42xmllint_SOURCES=xmllint.c 43xmllint_LDFLAGS = 44xmllint_DEPENDENCIES = $(DEPS) 45xmllint_LDADD= @RDL_LIBS@ $(LDADDS) 46 47testSAX_SOURCES=testSAX.c 48testSAX_LDFLAGS = 49testSAX_DEPENDENCIES = $(DEPS) 50testSAX_LDADD= $(LDADDS) 51 52testHTML_SOURCES=testHTML.c 53testHTML_LDFLAGS = 54testHTML_DEPENDENCIES = $(DEPS) 55testHTML_LDADD= $(LDADDS) 56 57testDocbook_SOURCES=testDocbook.c 58testDocbook_LDFLAGS = 59testDocbook_DEPENDENCIES = $(DEPS) 60testDocbook_LDADD= $(LDADDS) 61 62xmlcatalog_SOURCES=xmlcatalog.c 63xmlcatalog_LDFLAGS = 64xmlcatalog_DEPENDENCIES = $(DEPS) 65xmlcatalog_LDADD= $(LDADDS) 66 67testXPath_SOURCES=testXPath.c 68testXPath_LDFLAGS = 69testXPath_DEPENDENCIES = $(DEPS) 70testXPath_LDADD= $(LDADDS) 71 72testThreads_SOURCES=testThreads.c 73testThreads_LDFLAGS = 74testThreads_DEPENDENCIES = $(DEPS) 75testThreads_LDADD= $(LDADDS) 76 77testURI_SOURCES=testURI.c 78testURI_LDFLAGS = 79testURI_DEPENDENCIES = $(DEPS) 80testURI_LDADD= $(LDADDS) 81 82check-local: tests 83 84testall : tests SVGtests SAXtests 85 86tests: XMLtests XMLenttests HTMLtests Validtests URItests XPathtests XPtrtests XIncludetests Scripttests Catatests @TEST_THREADS@ 87 88HTMLtests : testHTML 89 @(echo > .memdump) 90 @echo "##" 91 @echo "## HTML regression tests" 92 @echo "##" 93 @(for i in $(srcdir)/test/HTML/* ; do \ 94 name=`basename $$i`; \ 95 if [ ! -d $$i ] ; then \ 96 if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \ 97 echo New test file $$name ; \ 98 $(top_builddir)/testHTML $$i > $(srcdir)/result/HTML/$$name 2>$(srcdir)/result/HTML/$$name.err ; \ 99 else \ 100 echo Testing $$name ; \ 101 $(top_builddir)/testHTML $$i > result.$$name 2> error.$$name ; \ 102 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 103 diff $(srcdir)/result/HTML/$$name result.$$name ; \ 104 diff -b $(srcdir)/result/HTML/$$name.err error.$$name ; \ 105 $(top_builddir)/testHTML result.$$name > result2.$$name 2>error.$$name ; \ 106 diff result.$$name result2.$$name ; \ 107 rm result.$$name result2.$$name error.$$name ; \ 108 fi ; fi ; done) 109 @echo "##" 110 @echo "## Push HTML regression tests" 111 @echo "##" 112 @(for i in $(srcdir)/test/HTML/* ; do \ 113 name=`basename $$i`; \ 114 if [ ! -d $$i ] ; then \ 115 if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \ 116 echo New test file $$name ; \ 117 $(top_builddir)/testHTML $$i > $(srcdir)/result/HTML/$$name 2>$(srcdir)/result/HTML/$$name.err ; \ 118 else \ 119 echo Testing $$name ; \ 120 $(top_builddir)/testHTML --push $$i > result.$$name 2> error.$$name ; \ 121 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 122 diff $(srcdir)/result/HTML/$$name result.$$name ; \ 123 cut -b 1-15 $(srcdir)/result/HTML/$$name.err > errorcut.$$name; \ 124 cut -b 1-15 error.$$name > errorcut2.$$name; \ 125 diff -b errorcut.$$name errorcut2.$$name ; \ 126 $(top_builddir)/testHTML --push result.$$name > result2.$$name 2>error.$$name ; \ 127 diff result.$$name result2.$$name ; \ 128 rm result.$$name result2.$$name error.$$name errorcut.$$name errorcut2.$$name ; \ 129 fi ; fi ; done) 130 @echo "##" 131 @echo "## HTML SAX regression tests" 132 @echo "##" 133 @(for i in $(srcdir)/test/HTML/* ; do \ 134 name=`basename $$i`; \ 135 if [ ! -d $$i ] ; then \ 136 if [ ! -f $(srcdir)/result/HTML/$$name.sax ] ; then \ 137 echo New test file $$name ; \ 138 $(top_builddir)/testHTML --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \ 139 else \ 140 echo Testing $$name ; \ 141 $(top_builddir)/testHTML --sax $$i > result.$$name.sax ; \ 142 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 143 diff $(srcdir)/result/HTML/$$name.sax result.$$name.sax ; \ 144 rm result.$$name.sax ; \ 145 fi ; fi ; done) 146 @echo "##" 147 @echo "## Push HTML SAX regression tests" 148 @echo "##" 149 @(for i in $(srcdir)/test/HTML/* ; do \ 150 name=`basename $$i`; \ 151 if [ ! -d $$i ] ; then \ 152 if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \ 153 echo New test file $$name ; \ 154 $(top_builddir)/testHTML --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \ 155 else \ 156 echo Testing $$name ; \ 157 $(top_builddir)/testHTML --push --sax $$i > result.$$name.sax ; \ 158 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 159 diff $(srcdir)/result/HTML/$$name.sax result.$$name.sax ; \ 160 rm result.$$name.sax ; \ 161 fi ; fi ; done) 162 163 164XMLtests : xmllint 165 @(echo > .memdump) 166 @echo "##" 167 @echo "## XML regression tests" 168 @echo "##" 169 @echo "## You should see one warning on entity 'title.xml' for ent2" 170 @echo "##" 171 @(for i in $(srcdir)/test/* ; do \ 172 name=`basename $$i`; \ 173 if [ ! -d $$i ] ; then \ 174 if [ ! -f $(srcdir)/result/$$name ] ; then \ 175 echo New test file $$name ; \ 176 $(top_builddir)/xmllint $$i > $(srcdir)/result/$$name ; \ 177 else \ 178 echo Testing $$name ; \ 179 $(top_builddir)/xmllint $$i > result.$$name ; \ 180 diff $(srcdir)/result/$$name result.$$name ; \ 181 $(top_builddir)/xmllint result.$$name > result2.$$name ; \ 182 diff result.$$name result2.$$name ; \ 183 rm result.$$name result2.$$name ; \ 184 fi ; fi ; done) 185 @(echo > .memdump) 186 @echo "##" 187 @echo "## XML push regression tests" 188 @echo "##" 189 @echo "## You should see one warning on entity 'title.xml' for ent2" 190 @echo "##" 191 @(for i in $(srcdir)/test/* ; do \ 192 name=`basename $$i`; \ 193 if [ ! -d $$i ] ; then \ 194 if [ ! -f $(srcdir)/result/$$name ] ; then \ 195 echo New test file $$name ; \ 196 $(top_builddir)/xmllint --push $$i > $(srcdir)/result/$$name ; \ 197 else \ 198 echo Testing $$name ; \ 199 $(top_builddir)/xmllint --push $$i > result.$$name ; \ 200 diff $(srcdir)/result/$$name result.$$name ; \ 201 $(top_builddir)/xmllint --push result.$$name > result2.$$name ; \ 202 diff result.$$name result2.$$name ; \ 203 rm result.$$name result2.$$name ; \ 204 fi ; fi ; done) 205 @echo "##" 206 @echo "## XML regression tests on memory" 207 @echo "##" 208 @echo "## You should see two warnings on entity 'title.xml' for ent2" 209 @echo "##" 210 @(for i in $(srcdir)/test/* ; do \ 211 name=`basename $$i`; \ 212 if [ ! -d $$i ] ; then \ 213 if [ ! -f $(srcdir)/result/$$name ] ; then \ 214 echo New test file $$name ; \ 215 $(top_builddir)/xmllint --memory $$i > $(srcdir)/result/$$name ; \ 216 else \ 217 echo Testing $$name ; \ 218 $(top_builddir)/xmllint --memory $$i > result.$$name ; \ 219 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 220 diff $(srcdir)/result/$$name result.$$name ; \ 221 $(top_builddir)/xmllint --memory result.$$name > result2.$$name ; \ 222 diff result.$$name result2.$$name ; \ 223 rm result.$$name result2.$$name ; \ 224 fi ; fi ; done) 225 226Docbtests : xmllint 227 @(echo > .memdump) 228 @echo "##" 229 @echo "## SGML DocBook regression tests" 230 @echo "##" 231 @(for i in $(srcdir)/test/DocBook/*.sgm ; do \ 232 name=`basename $$i .sgm`; \ 233 if [ ! -d $$i ] ; then \ 234 if [ ! -f $(srcdir)/result/DocBook/$$name.xml ] ; then \ 235 echo New test file $$name ; \ 236 $(top_builddir)/xmllint --sgml $$i > $(srcdir)/result/DocBook/$$name.xml ; \ 237 $(top_builddir)/xmllint --valid --noout $(srcdir)/result/DocBook/$$name.xml ; \ 238 else \ 239 echo Testing $$name ; \ 240 $(top_builddir)/xmllint --sgml $$i > result.$$name ; \ 241 diff $(srcdir)/result/DocBook/$$name.xml result.$$name ; \ 242 $(top_builddir)/xmllint --valid --noout result.$$name ; \ 243 rm result.$$name ; \ 244 fi ; fi ; done) 245 246XMLenttests : xmllint 247 @(echo > .memdump) 248 @echo "##" 249 @echo "## XML entity subst regression tests" 250 @echo "##" 251 @(for i in $(srcdir)/test/* ; do \ 252 name=`basename $$i`; \ 253 if [ ! -d $$i ] ; then \ 254 if [ ! -f $(srcdir)/result/noent/$$name ] ; then \ 255 echo New test file $$name ; \ 256 $(top_builddir)/xmllint --noent $$i > $(srcdir)/result/noent/$$name ; \ 257 else \ 258 echo Testing $$name ; \ 259 $(top_builddir)/xmllint --noent $$i > result.$$name ; \ 260 diff $(srcdir)/result/noent/$$name result.$$name ; \ 261 $(top_builddir)/xmllint --noent result.$$name > result2.$$name ; \ 262 diff result.$$name result2.$$name ; \ 263 rm result.$$name result2.$$name ; \ 264 fi ; fi ; done) 265 266URItests : testURI 267 @(echo > .memdump) 268 @echo "##" 269 @echo "## URI module regression tests" 270 @echo "##" 271 @(for i in $(srcdir)/test/URI/*.data ; do \ 272 name=`basename $$i`; \ 273 if [ ! -d $$i ] ; then \ 274 if [ ! -f $(srcdir)/result/URI/$$name ] ; then \ 275 echo New test file $$name ; \ 276 $(top_builddir)/testURI -base 'http://foo.com/path/to/index.html?orig#help' < $$i > $(srcdir)/result/URI/$$name ; \ 277 else \ 278 echo Testing $$name ; \ 279 $(top_builddir)/testURI -base 'http://foo.com/path/to/index.html?orig#help' < $$i > result.$$name ; \ 280 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 281 diff $(srcdir)/result/URI/$$name result.$$name ; \ 282 rm result.$$name ; \ 283 fi ; fi ; done) 284 @(for i in $(srcdir)/test/URI/*.uri ; do \ 285 name=`basename $$i`; \ 286 if [ ! -d $$i ] ; then \ 287 if [ ! -f $(srcdir)/result/URI/$$name ] ; then \ 288 echo New test file $$name ; \ 289 $(top_builddir)/testURI < $$i > $(srcdir)/result/URI/$$name ; \ 290 else \ 291 echo Testing $$name ; \ 292 $(top_builddir)/testURI < $$i > result.$$name ; \ 293 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 294 diff $(srcdir)/result/URI/$$name result.$$name ; \ 295 rm result.$$name ; \ 296 fi ; fi ; done) 297 298XPathtests : testXPath 299 @(echo > .memdump) 300 @echo "##" 301 @echo "## XPath regression tests" 302 @echo "##" 303 @(if [ "`$(top_builddir)/testXPath | grep 'support not compiled in'`" != "" ] ; \ 304 then echo Skipping debug not compiled in ; exit 0 ; fi ; \ 305 for i in $(srcdir)/test/XPath/expr/* ; do \ 306 name=`basename $$i`; \ 307 if [ ! -d $$i ] ; then \ 308 if [ ! -f $(srcdir)/result/XPath/expr/$$name ] ; then \ 309 echo New test file $$name ; \ 310 $(top_builddir)/testXPath -f --expr $$i > $(srcdir)/result/XPath/expr/$$name ; \ 311 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 312 else \ 313 echo Testing $$name ; \ 314 $(top_builddir)/testXPath -f --expr $$i > result.$$name ; \ 315 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 316 diff $(srcdir)/result/XPath/expr/$$name result.$$name ; \ 317 rm result.$$name ; \ 318 fi ; fi ; done ; \ 319 for i in $(srcdir)/test/XPath/docs/* ; do \ 320 if [ ! -d $$i ] ; then \ 321 doc=`basename $$i`; \ 322 for j in $(srcdir)/test/XPath/tests/$$doc* ; do \ 323 if [ ! -f $$j ] ; then continue ; fi ; \ 324 name=`basename $$j`; \ 325 if [ ! -d $$j ] ; then \ 326 if [ ! -f $(srcdir)/result/XPath/tests/$$name ] ; then \ 327 echo New test file $$name ; \ 328 $(top_builddir)/testXPath -f -i $$i $$j > $(srcdir)/result/XPath/tests/$$name ; \ 329 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 330 else \ 331 echo Testing $$name ; \ 332 $(top_builddir)/testXPath -f -i $$i $$j > result.$$name ; \ 333 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 334 diff $(srcdir)/result/XPath/tests/$$name result.$$name ; \ 335 rm result.$$name ; \ 336 fi ; fi ; done ; fi ; done) 337 338XPtrtests : testXPath 339 @(echo > .memdump) 340 @echo "##" 341 @echo "## XPointer regression tests" 342 @echo "##" 343 @(if [ "`$(top_builddir)/testXPath | grep 'support not compiled in'`" != "" ] ; \ 344 then echo Skipping debug not compiled in ; exit 0 ; fi ; \ 345 for i in $(srcdir)/test/XPath/docs/* ; do \ 346 if [ ! -d $$i ] ; then \ 347 doc=`basename $$i`; \ 348 for j in $(srcdir)/test/XPath/xptr/$$doc* ; do \ 349 if [ ! -f $$j ] ; then continue ; fi ; \ 350 name=`basename $$j`; \ 351 if [ ! -d $$j ] ; then \ 352 if [ ! -f $(srcdir)/result/XPath/xptr/$$name ] ; then \ 353 echo New test file $$name ; \ 354 ./testXPath -xptr -f -i $$i $$j > $(srcdir)/result/XPath/xptr/$$name ; \ 355 else \ 356 echo Testing $$name ; \ 357 ./testXPath -xptr -f -i $$i $$j > result.$$name ; \ 358 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 359 diff $(srcdir)/result/XPath/xptr/$$name result.$$name ; \ 360 rm result.$$name ; \ 361 fi ; fi ; done ; fi ; done) 362 363XIncludetests : xmllint 364 @(echo > .memdump) 365 @echo "##" 366 @echo "## XInclude regression tests" 367 @echo "##" 368 @(for i in $(srcdir)/test/XInclude/docs/* ; do \ 369 name=`basename $$i`; \ 370 if [ ! -d $$i ] ; then \ 371 if [ ! -f $(srcdir)/result/XInclude/$$name ] ; then \ 372 echo New test file $$name ; \ 373 $(top_builddir)/xmllint --xinclude $$i > $(srcdir)/result/XInclude/$$name ; \ 374 else \ 375 echo Testing $$name ; \ 376 $(top_builddir)/xmllint --xinclude $$i > result.$$name ; \ 377 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 378 diff $(srcdir)/result/XInclude/$$name result.$$name ; \ 379 rm result.$$name ; \ 380 fi ; fi ; done) 381 382Scripttests : xmllint 383 @(echo > .memdump) 384 @echo "##" 385 @echo "## Scripts regression tests" 386 @echo "## Some of the base computations may be different if srcdir != ." 387 @echo "##" 388 @(for i in $(srcdir)/test/scripts/*.script ; do \ 389 name=`basename $$i .script`; \ 390 xml=$(srcdir)/test/scripts/`basename $$i .script`.xml; \ 391 if [ -f $$xml ] ; then \ 392 if [ ! -f $(srcdir)/result/scripts/$$name ] ; then \ 393 echo New test file $$name ; \ 394 $(top_builddir)/xmllint --shell $$xml < $$i > $(srcdir)/result/scripts/$$name ; \ 395 else \ 396 echo Testing $$name ; \ 397 $(top_builddir)/xmllint --shell $$xml < $$i > result.$$name ; \ 398 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 399 diff $(srcdir)/result/scripts/$$name result.$$name ; \ 400 rm result.$$name ; \ 401 fi ; fi ; done) 402 403Catatests : xmlcatalog 404 @(echo > .memdump) 405 @echo "##" 406 @echo "## Catalog regression tests" 407 @echo "##" 408 @(for i in $(srcdir)/test/catalogs/*.script ; do \ 409 name=`basename $$i .script`; \ 410 xml=$(srcdir)/test/catalogs/`basename $$i .script`.xml; \ 411 if [ -f $$xml ] ; then \ 412 if [ ! -f $(srcdir)/result/catalogs/$$name ] ; then \ 413 echo New test file $$name ; \ 414 $(top_builddir)/xmlcatalog --shell $$xml < $$i > $(srcdir)/result/catalogs/$$name ; \ 415 else \ 416 echo Testing $$name ; \ 417 $(top_builddir)/xmlcatalog --shell $$xml < $$i > result.$$name ; \ 418 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 419 diff $(srcdir)/result/catalogs/$$name result.$$name ; \ 420 rm result.$$name ; \ 421 fi ; fi ; done) 422 423SVGtests : xmllint 424 @echo "##" 425 @echo "## SVG parsing regression tests" 426 @echo "##" 427 @(for i in $(srcdir)/test/SVG/* ; do \ 428 name=`basename $$i`; \ 429 if [ ! -d $$i ] ; then \ 430 if [ ! -f $(srcdir)/result/SVG/$$name ] ; then \ 431 echo New test file $$name ; \ 432 $(top_builddir)/xmllint $$i > $(srcdir)/result/SVG/$$name ; \ 433 else \ 434 echo Testing $$name ; \ 435 $(top_builddir)/xmllint $$i > result.$$name ; \ 436 diff $(srcdir)/result/SVG/$$name result.$$name ; \ 437 $(top_builddir)/xmllint result.$$name > result2.$$name ; \ 438 diff result.$$name result2.$$name ; \ 439 rm result.$$name result2.$$name ; \ 440 fi ; fi ; done) 441 442Threadtests : testThreads 443 @echo "##" 444 @echo "## Threaded regression tests" 445 @echo "##" 446 testThreads 447 448SAXtests : testSAX 449 @(echo > .memdump) 450 @echo "##" 451 @echo "## SAX callbacks regression tests" 452 @echo "##" 453 @(for i in $(srcdir)/test/* ; do \ 454 name=`basename $$i`; \ 455 if [ ! -d $$i ] ; then \ 456 if [ ! -f $(srcdir)/SAXresult/$$name ] ; then \ 457 echo New test file $$name ; \ 458 $(top_builddir)/testSAX $$i > $(srcdir)/SAXresult/$$name ; \ 459 else \ 460 echo Testing $$name ; \ 461 $(top_builddir)/testSAX $$i > result.$$name ; \ 462 diff $(srcdir)/SAXresult/$$name result.$$name ; \ 463 rm result.$$name ; \ 464 fi ; fi ; done) 465 466 467Validtests : xmllint 468 @(echo > .memdump) 469 @echo "##" 470 @echo "## Valid documents regression tests" 471 @echo "##" 472 @(for i in $(srcdir)/test/VCM/* ; do \ 473 name=`basename $$i`; \ 474 if [ ! -d $$i ] ; then \ 475 echo Testing $$name ; \ 476 $(top_builddir)/xmllint --valid --noout --nowarning $$i ; \ 477 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 478 fi ; done ; exit 0) 479 @echo "##" 480 @echo "## Validity checking regression tests" 481 @echo "##" 482 @(for i in $(srcdir)/test/VC/* ; do \ 483 name=`basename $$i`; \ 484 if [ ! -d $$i ] ; then \ 485 if [ ! -f $(srcdir)/result/VC/$$name ] ; then \ 486 echo New test file $$name ; \ 487 $(top_builddir)/xmllint --noout --valid $$i 2> $(srcdir)/result/VC/$$name ; \ 488 else \ 489 echo Testing $$name ; \ 490 $(top_builddir)/xmllint --noout --valid $$i 2> result.$$name ; \ 491 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 492 diff $(srcdir)/result/VC/$$name result.$$name ; \ 493 rm result.$$name ; \ 494 fi ; fi ; done) 495 @echo "##" 496 @echo "## General documents valid regression tests" 497 @echo "##" 498 @(for i in $(srcdir)/test/valid/* ; do \ 499 name=`basename $$i`; \ 500 if [ ! -d $$i ] ; then \ 501 if [ ! -f $(srcdir)/result/valid/$$name ] ; then \ 502 echo New test file $$name ; \ 503 $(top_builddir)/xmllint --valid $$i > $(srcdir)/result/valid/$$name 2>$(srcdir)/result/valid/$$name.err ; \ 504 else \ 505 echo Testing $$name ; \ 506 $(top_builddir)/xmllint --valid $$i > result.$$name 2>error.$$name ; \ 507 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\ 508 diff $(srcdir)/result/valid/$$name result.$$name ; \ 509 diff $(srcdir)/result/valid/$$name.err error.$$name ; \ 510 rm result.$$name error.$$name ; \ 511 fi ; fi ; done) 512 513dist-hook: libxml.spec 514 -cp libxml.spec $(distdir) 515 (cd $(srcdir) ; tar -cf - --exclude CVS win32 test result SAXresult ) | (cd $(distdir); tar xf -) 516 517cleantar: 518 @(rm -f libxslt*.tar.gz) 519 520rpm: cleantar distcheck 521 rpm -ta $(distdir).tar.gz 522 523## We create xml2Conf.sh here and not from configure because we want 524## to get the paths expanded correctly. Macros like srcdir are given 525## the value NONE in configure if the user doesn't specify them (this 526## is an autoconf feature, not a bug). 527 528confexecdir=$(libdir) 529confexec_DATA = xml2Conf.sh 530 531CLEANFILES=xml2Conf.sh 532 533confexecdir=$(libdir) 534confexec_DATA = xml2Conf.sh 535EXTRA_DIST = xml2-config.in xml2Conf.sh.in libxml.spec.in libxml.spec \ 536 libxml.m4 \ 537 example/Makefile.am example/gjobread.c example/gjobs.xml \ 538 $(man_MANS) libxml-2.0.pc.in \ 539 vms/build_libxml.com vms/config.vms \ 540 trionan.c trionan.h strio.c strio.h trio.c trio.h \ 541 triop.h triodef.h libxml.h 542 543pkgconfigdir = $(libdir)/pkgconfig 544pkgconfig_DATA = libxml-2.0.pc 545 546#xml2Conf.sh: xml2Conf.sh.in Makefile 547### Use sed and then mv to avoid problems if the user interrupts. 548# sed -e 's?\@XML_LIBDIR\@?$(XML_LIBDIR)?g' \ 549# -e 's?\@XML_INCLUDEDIR\@?$(XML_INCLUDEDIR)?g' \ 550# -e 's?\@XML_LIBS\@?$(XML_LIBS)?g' \ 551# -e 's?\@VERSION\@?$(VERSION)?g' \ 552# < $(srcdir)/xml2Conf.sh.in > xml2Conf.tmp \ 553# && mv xml2Conf.tmp xml2Conf.sh 554