Makefile.am 18 KB
Newer Older
1
## Process this file with automake to produce Makefile.in
2 3

# Dependancies are fucked in make distcheck could not find why :-(
Daniel Veillard's avatar
Daniel Veillard committed
4
AUTOMAKE_OPTIONS=no-dependencies
5

6
SUBDIRS = include . doc example
7

8
INCLUDES = -I@srcdir@/include -I$(top_builddir)/include @Z_CFLAGS@ 
9

10
noinst_PROGRAMS=testSAX testHTML testXPath testURI testDocbook testCatalog
11

12
bin_PROGRAMS = xmllint
13

14 15 16
bin_SCRIPTS=xml2-config

lib_LTLIBRARIES = libxml2.la
17
libxml2_la_LIBADD = @Z_LIBS@ -lm
18 19 20

libxml2_la_LDFLAGS = -version-info @LIBXML_VERSION_INFO@

21
if WITH_TRIO_SOURCES
22 23 24
libxml2_la_SOURCES = SAX.c entities.c encoding.c error.c parserInternals.c  \
		parser.c tree.c hash.c list.c xmlIO.c xmlmemory.c uri.c  \
		valid.c xlink.c HTMLparser.c HTMLtree.c debugXML.c xpath.c  \
25
		xpointer.c xinclude.c nanohttp.c nanoftp.c DOCBparser.c \
26
		catalog.c strio.c trio.c
27 28 29 30 31

else
libxml2_la_SOURCES = SAX.c entities.c encoding.c error.c parserInternals.c  \
		parser.c tree.c hash.c list.c xmlIO.c xmlmemory.c uri.c  \
		valid.c xlink.c HTMLparser.c HTMLtree.c debugXML.c xpath.c  \
32 33
		xpointer.c xinclude.c nanohttp.c nanoftp.c DOCBparser.c \
		catalog.c
34 35

endif
36 37

DEPS = $(top_builddir)/libxml2.la
38
LDADDS = $(top_builddir)/libxml2.la @Z_LIBS@ $(ICONV_LIBS) -lm
39 40 41 42 43 44 45

man_MANS = xmllint.1 xml2-config.1 libxml.4

m4datadir = $(datadir)/aclocal
m4data_DATA = libxml.m4

xmllint_SOURCES=xmllint.c
46 47
xmllint_LDFLAGS = 
xmllint_DEPENDENCIES = $(DEPS)
48
xmllint_LDADD=  @RDL_LIBS@ $(LDADDS)
49

50
testSAX_SOURCES=testSAX.c
51 52
testSAX_LDFLAGS = 
testSAX_DEPENDENCIES = $(DEPS)
53
testSAX_LDADD= $(LDADDS)
54

55
testHTML_SOURCES=testHTML.c
56 57
testHTML_LDFLAGS = 
testHTML_DEPENDENCIES = $(DEPS)
58
testHTML_LDADD= $(LDADDS)
59

60 61 62 63 64
testDocbook_SOURCES=testDocbook.c
testDocbook_LDFLAGS = 
testDocbook_DEPENDENCIES = $(DEPS)
testDocbook_LDADD= $(LDADDS)

65 66 67 68 69
testCatalog_SOURCES=testCatalog.c
testCatalog_LDFLAGS = 
testCatalog_DEPENDENCIES = $(DEPS)
testCatalog_LDADD= $(LDADDS)

70
testXPath_SOURCES=testXPath.c
71 72
testXPath_LDFLAGS = 
testXPath_DEPENDENCIES = $(DEPS)
73
testXPath_LDADD= $(LDADDS)
74

75
testURI_SOURCES=testURI.c
76 77
testURI_LDFLAGS = 
testURI_DEPENDENCIES = $(DEPS)
78
testURI_LDADD= $(LDADDS)
79

80 81
check-local: tests

82
testall : tests SVGtests SAXtests
83

84
tests: XMLtests XMLenttests HTMLtests Validtests URItests XPathtests XPtrtests XIncludetests Scripttests
85

86
HTMLtests : testHTML
87
	@(echo > .memdump)
88 89 90 91 92
	@echo "##"
	@echo "## HTML regression tests"
	@echo "##"
	@(for i in $(srcdir)/test/HTML/* ; do \
	  name=`basename $$i`; \
93
	  if [ ! -d $$i ] ; then \
94 95
	  if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \
	      echo New test file $$name ; \
96
	      $(top_builddir)/testHTML $$i > $(srcdir)/result/HTML/$$name 2>$(srcdir)/result/HTML/$$name.err ; \
97
	  else \
98
	      echo Testing $$name ; \
99
	      $(top_builddir)/testHTML $$i > result.$$name 2> error.$$name ; \
100
	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
101
	      diff $(srcdir)/result/HTML/$$name result.$$name ; \
102
	      diff -b $(srcdir)/result/HTML/$$name.err error.$$name ; \
103
	      $(top_builddir)/testHTML result.$$name > result2.$$name 2>error.$$name ; \
104
	      diff result.$$name result2.$$name ; \
105
	      rm result.$$name result2.$$name error.$$name ; \
106
	  fi ; fi ; done)
107 108 109 110 111 112 113 114
	@echo "##"
	@echo "## Push HTML regression tests"
	@echo "##"
	@(for i in $(srcdir)/test/HTML/* ; do \
	  name=`basename $$i`; \
	  if [ ! -d $$i ] ; then \
	  if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \
	      echo New test file $$name ; \
115
	      $(top_builddir)/testHTML $$i > $(srcdir)/result/HTML/$$name 2>$(srcdir)/result/HTML/$$name.err ; \
116 117
	  else \
	      echo Testing $$name ; \
118
	      $(top_builddir)/testHTML --push $$i > result.$$name 2> error.$$name ; \
119 120 121 122 123
	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
	      diff $(srcdir)/result/HTML/$$name result.$$name ; \
	      cut -b 1-15 $(srcdir)/result/HTML/$$name.err > errorcut.$$name; \
	      cut -b 1-15 error.$$name > errorcut2.$$name; \
	      diff -b errorcut.$$name errorcut2.$$name ; \
124
	      $(top_builddir)/testHTML --push result.$$name > result2.$$name 2>error.$$name ; \
125 126 127 128 129 130 131 132 133 134 135
	      diff result.$$name result2.$$name ; \
	      rm result.$$name result2.$$name error.$$name errorcut.$$name errorcut2.$$name ; \
	  fi ; fi ; done)
	@echo "##"
	@echo "## HTML SAX regression tests"
	@echo "##"
	@(for i in $(srcdir)/test/HTML/* ; do \
	  name=`basename $$i`; \
	  if [ ! -d $$i ] ; then \
	  if [ ! -f $(srcdir)/result/HTML/$$name.sax ] ; then \
	      echo New test file $$name ; \
136
	      $(top_builddir)/testHTML --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \
137 138
	  else \
	      echo Testing $$name ; \
139
	      $(top_builddir)/testHTML --sax $$i > result.$$name.sax ; \
140 141 142 143 144 145 146 147 148 149 150 151
	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
	      diff $(srcdir)/result/HTML/$$name.sax result.$$name.sax ; \
	      rm result.$$name.sax ; \
	  fi ; fi ; done)
	@echo "##"
	@echo "## Push HTML SAX regression tests"
	@echo "##"
	@(for i in $(srcdir)/test/HTML/* ; do \
	  name=`basename $$i`; \
	  if [ ! -d $$i ] ; then \
	  if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \
	      echo New test file $$name ; \
152
	      $(top_builddir)/testHTML --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \
153 154
	  else \
	      echo Testing $$name ; \
155
	      $(top_builddir)/testHTML --push --sax $$i > result.$$name.sax ; \
156 157 158 159 160
	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
	      diff $(srcdir)/result/HTML/$$name.sax result.$$name.sax ; \
	      rm result.$$name.sax ; \
	  fi ; fi ; done)

161

162
XMLtests : xmllint
163
	@(echo > .memdump)
164 165 166
	@echo "##"
	@echo "## XML regression tests"
	@echo "##"
167 168
	@echo "## You should see one warning on entity 'title.xml' for ent2"
	@echo "##"
169 170
	@(for i in $(srcdir)/test/* ; do \
	  name=`basename $$i`; \
171
	  if [ ! -d $$i ] ; then \
172 173
	  if [ ! -f $(srcdir)/result/$$name ] ; then \
	      echo New test file $$name ; \
174
	      $(top_builddir)/xmllint $$i > $(srcdir)/result/$$name ; \
175
	  else \
176
	      echo Testing $$name ; \
177
	      $(top_builddir)/xmllint $$i > result.$$name ; \
178
	      diff $(srcdir)/result/$$name result.$$name ; \
179
	      $(top_builddir)/xmllint result.$$name > result2.$$name ; \
180 181
	      diff result.$$name result2.$$name ; \
	      rm result.$$name result2.$$name ; \
182
	  fi ; fi ; done)
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202
	@(echo > .memdump)
	@echo "##"
	@echo "## XML push regression tests"
	@echo "##"
	@echo "## You should see one warning on entity 'title.xml' for ent2"
	@echo "##"
	@(for i in $(srcdir)/test/* ; do \
	  name=`basename $$i`; \
	  if [ ! -d $$i ] ; then \
	  if [ ! -f $(srcdir)/result/$$name ] ; then \
	      echo New test file $$name ; \
	      $(top_builddir)/xmllint --push $$i > $(srcdir)/result/$$name ; \
	  else \
	      echo Testing $$name ; \
	      $(top_builddir)/xmllint --push $$i > result.$$name ; \
	      diff $(srcdir)/result/$$name result.$$name ; \
	      $(top_builddir)/xmllint --push result.$$name > result2.$$name ; \
	      diff result.$$name result2.$$name ; \
	      rm result.$$name result2.$$name ; \
	  fi ; fi ; done)
203 204 205
	@echo "##"
	@echo "## XML regression tests on memory"
	@echo "##"
206 207
	@echo "## You should see two warnings on entity 'title.xml' for ent2"
	@echo "##"
208 209 210 211 212 213 214 215 216 217 218 219 220 221 222
	@(for i in $(srcdir)/test/* ; do \
	  name=`basename $$i`; \
	  if [ ! -d $$i ] ; then \
	  if [ ! -f $(srcdir)/result/$$name ] ; then \
	      echo New test file $$name ; \
	      $(top_builddir)/xmllint --memory $$i > $(srcdir)/result/$$name ; \
	  else \
	      echo Testing $$name ; \
	      $(top_builddir)/xmllint --memory $$i > result.$$name ; \
	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
	      diff $(srcdir)/result/$$name result.$$name ; \
	      $(top_builddir)/xmllint --memory result.$$name > result2.$$name ; \
	      diff result.$$name result2.$$name ; \
	      rm result.$$name result2.$$name ; \
	  fi ; fi ; done)
223

224
XMLenttests : xmllint
225
	@(echo > .memdump)
226 227 228 229 230
	@echo "##"
	@echo "## XML entity subst regression tests"
	@echo "##"
	@(for i in $(srcdir)/test/* ; do \
	  name=`basename $$i`; \
231
	  if [ ! -d $$i ] ; then \
232 233
	  if [ ! -f $(srcdir)/result/noent/$$name ] ; then \
	      echo New test file $$name ; \
234
	      $(top_builddir)/xmllint --noent $$i > $(srcdir)/result/noent/$$name ; \
235
	  else \
236
	      echo Testing $$name ; \
237
	      $(top_builddir)/xmllint --noent $$i > result.$$name ; \
238
	      diff $(srcdir)/result/noent/$$name result.$$name ; \
239
	      $(top_builddir)/xmllint --noent result.$$name > result2.$$name ; \
240 241
	      diff result.$$name result2.$$name ; \
	      rm result.$$name result2.$$name ; \
242 243
	  fi ; fi ; done)

244
URItests : testURI
245
	@(echo > .memdump)
246 247 248 249 250 251 252 253
	@echo "##"
	@echo "## URI module regression tests"
	@echo "##"
	@(for i in $(srcdir)/test/URI/*.data ; do \
	  name=`basename $$i`; \
	  if [ ! -d $$i ] ; then \
	  if [ ! -f $(srcdir)/result/URI/$$name ] ; then \
	      echo New test file $$name ; \
254
	      $(top_builddir)/testURI -base 'http://foo.com/path/to/index.html?orig#help' < $$i > $(srcdir)/result/URI/$$name ; \
255 256
	  else \
	      echo Testing $$name ; \
257
	      $(top_builddir)/testURI -base 'http://foo.com/path/to/index.html?orig#help' < $$i > result.$$name ; \
258 259 260 261
	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
	      diff $(srcdir)/result/URI/$$name result.$$name ; \
	      rm result.$$name ; \
	  fi ; fi ; done)
262 263 264 265 266 267 268 269 270 271 272 273 274
	@(for i in $(srcdir)/test/URI/*.uri ; do \
	  name=`basename $$i`; \
	  if [ ! -d $$i ] ; then \
	  if [ ! -f $(srcdir)/result/URI/$$name ] ; then \
	      echo New test file $$name ; \
	      $(top_builddir)/testURI < $$i > $(srcdir)/result/URI/$$name ; \
	  else \
	      echo Testing $$name ; \
	      $(top_builddir)/testURI < $$i > result.$$name ; \
	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
	      diff $(srcdir)/result/URI/$$name result.$$name ; \
	      rm result.$$name ; \
	  fi ; fi ; done)
275

276
XPathtests : testXPath
277
	@(echo > .memdump)
278 279 280
	@echo "##"
	@echo "## XPath regression tests"
	@echo "##"
281 282 283
	@(if [ "`$(top_builddir)/testXPath | grep 'support not compiled in'`" != "" ] ; \
	  then echo Skipping debug not compiled in ; exit 0 ; fi ; \
	  for i in $(srcdir)/test/XPath/expr/* ; do \
284
	  name=`basename $$i`; \
285
	  if [ ! -d $$i ] ; then \
286 287
	  if [ ! -f $(srcdir)/result/XPath/expr/$$name ] ; then \
	      echo New test file $$name ; \
288
	      $(top_builddir)/testXPath -f --expr $$i > $(srcdir)/result/XPath/expr/$$name ; \
289
	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
290
	  else \
291
	      echo Testing $$name ; \
292
	      $(top_builddir)/testXPath -f --expr $$i > result.$$name ; \
293
	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
294 295
	      diff $(srcdir)/result/XPath/expr/$$name result.$$name ; \
	      rm result.$$name ; \
296 297
	  fi ; fi ; done ; \
	  for i in $(srcdir)/test/XPath/docs/* ; do \
298
	  if [ ! -d $$i ] ; then \
299 300
	  doc=`basename $$i`; \
	  for j in $(srcdir)/test/XPath/tests/$$doc* ; do \
301
	  if [ ! -f $$j ] ; then continue ; fi ; \
302
	  name=`basename $$j`; \
303
	  if [ ! -d $$j ] ; then \
304 305
	  if [ ! -f $(srcdir)/result/XPath/tests/$$name ] ; then \
	      echo New test file $$name ; \
306
	      $(top_builddir)/testXPath -f -i $$i $$j > $(srcdir)/result/XPath/tests/$$name ; \
307
	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
308
	  else \
309
	      echo Testing $$name ; \
310
	      $(top_builddir)/testXPath -f -i $$i $$j > result.$$name ; \
311
	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
312 313
	      diff $(srcdir)/result/XPath/tests/$$name result.$$name ; \
	      rm result.$$name ; \
314 315
	  fi ; fi ; done ; fi ; done)

316
XPtrtests : testXPath
317
	@(echo > .memdump)
318 319 320
	@echo "##"
	@echo "## XPointer regression tests"
	@echo "##"
321 322 323
	@(if [ "`$(top_builddir)/testXPath | grep 'support not compiled in'`" != "" ] ; \
	  then echo Skipping debug not compiled in ; exit 0 ; fi ; \
	  for i in $(srcdir)/test/XPath/docs/* ; do \
324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340
	  if [ ! -d $$i ] ; then \
	  doc=`basename $$i`; \
	  for j in $(srcdir)/test/XPath/xptr/$$doc* ; do \
	  if [ ! -f $$j ] ; then continue ; fi ; \
	  name=`basename $$j`; \
	  if [ ! -d $$j ] ; then \
	  if [ ! -f $(srcdir)/result/XPath/xptr/$$name ] ; then \
	      echo New test file $$name ; \
	      ./testXPath -xptr -f -i $$i $$j > $(srcdir)/result/XPath/xptr/$$name ; \
	  else \
	      echo Testing $$name ; \
	      ./testXPath -xptr -f -i $$i $$j > result.$$name ; \
	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
	      diff $(srcdir)/result/XPath/xptr/$$name result.$$name ; \
	      rm result.$$name ; \
	  fi ; fi ; done ; fi ; done)

341
XIncludetests : xmllint
342
	@(echo > .memdump)
343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359
	@echo "##"
	@echo "## XInclude regression tests"
	@echo "##"
	@(for i in $(srcdir)/test/XInclude/docs/* ; do \
	  name=`basename $$i`; \
	  if [ ! -d $$i ] ; then \
	  if [ ! -f $(srcdir)/result/XInclude/$$name ] ; then \
	      echo New test file $$name ; \
	      $(top_builddir)/xmllint --xinclude $$i > $(srcdir)/result/XInclude/$$name ; \
	  else \
	      echo Testing $$name ; \
	      $(top_builddir)/xmllint --xinclude $$i > result.$$name ; \
	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
	      diff $(srcdir)/result/XInclude/$$name result.$$name ; \
	      rm result.$$name ; \
	  fi ; fi ; done)

360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380
Scripttests : xmllint
	@(echo > .memdump)
	@echo "##"
	@echo "## Scripts regression tests"
	@echo "## Some of the base computations may be different if srcdir != ."
	@echo "##"
	@(for i in $(srcdir)/test/scripts/*.script ; do \
	  name=`basename $$i .script`; \
	  xml=$(srcdir)/test/scripts/`basename $$i .script`.xml; \
	  if [ -f $$xml ] ; then \
	  if [ ! -f $(srcdir)/result/scripts/$$name ] ; then \
	      echo New test file $$name ; \
	      $(top_builddir)/xmllint --shell $$xml < $$i > $(srcdir)/result/scripts/$$name ; \
	  else \
	      echo Testing $$name ; \
	      $(top_builddir)/xmllint --shell $$xml < $$i > result.$$name ; \
	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
	      diff $(srcdir)/result/scripts/$$name result.$$name ; \
	      rm result.$$name ; \
	  fi ; fi ; done)

381
SVGtests : xmllint
382 383 384 385 386
	@echo "##"
	@echo "## SVG parsing regression tests"
	@echo "##"
	@(for i in $(srcdir)/test/SVG/* ; do \
	  name=`basename $$i`; \
387
	  if [ ! -d $$i ] ; then \
388 389
	  if [ ! -f $(srcdir)/result/SVG/$$name ] ; then \
	      echo New test file $$name ; \
390
	      $(top_builddir)/xmllint $$i > $(srcdir)/result/SVG/$$name ; \
391
	  else \
392
	      echo Testing $$name ; \
393
	      $(top_builddir)/xmllint $$i > result.$$name ; \
394
	      diff $(srcdir)/result/SVG/$$name result.$$name ; \
395
	      $(top_builddir)/xmllint result.$$name > result2.$$name ; \
396 397
	      diff result.$$name result2.$$name ; \
	      rm result.$$name result2.$$name ; \
398 399
	  fi ; fi ; done)

400
SAXtests : testSAX
401
	@(echo > .memdump)
402 403 404 405 406 407 408 409
	@echo "##"
	@echo "## SAX callbacks regression tests"
	@echo "##"
	@(for i in $(srcdir)/test/* ; do \
	  name=`basename $$i`; \
	  if [ ! -d $$i ] ; then \
	  if [ ! -f $(srcdir)/SAXresult/$$name ] ; then \
	      echo New test file $$name ; \
410
	      $(top_builddir)/testSAX $$i > $(srcdir)/SAXresult/$$name ; \
411 412
	  else \
	      echo Testing $$name ; \
413
	      $(top_builddir)/testSAX $$i > result.$$name ; \
414 415 416
	      diff $(srcdir)/SAXresult/$$name result.$$name ; \
	      rm result.$$name ; \
	  fi ; fi ; done)
417 418


419
Validtests : xmllint
420
	@(echo > .memdump)
421 422 423 424 425 426 427
	@echo "##"
	@echo "## Valid documents regression tests"
	@echo "##"
	@(for i in $(srcdir)/test/VCM/* ; do \
	  name=`basename $$i`; \
	  if [ ! -d $$i ] ; then \
	      echo Testing $$name ; \
428
	      $(top_builddir)/xmllint --valid --noout --nowarning $$i ; \
429 430
	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
	  fi ; done ; exit 0)
431 432 433 434 435 436 437 438
	@echo "##"
	@echo "## Validity checking regression tests"
	@echo "##"
	@(for i in $(srcdir)/test/VC/* ; do \
	  name=`basename $$i`; \
	  if [ ! -d $$i ] ; then \
	  if [ ! -f $(srcdir)/result/VC/$$name ] ; then \
	      echo New test file $$name ; \
439
	      $(top_builddir)/xmllint --noout --valid $$i 2> $(srcdir)/result/VC/$$name ; \
440 441
	  else \
	      echo Testing $$name ; \
442
	      $(top_builddir)/xmllint --noout --valid $$i 2> result.$$name ; \
443
	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
444 445 446 447
	      diff $(srcdir)/result/VC/$$name result.$$name ; \
	      rm result.$$name ; \
	  fi ; fi ; done)
	@echo "##"
448
	@echo "## General documents valid regression tests"
449 450 451 452 453 454
	@echo "##"
	@(for i in $(srcdir)/test/valid/* ; do \
	  name=`basename $$i`; \
	  if [ ! -d $$i ] ; then \
	  if [ ! -f $(srcdir)/result/valid/$$name ] ; then \
	      echo New test file $$name ; \
455
	      $(top_builddir)/xmllint --valid $$i > $(srcdir)/result/valid/$$name 2>$(srcdir)/result/valid/$$name.err ; \
456 457
	  else \
	      echo Testing $$name ; \
458
	      $(top_builddir)/xmllint --valid $$i > result.$$name 2>error.$$name ; \
459
	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
460
	      diff $(srcdir)/result/valid/$$name result.$$name ; \
461 462
	      diff $(srcdir)/result/valid/$$name.err error.$$name ; \
	      rm result.$$name error.$$name ; \
463
	  fi ; fi ; done)
464

465
dist-hook: libxml.spec
Daniel Veillard's avatar
Daniel Veillard committed
466 467
	-cp libxml.spec $(distdir)
	(cd $(srcdir) ; tar -cf - --exclude CVS test result SAXresult ) | (cd $(distdir); tar xf -)
468

469 470 471 472
cleantar:
	@(rm -f libxslt*.tar.gz)

rpm: cleantar distcheck
473
	rpm -ta $(distdir).tar.gz
474 475 476 477 478 479 480 481 482 483 484 485 486

## We create xml2Conf.sh here and not from configure because we want
## to get the paths expanded correctly.  Macros like srcdir are given
## the value NONE in configure if the user doesn't specify them (this
## is an autoconf feature, not a bug).

confexecdir=$(libdir)
confexec_DATA = xml2Conf.sh

CLEANFILES=xml2Conf.sh

confexecdir=$(libdir)
confexec_DATA = xml2Conf.sh
487 488
EXTRA_DIST = xml2-config.in xml2Conf.sh.in libxml.spec.in libxml.spec \
             libxml.m4 \
489
             example/Makefile.am example/gjobread.c example/gjobs.xml \
490
	     $(man_MANS) libxml-2.0.pc.in \
491 492
	     win32/README.MSDev win32/Makefile.mingw \
	     win32/libxml2/libxml2.dsp win32/libxml2/libxml2_so.dsp \
493 494
	     win32/libxml2/libxml2_a.dsp win32/libxml2/xmllint.dsp \
	     win32/libxml2/libxml2.def.src \
495
	     vms/build_libxml.com vms/config.vms \
496
	     strio.c strio.h trio.c trio.h triop.h libxml.h
497 498 499 500 501 502 503 504 505 506 507 508

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libxml-2.0.pc

#xml2Conf.sh: xml2Conf.sh.in Makefile
### Use sed and then mv to avoid problems if the user interrupts.
#	sed -e 's?\@XML_LIBDIR\@?$(XML_LIBDIR)?g' \
#	    -e 's?\@XML_INCLUDEDIR\@?$(XML_INCLUDEDIR)?g' \
#	    -e 's?\@XML_LIBS\@?$(XML_LIBS)?g' \
#	    -e 's?\@VERSION\@?$(VERSION)?g' \
#	      < $(srcdir)/xml2Conf.sh.in > xml2Conf.tmp \
#	  && mv xml2Conf.tmp xml2Conf.sh