VirtualBox

source: vbox/trunk/src/libs/libxml2-2.6.31/Makefile.in@ 41752

最後變更 在這個檔案從41752是 39923,由 vboxsync 提交於 13 年 前

libxml-2.6.31 unmodified, files forgotten in r75989

  • 屬性 svn:eol-style 設為 native
檔案大小: 103.2 KB
 
1# Makefile.in generated by automake 1.10 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16
17
18
19
20VPATH = @srcdir@
21pkgdatadir = $(datadir)/@PACKAGE@
22pkglibdir = $(libdir)/@PACKAGE@
23pkgincludedir = $(includedir)/@PACKAGE@
24am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
25install_sh_DATA = $(install_sh) -c -m 644
26install_sh_PROGRAM = $(install_sh) -c
27install_sh_SCRIPT = $(install_sh) -c
28INSTALL_HEADER = $(INSTALL_DATA)
29transform = $(program_transform_name)
30NORMAL_INSTALL = :
31PRE_INSTALL = :
32POST_INSTALL = :
33NORMAL_UNINSTALL = :
34PRE_UNINSTALL = :
35POST_UNINSTALL = :
36build_triplet = @build@
37host_triplet = @host@
38noinst_PROGRAMS = testSchemas$(EXEEXT) testRelax$(EXEEXT) \
39 testSAX$(EXEEXT) testHTML$(EXEEXT) testXPath$(EXEEXT) \
40 testURI$(EXEEXT) testThreads$(EXEEXT) testC14N$(EXEEXT) \
41 testAutomata$(EXEEXT) testRegexp$(EXEEXT) testReader$(EXEEXT) \
42 testapi$(EXEEXT) testModule$(EXEEXT) runtest$(EXEEXT) \
43 runsuite$(EXEEXT)
44bin_PROGRAMS = xmllint$(EXEEXT) xmlcatalog$(EXEEXT)
45subdir = .
46DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
47 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
48 $(srcdir)/libxml-2.0-uninstalled.pc.in \
49 $(srcdir)/libxml-2.0.pc.in $(srcdir)/libxml.spec.in \
50 $(srcdir)/xml2-config.in $(top_srcdir)/configure AUTHORS \
51 COPYING ChangeLog INSTALL NEWS TODO acconfig.h config.guess \
52 config.sub depcomp install-sh ltmain.sh missing mkinstalldirs
53ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
54am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
55 $(top_srcdir)/configure.in
56am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
57 $(ACLOCAL_M4)
58am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
59 configure.lineno config.status.lineno
60mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
61CONFIG_HEADER = config.h
62CONFIG_CLEAN_FILES = libxml2.spec xml2-config libxml-2.0.pc \
63 libxml-2.0-uninstalled.pc
64am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
65am__vpath_adj = case $$p in \
66 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
67 *) f=$$p;; \
68 esac;
69am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
70am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" \
71 "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" \
72 "$(DESTDIR)$(man3dir)" "$(DESTDIR)$(confexecdir)" \
73 "$(DESTDIR)$(m4datadir)" "$(DESTDIR)$(pkgconfigdir)"
74libLTLIBRARIES_INSTALL = $(INSTALL)
75LTLIBRARIES = $(lib_LTLIBRARIES) $(noinst_LTLIBRARIES)
76am__DEPENDENCIES_1 =
77libxml2_la_DEPENDENCIES = $(am__DEPENDENCIES_1)
78am__libxml2_la_SOURCES_DIST = SAX.c entities.c encoding.c error.c \
79 parserInternals.c parser.c tree.c hash.c list.c xmlIO.c \
80 xmlmemory.c uri.c valid.c xlink.c HTMLparser.c HTMLtree.c \
81 debugXML.c xpath.c xpointer.c xinclude.c nanohttp.c nanoftp.c \
82 DOCBparser.c catalog.c globals.c threads.c c14n.c xmlstring.c \
83 xmlregexp.c xmlschemas.c xmlschemastypes.c xmlunicode.c \
84 xmlreader.c relaxng.c dict.c SAX2.c xmlwriter.c legacy.c \
85 chvalid.c pattern.c xmlsave.c xmlmodule.c schematron.c \
86 triostr.c trio.c
87@WITH_TRIO_SOURCES_FALSE@am_libxml2_la_OBJECTS = SAX.lo entities.lo \
88@WITH_TRIO_SOURCES_FALSE@ encoding.lo error.lo \
89@WITH_TRIO_SOURCES_FALSE@ parserInternals.lo parser.lo tree.lo \
90@WITH_TRIO_SOURCES_FALSE@ hash.lo list.lo xmlIO.lo xmlmemory.lo \
91@WITH_TRIO_SOURCES_FALSE@ uri.lo valid.lo xlink.lo \
92@WITH_TRIO_SOURCES_FALSE@ HTMLparser.lo HTMLtree.lo debugXML.lo \
93@WITH_TRIO_SOURCES_FALSE@ xpath.lo xpointer.lo xinclude.lo \
94@WITH_TRIO_SOURCES_FALSE@ nanohttp.lo nanoftp.lo DOCBparser.lo \
95@WITH_TRIO_SOURCES_FALSE@ catalog.lo globals.lo threads.lo \
96@WITH_TRIO_SOURCES_FALSE@ c14n.lo xmlstring.lo xmlregexp.lo \
97@WITH_TRIO_SOURCES_FALSE@ xmlschemas.lo xmlschemastypes.lo \
98@WITH_TRIO_SOURCES_FALSE@ xmlunicode.lo xmlreader.lo relaxng.lo \
99@WITH_TRIO_SOURCES_FALSE@ dict.lo SAX2.lo xmlwriter.lo \
100@WITH_TRIO_SOURCES_FALSE@ legacy.lo chvalid.lo pattern.lo \
101@WITH_TRIO_SOURCES_FALSE@ xmlsave.lo xmlmodule.lo schematron.lo
102@WITH_TRIO_SOURCES_TRUE@am_libxml2_la_OBJECTS = SAX.lo entities.lo \
103@WITH_TRIO_SOURCES_TRUE@ encoding.lo error.lo \
104@WITH_TRIO_SOURCES_TRUE@ parserInternals.lo parser.lo tree.lo \
105@WITH_TRIO_SOURCES_TRUE@ hash.lo list.lo xmlIO.lo xmlmemory.lo \
106@WITH_TRIO_SOURCES_TRUE@ uri.lo valid.lo xlink.lo HTMLparser.lo \
107@WITH_TRIO_SOURCES_TRUE@ HTMLtree.lo debugXML.lo xpath.lo \
108@WITH_TRIO_SOURCES_TRUE@ xpointer.lo xinclude.lo nanohttp.lo \
109@WITH_TRIO_SOURCES_TRUE@ nanoftp.lo DOCBparser.lo catalog.lo \
110@WITH_TRIO_SOURCES_TRUE@ globals.lo threads.lo c14n.lo \
111@WITH_TRIO_SOURCES_TRUE@ xmlstring.lo xmlregexp.lo \
112@WITH_TRIO_SOURCES_TRUE@ xmlschemas.lo xmlschemastypes.lo \
113@WITH_TRIO_SOURCES_TRUE@ xmlunicode.lo triostr.lo trio.lo \
114@WITH_TRIO_SOURCES_TRUE@ xmlreader.lo relaxng.lo dict.lo \
115@WITH_TRIO_SOURCES_TRUE@ SAX2.lo xmlwriter.lo legacy.lo \
116@WITH_TRIO_SOURCES_TRUE@ chvalid.lo pattern.lo xmlsave.lo \
117@WITH_TRIO_SOURCES_TRUE@ xmlmodule.lo schematron.lo
118libxml2_la_OBJECTS = $(am_libxml2_la_OBJECTS)
119libxml2_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
120 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
121 $(libxml2_la_LDFLAGS) $(LDFLAGS) -o $@
122testdso_la_LIBADD =
123am_testdso_la_OBJECTS = testdso.lo
124testdso_la_OBJECTS = $(am_testdso_la_OBJECTS)
125testdso_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
126 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
127 $(testdso_la_LDFLAGS) $(LDFLAGS) -o $@
128binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
129PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS)
130am_runsuite_OBJECTS = runsuite.$(OBJEXT)
131runsuite_OBJECTS = $(am_runsuite_OBJECTS)
132am__DEPENDENCIES_2 = $(top_builddir)/libxml2.la $(am__DEPENDENCIES_1)
133runsuite_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
134 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(runsuite_LDFLAGS) \
135 $(LDFLAGS) -o $@
136am_runtest_OBJECTS = runtest.$(OBJEXT)
137runtest_OBJECTS = $(am_runtest_OBJECTS)
138runtest_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
139 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(runtest_LDFLAGS) \
140 $(LDFLAGS) -o $@
141am_testAutomata_OBJECTS = testAutomata.$(OBJEXT)
142testAutomata_OBJECTS = $(am_testAutomata_OBJECTS)
143testAutomata_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
144 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
145 $(testAutomata_LDFLAGS) $(LDFLAGS) -o $@
146am_testC14N_OBJECTS = testC14N.$(OBJEXT)
147testC14N_OBJECTS = $(am_testC14N_OBJECTS)
148testC14N_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
149 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(testC14N_LDFLAGS) \
150 $(LDFLAGS) -o $@
151am_testHTML_OBJECTS = testHTML.$(OBJEXT)
152testHTML_OBJECTS = $(am_testHTML_OBJECTS)
153testHTML_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
154 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(testHTML_LDFLAGS) \
155 $(LDFLAGS) -o $@
156am_testModule_OBJECTS = testModule.$(OBJEXT)
157testModule_OBJECTS = $(am_testModule_OBJECTS)
158testModule_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
159 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
160 $(testModule_LDFLAGS) $(LDFLAGS) -o $@
161am_testReader_OBJECTS = testReader.$(OBJEXT)
162testReader_OBJECTS = $(am_testReader_OBJECTS)
163testReader_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
164 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
165 $(testReader_LDFLAGS) $(LDFLAGS) -o $@
166am_testRegexp_OBJECTS = testRegexp.$(OBJEXT)
167testRegexp_OBJECTS = $(am_testRegexp_OBJECTS)
168testRegexp_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
169 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
170 $(testRegexp_LDFLAGS) $(LDFLAGS) -o $@
171am_testRelax_OBJECTS = testRelax.$(OBJEXT)
172testRelax_OBJECTS = $(am_testRelax_OBJECTS)
173testRelax_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
174 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
175 $(testRelax_LDFLAGS) $(LDFLAGS) -o $@
176am_testSAX_OBJECTS = testSAX.$(OBJEXT)
177testSAX_OBJECTS = $(am_testSAX_OBJECTS)
178testSAX_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
179 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(testSAX_LDFLAGS) \
180 $(LDFLAGS) -o $@
181am_testSchemas_OBJECTS = testSchemas.$(OBJEXT)
182testSchemas_OBJECTS = $(am_testSchemas_OBJECTS)
183testSchemas_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
184 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
185 $(testSchemas_LDFLAGS) $(LDFLAGS) -o $@
186am_testThreads_OBJECTS = testThreads@THREADS_W32@.$(OBJEXT)
187testThreads_OBJECTS = $(am_testThreads_OBJECTS)
188testThreads_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
189 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
190 $(testThreads_LDFLAGS) $(LDFLAGS) -o $@
191am_testURI_OBJECTS = testURI.$(OBJEXT)
192testURI_OBJECTS = $(am_testURI_OBJECTS)
193testURI_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
194 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(testURI_LDFLAGS) \
195 $(LDFLAGS) -o $@
196am_testXPath_OBJECTS = testXPath.$(OBJEXT)
197testXPath_OBJECTS = $(am_testXPath_OBJECTS)
198testXPath_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
199 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
200 $(testXPath_LDFLAGS) $(LDFLAGS) -o $@
201am_testapi_OBJECTS = testapi.$(OBJEXT)
202testapi_OBJECTS = $(am_testapi_OBJECTS)
203testapi_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
204 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(testapi_LDFLAGS) \
205 $(LDFLAGS) -o $@
206am_xmlcatalog_OBJECTS = xmlcatalog.$(OBJEXT)
207xmlcatalog_OBJECTS = $(am_xmlcatalog_OBJECTS)
208xmlcatalog_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
209 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
210 $(xmlcatalog_LDFLAGS) $(LDFLAGS) -o $@
211am_xmllint_OBJECTS = xmllint.$(OBJEXT)
212xmllint_OBJECTS = $(am_xmllint_OBJECTS)
213xmllint_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
214 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(xmllint_LDFLAGS) \
215 $(LDFLAGS) -o $@
216binSCRIPT_INSTALL = $(INSTALL_SCRIPT)
217SCRIPTS = $(bin_SCRIPTS)
218DEFAULT_INCLUDES = -I.@am__isrc@
219depcomp = $(SHELL) $(top_srcdir)/depcomp
220am__depfiles_maybe = depfiles
221COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
222 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
223LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
224 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
225 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
226CCLD = $(CC)
227LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
228 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
229 $(LDFLAGS) -o $@
230SOURCES = $(libxml2_la_SOURCES) $(testdso_la_SOURCES) \
231 $(runsuite_SOURCES) $(runtest_SOURCES) $(testAutomata_SOURCES) \
232 $(testC14N_SOURCES) $(testHTML_SOURCES) $(testModule_SOURCES) \
233 $(testReader_SOURCES) $(testRegexp_SOURCES) \
234 $(testRelax_SOURCES) $(testSAX_SOURCES) $(testSchemas_SOURCES) \
235 $(testThreads_SOURCES) $(testURI_SOURCES) $(testXPath_SOURCES) \
236 $(testapi_SOURCES) $(xmlcatalog_SOURCES) $(xmllint_SOURCES)
237DIST_SOURCES = $(am__libxml2_la_SOURCES_DIST) $(testdso_la_SOURCES) \
238 $(runsuite_SOURCES) $(runtest_SOURCES) $(testAutomata_SOURCES) \
239 $(testC14N_SOURCES) $(testHTML_SOURCES) $(testModule_SOURCES) \
240 $(testReader_SOURCES) $(testRegexp_SOURCES) \
241 $(testRelax_SOURCES) $(testSAX_SOURCES) $(testSchemas_SOURCES) \
242 $(testThreads_SOURCES) $(testURI_SOURCES) $(testXPath_SOURCES) \
243 $(testapi_SOURCES) $(xmlcatalog_SOURCES) $(xmllint_SOURCES)
244RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
245 html-recursive info-recursive install-data-recursive \
246 install-dvi-recursive install-exec-recursive \
247 install-html-recursive install-info-recursive \
248 install-pdf-recursive install-ps-recursive install-recursive \
249 installcheck-recursive installdirs-recursive pdf-recursive \
250 ps-recursive uninstall-recursive
251man1dir = $(mandir)/man1
252man3dir = $(mandir)/man3
253NROFF = nroff
254MANS = $(man_MANS)
255confexecDATA_INSTALL = $(INSTALL_DATA)
256m4dataDATA_INSTALL = $(INSTALL_DATA)
257pkgconfigDATA_INSTALL = $(INSTALL_DATA)
258DATA = $(confexec_DATA) $(m4data_DATA) $(pkgconfig_DATA)
259RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
260 distclean-recursive maintainer-clean-recursive
261ETAGS = etags
262CTAGS = ctags
263DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
264distdir = $(PACKAGE)-$(VERSION)
265top_distdir = $(distdir)
266am__remove_distdir = \
267 { test ! -d $(distdir) \
268 || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
269 && rm -fr $(distdir); }; }
270DIST_ARCHIVES = $(distdir).tar.gz
271GZIP_ENV = --best
272distuninstallcheck_listfiles = find . -type f -print
273distcleancheck_listfiles = find . -type f -print
274ACLOCAL = @ACLOCAL@
275AMTAR = @AMTAR@
276AR = @AR@
277AS = @AS@
278AUTOCONF = @AUTOCONF@
279AUTOHEADER = @AUTOHEADER@
280AUTOMAKE = @AUTOMAKE@
281AWK = @AWK@
282BASE_THREAD_LIBS = @BASE_THREAD_LIBS@
283C14N_OBJ = @C14N_OBJ@
284CATALOG_OBJ = @CATALOG_OBJ@
285CC = @CC@
286CCDEPMODE = @CCDEPMODE@
287CFLAGS = @CFLAGS@
288CPP = @CPP@
289CPPFLAGS = @CPPFLAGS@
290CXX = @CXX@
291CXXCPP = @CXXCPP@
292CXXDEPMODE = @CXXDEPMODE@
293CXXFLAGS = @CXXFLAGS@
294CYGPATH_W = @CYGPATH_W@
295CYGWIN_EXTRA_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@
296CYGWIN_EXTRA_PYTHON_LIBADD = @CYGWIN_EXTRA_PYTHON_LIBADD@
297DEBUG_OBJ = @DEBUG_OBJ@
298DEFS = @DEFS@
299DEPDIR = @DEPDIR@
300DLLTOOL = @DLLTOOL@
301DOCB_OBJ = @DOCB_OBJ@
302ECHO = @ECHO@
303ECHO_C = @ECHO_C@
304ECHO_N = @ECHO_N@
305ECHO_T = @ECHO_T@
306EGREP = @EGREP@
307EXEEXT = @EXEEXT@
308F77 = @F77@
309FFLAGS = @FFLAGS@
310FTP_OBJ = @FTP_OBJ@
311GREP = @GREP@
312HAVE_ISINF = @HAVE_ISINF@
313HAVE_ISNAN = @HAVE_ISNAN@
314HTML_DIR = @HTML_DIR@
315HTML_OBJ = @HTML_OBJ@
316HTTP_OBJ = @HTTP_OBJ@
317ICONV_LIBS = @ICONV_LIBS@
318INSTALL = @INSTALL@
319INSTALL_DATA = @INSTALL_DATA@
320INSTALL_PROGRAM = @INSTALL_PROGRAM@
321INSTALL_SCRIPT = @INSTALL_SCRIPT@
322INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
323LDFLAGS = @LDFLAGS@
324LIBOBJS = @LIBOBJS@
325LIBS = @LIBS@
326LIBTOOL = @LIBTOOL@
327LIBXML_MAJOR_VERSION = @LIBXML_MAJOR_VERSION@
328LIBXML_MICRO_VERSION = @LIBXML_MICRO_VERSION@
329LIBXML_MINOR_VERSION = @LIBXML_MINOR_VERSION@
330LIBXML_VERSION = @LIBXML_VERSION@
331LIBXML_VERSION_EXTRA = @LIBXML_VERSION_EXTRA@
332LIBXML_VERSION_INFO = @LIBXML_VERSION_INFO@
333LIBXML_VERSION_NUMBER = @LIBXML_VERSION_NUMBER@
334LN_S = @LN_S@
335LTLIBOBJS = @LTLIBOBJS@
336MAKEINFO = @MAKEINFO@
337MKDIR_P = @MKDIR_P@
338MODULE_EXTENSION = @MODULE_EXTENSION@
339MODULE_PLATFORM_LIBS = @MODULE_PLATFORM_LIBS@
340MV = @MV@
341M_LIBS = @M_LIBS@
342OBJDUMP = @OBJDUMP@
343OBJEXT = @OBJEXT@
344PACKAGE = @PACKAGE@
345PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
346PACKAGE_NAME = @PACKAGE_NAME@
347PACKAGE_STRING = @PACKAGE_STRING@
348PACKAGE_TARNAME = @PACKAGE_TARNAME@
349PACKAGE_VERSION = @PACKAGE_VERSION@
350PATH_SEPARATOR = @PATH_SEPARATOR@
351PERL = @PERL@
352PYTHON = @PYTHON@
353PYTHON_INCLUDES = @PYTHON_INCLUDES@
354PYTHON_SITE_PACKAGES = @PYTHON_SITE_PACKAGES@
355PYTHON_SUBDIR = @PYTHON_SUBDIR@
356PYTHON_TESTS = @PYTHON_TESTS@
357PYTHON_VERSION = @PYTHON_VERSION@
358RANLIB = @RANLIB@
359RDL_LIBS = @RDL_LIBS@
360READER_TEST = @READER_TEST@
361RELDATE = @RELDATE@
362RM = @RM@
363SED = @SED@
364SET_MAKE = @SET_MAKE@
365SHELL = @SHELL@
366STATIC_BINARIES = @STATIC_BINARIES@
367STRIP = @STRIP@
368TAR = @TAR@
369TEST_C14N = @TEST_C14N@
370TEST_CATALOG = @TEST_CATALOG@
371TEST_DEBUG = @TEST_DEBUG@
372TEST_HTML = @TEST_HTML@
373TEST_MODULES = @TEST_MODULES@
374TEST_PATTERN = @TEST_PATTERN@
375TEST_PHTML = @TEST_PHTML@
376TEST_PUSH = @TEST_PUSH@
377TEST_REGEXPS = @TEST_REGEXPS@
378TEST_SAX = @TEST_SAX@
379TEST_SCHEMAS = @TEST_SCHEMAS@
380TEST_SCHEMATRON = @TEST_SCHEMATRON@
381TEST_THREADS = @TEST_THREADS@
382TEST_VALID = @TEST_VALID@
383TEST_VTIME = @TEST_VTIME@
384TEST_XINCLUDE = @TEST_XINCLUDE@
385TEST_XPATH = @TEST_XPATH@
386TEST_XPTR = @TEST_XPTR@
387THREADS_W32 = @THREADS_W32@
388THREAD_CFLAGS = @THREAD_CFLAGS@
389THREAD_LIBS = @THREAD_LIBS@
390U = @U@
391VERSION = @VERSION@
392WGET = @WGET@
393WIN32_EXTRA_LDFLAGS = @WIN32_EXTRA_LDFLAGS@
394WIN32_EXTRA_LIBADD = @WIN32_EXTRA_LIBADD@
395WITH_C14N = @WITH_C14N@
396WITH_CATALOG = @WITH_CATALOG@
397WITH_DEBUG = @WITH_DEBUG@
398WITH_DOCB = @WITH_DOCB@
399WITH_FTP = @WITH_FTP@
400WITH_HTML = @WITH_HTML@
401WITH_HTTP = @WITH_HTTP@
402WITH_ICONV = @WITH_ICONV@
403WITH_ISO8859X = @WITH_ISO8859X@
404WITH_LEGACY = @WITH_LEGACY@
405WITH_MEM_DEBUG = @WITH_MEM_DEBUG@
406WITH_MODULES = @WITH_MODULES@
407WITH_OUTPUT = @WITH_OUTPUT@
408WITH_PATTERN = @WITH_PATTERN@
409WITH_PUSH = @WITH_PUSH@
410WITH_READER = @WITH_READER@
411WITH_REGEXPS = @WITH_REGEXPS@
412WITH_RUN_DEBUG = @WITH_RUN_DEBUG@
413WITH_SAX1 = @WITH_SAX1@
414WITH_SCHEMAS = @WITH_SCHEMAS@
415WITH_SCHEMATRON = @WITH_SCHEMATRON@
416WITH_THREADS = @WITH_THREADS@
417WITH_TREE = @WITH_TREE@
418WITH_TRIO = @WITH_TRIO@
419WITH_VALID = @WITH_VALID@
420WITH_WRITER = @WITH_WRITER@
421WITH_XINCLUDE = @WITH_XINCLUDE@
422WITH_XPATH = @WITH_XPATH@
423WITH_XPTR = @WITH_XPTR@
424WITH_ZLIB = @WITH_ZLIB@
425XINCLUDE_OBJ = @XINCLUDE_OBJ@
426XMLLINT = @XMLLINT@
427XML_CFLAGS = @XML_CFLAGS@
428XML_INCLUDEDIR = @XML_INCLUDEDIR@
429XML_LIBDIR = @XML_LIBDIR@
430XML_LIBS = @XML_LIBS@
431XML_LIBTOOLLIBS = @XML_LIBTOOLLIBS@
432XPATH_OBJ = @XPATH_OBJ@
433XPTR_OBJ = @XPTR_OBJ@
434XSLTPROC = @XSLTPROC@
435Z_CFLAGS = @Z_CFLAGS@
436Z_LIBS = @Z_LIBS@
437abs_builddir = @abs_builddir@
438abs_srcdir = @abs_srcdir@
439abs_top_builddir = @abs_top_builddir@
440abs_top_srcdir = @abs_top_srcdir@
441ac_ct_CC = @ac_ct_CC@
442ac_ct_CXX = @ac_ct_CXX@
443ac_ct_F77 = @ac_ct_F77@
444am__include = @am__include@
445am__leading_dot = @am__leading_dot@
446am__quote = @am__quote@
447am__tar = @am__tar@
448am__untar = @am__untar@
449bindir = @bindir@
450build = @build@
451build_alias = @build_alias@
452build_cpu = @build_cpu@
453build_os = @build_os@
454build_vendor = @build_vendor@
455builddir = @builddir@
456datadir = @datadir@
457datarootdir = @datarootdir@
458docdir = @docdir@
459dvidir = @dvidir@
460exec_prefix = @exec_prefix@
461host = @host@
462host_alias = @host_alias@
463host_cpu = @host_cpu@
464host_os = @host_os@
465host_vendor = @host_vendor@
466htmldir = @htmldir@
467includedir = @includedir@
468infodir = @infodir@
469install_sh = @install_sh@
470libdir = @libdir@
471libexecdir = @libexecdir@
472localedir = @localedir@
473localstatedir = @localstatedir@
474mandir = @mandir@
475mkdir_p = @mkdir_p@
476oldincludedir = @oldincludedir@
477pdfdir = @pdfdir@
478prefix = @prefix@
479program_transform_name = @program_transform_name@
480psdir = @psdir@
481pythondir = @pythondir@
482sbindir = @sbindir@
483sharedstatedir = @sharedstatedir@
484srcdir = @srcdir@
485sysconfdir = @sysconfdir@
486target_alias = @target_alias@
487top_builddir = @top_builddir@
488top_srcdir = @top_srcdir@
489SUBDIRS = include . doc example xstc @PYTHON_SUBDIR@
490DIST_SUBDIRS = include . doc example python xstc
491INCLUDES = -I$(top_builddir)/include -I@srcdir@/include @THREAD_CFLAGS@ @Z_CFLAGS@
492bin_SCRIPTS = xml2-config
493lib_LTLIBRARIES = libxml2.la
494libxml2_la_LIBADD = @THREAD_LIBS@ @Z_LIBS@ $(ICONV_LIBS) @M_LIBS@ @WIN32_EXTRA_LIBADD@
495libxml2_la_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@ @WIN32_EXTRA_LDFLAGS@ -version-info @LIBXML_VERSION_INFO@ @MODULE_PLATFORM_LIBS@
496@WITH_TRIO_SOURCES_FALSE@libxml2_la_SOURCES = SAX.c entities.c encoding.c error.c parserInternals.c \
497@WITH_TRIO_SOURCES_FALSE@ parser.c tree.c hash.c list.c xmlIO.c xmlmemory.c uri.c \
498@WITH_TRIO_SOURCES_FALSE@ valid.c xlink.c HTMLparser.c HTMLtree.c debugXML.c xpath.c \
499@WITH_TRIO_SOURCES_FALSE@ xpointer.c xinclude.c nanohttp.c nanoftp.c DOCBparser.c \
500@WITH_TRIO_SOURCES_FALSE@ catalog.c globals.c threads.c c14n.c xmlstring.c \
501@WITH_TRIO_SOURCES_FALSE@ xmlregexp.c xmlschemas.c xmlschemastypes.c xmlunicode.c \
502@WITH_TRIO_SOURCES_FALSE@ xmlreader.c relaxng.c dict.c SAX2.c \
503@WITH_TRIO_SOURCES_FALSE@ xmlwriter.c legacy.c chvalid.c pattern.c xmlsave.c \
504@WITH_TRIO_SOURCES_FALSE@ xmlmodule.c schematron.c
505
506@WITH_TRIO_SOURCES_TRUE@libxml2_la_SOURCES = SAX.c entities.c encoding.c error.c parserInternals.c \
507@WITH_TRIO_SOURCES_TRUE@ parser.c tree.c hash.c list.c xmlIO.c xmlmemory.c uri.c \
508@WITH_TRIO_SOURCES_TRUE@ valid.c xlink.c HTMLparser.c HTMLtree.c debugXML.c xpath.c \
509@WITH_TRIO_SOURCES_TRUE@ xpointer.c xinclude.c nanohttp.c nanoftp.c DOCBparser.c \
510@WITH_TRIO_SOURCES_TRUE@ catalog.c globals.c threads.c c14n.c xmlstring.c \
511@WITH_TRIO_SOURCES_TRUE@ xmlregexp.c xmlschemas.c xmlschemastypes.c xmlunicode.c \
512@WITH_TRIO_SOURCES_TRUE@ triostr.c trio.c xmlreader.c relaxng.c dict.c SAX2.c \
513@WITH_TRIO_SOURCES_TRUE@ xmlwriter.c legacy.c chvalid.c pattern.c xmlsave.c \
514@WITH_TRIO_SOURCES_TRUE@ xmlmodule.c schematron.c
515
516DEPS = $(top_builddir)/libxml2.la
517LDADDS = @STATIC_BINARIES@ $(top_builddir)/libxml2.la @THREAD_LIBS@ @Z_LIBS@ $(ICONV_LIBS) @M_LIBS@ @WIN32_EXTRA_LIBADD@
518man_MANS = xml2-config.1 libxml.3
519m4datadir = $(datadir)/aclocal
520m4data_DATA = libxml.m4
521runtest_SOURCES = runtest.c
522runtest_LDFLAGS =
523runtest_DEPENDENCIES = $(DEPS)
524runtest_LDADD = @BASE_THREAD_LIBS@ @RDL_LIBS@ $(LDADDS)
525runsuite_SOURCES = runsuite.c
526runsuite_LDFLAGS =
527runsuite_DEPENDENCIES = $(DEPS)
528runsuite_LDADD = @RDL_LIBS@ $(LDADDS)
529xmllint_SOURCES = xmllint.c
530xmllint_LDFLAGS =
531xmllint_DEPENDENCIES = $(DEPS)
532xmllint_LDADD = @RDL_LIBS@ $(LDADDS)
533testSAX_SOURCES = testSAX.c
534testSAX_LDFLAGS =
535testSAX_DEPENDENCIES = $(DEPS)
536testSAX_LDADD = $(LDADDS)
537testHTML_SOURCES = testHTML.c
538testHTML_LDFLAGS =
539testHTML_DEPENDENCIES = $(DEPS)
540testHTML_LDADD = $(LDADDS)
541xmlcatalog_SOURCES = xmlcatalog.c
542xmlcatalog_LDFLAGS =
543xmlcatalog_DEPENDENCIES = $(DEPS)
544xmlcatalog_LDADD = @RDL_LIBS@ $(LDADDS)
545testXPath_SOURCES = testXPath.c
546testXPath_LDFLAGS =
547testXPath_DEPENDENCIES = $(DEPS)
548testXPath_LDADD = $(LDADDS)
549testC14N_SOURCES = testC14N.c
550testC14N_LDFLAGS =
551testC14N_DEPENDENCIES = $(DEPS)
552testC14N_LDADD = $(LDADDS)
553testThreads_SOURCES = testThreads@[email protected]
554testThreads_LDFLAGS =
555testThreads_DEPENDENCIES = $(DEPS)
556testThreads_LDADD = @BASE_THREAD_LIBS@ $(LDADDS)
557testURI_SOURCES = testURI.c
558testURI_LDFLAGS =
559testURI_DEPENDENCIES = $(DEPS)
560testURI_LDADD = $(LDADDS)
561testRegexp_SOURCES = testRegexp.c
562testRegexp_LDFLAGS =
563testRegexp_DEPENDENCIES = $(DEPS)
564testRegexp_LDADD = $(LDADDS)
565testAutomata_SOURCES = testAutomata.c
566testAutomata_LDFLAGS =
567testAutomata_DEPENDENCIES = $(DEPS)
568testAutomata_LDADD = $(LDADDS)
569testSchemas_SOURCES = testSchemas.c
570testSchemas_LDFLAGS =
571testSchemas_DEPENDENCIES = $(DEPS)
572testSchemas_LDADD = $(LDADDS)
573testRelax_SOURCES = testRelax.c
574testRelax_LDFLAGS =
575testRelax_DEPENDENCIES = $(DEPS)
576testRelax_LDADD = $(LDADDS)
577testReader_SOURCES = testReader.c
578testReader_LDFLAGS =
579testReader_DEPENDENCIES = $(DEPS)
580testReader_LDADD = $(LDADDS)
581testModule_SOURCES = testModule.c
582testModule_LDFLAGS =
583testModule_DEPENDENCIES = $(DEPS)
584testModule_LDADD = $(LDADDS)
585noinst_LTLIBRARIES = testdso.la
586testdso_la_SOURCES = testdso.c
587testdso_la_LDFLAGS = -module -rpath $(libdir)
588testapi_SOURCES = testapi.c
589testapi_LDFLAGS =
590testapi_DEPENDENCIES = $(DEPS)
591testapi_LDADD = $(LDADDS)
592CLEANFILES = xml2Conf.sh
593confexecdir = $(libdir)
594confexec_DATA = xml2Conf.sh
595CVS_EXTRA_DIST =
596EXTRA_DIST = xml2-config.in xml2Conf.sh.in libxml.spec.in libxml2.spec \
597 libxml.m4 Copyright check-xml-test-suite.py gentest.py \
598 check-relaxng-test-suite.py check-relaxng-test-suite2.py \
599 check-xsddata-test-suite.py check-xinclude-test-suite.py \
600 example/Makefile.am example/gjobread.c example/gjobs.xml \
601 $(man_MANS) libxml-2.0.pc.in libxml-2.0-uninstalled.pc.in \
602 trionan.c trionan.h triostr.c triostr.h trio.c trio.h \
603 triop.h triodef.h libxml.h elfgcchack.h \
604 testThreadsWin32.c genUnicode.py TODO_SCHEMAS \
605 dbgen.pl dbgenattr.pl regressions.py regressions.xml \
606 README.tests Makefile.tests \
607 $(CVS_EXTRA_DIST)
608
609pkgconfigdir = $(libdir)/pkgconfig
610pkgconfig_DATA = libxml-2.0.pc
611
612#
613# Install the tests program sources as examples
614#
615BASE_DIR = $(datadir)/doc
616DOC_MODULE = libxml2-$(VERSION)
617EXAMPLES_DIR = $(BASE_DIR)/$(DOC_MODULE)/examples
618all: config.h
619 $(MAKE) $(AM_MAKEFLAGS) all-recursive
620
621.SUFFIXES:
622.SUFFIXES: .c .lo .o .obj
623am--refresh:
624 @:
625$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
626 @for dep in $?; do \
627 case '$(am__configure_deps)' in \
628 *$$dep*) \
629 echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
630 cd $(srcdir) && $(AUTOMAKE) --gnu \
631 && exit 0; \
632 exit 1;; \
633 esac; \
634 done; \
635 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
636 cd $(top_srcdir) && \
637 $(AUTOMAKE) --gnu Makefile
638.PRECIOUS: Makefile
639Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
640 @case '$?' in \
641 *config.status*) \
642 echo ' $(SHELL) ./config.status'; \
643 $(SHELL) ./config.status;; \
644 *) \
645 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
646 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
647 esac;
648
649$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
650 $(SHELL) ./config.status --recheck
651
652$(top_srcdir)/configure: $(am__configure_deps)
653 cd $(srcdir) && $(AUTOCONF)
654$(ACLOCAL_M4): $(am__aclocal_m4_deps)
655 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
656
657config.h: stamp-h1
658 @if test ! -f $@; then \
659 rm -f stamp-h1; \
660 $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
661 else :; fi
662
663stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
664 @rm -f stamp-h1
665 cd $(top_builddir) && $(SHELL) ./config.status config.h
666$(srcdir)/config.h.in: $(am__configure_deps) $(top_srcdir)/acconfig.h
667 cd $(top_srcdir) && $(AUTOHEADER)
668 rm -f stamp-h1
669 touch $@
670
671distclean-hdr:
672 -rm -f config.h stamp-h1
673libxml2.spec: $(top_builddir)/config.status $(srcdir)/libxml.spec.in
674 cd $(top_builddir) && $(SHELL) ./config.status $@
675xml2-config: $(top_builddir)/config.status $(srcdir)/xml2-config.in
676 cd $(top_builddir) && $(SHELL) ./config.status $@
677libxml-2.0.pc: $(top_builddir)/config.status $(srcdir)/libxml-2.0.pc.in
678 cd $(top_builddir) && $(SHELL) ./config.status $@
679libxml-2.0-uninstalled.pc: $(top_builddir)/config.status $(srcdir)/libxml-2.0-uninstalled.pc.in
680 cd $(top_builddir) && $(SHELL) ./config.status $@
681install-libLTLIBRARIES: $(lib_LTLIBRARIES)
682 @$(NORMAL_INSTALL)
683 test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
684 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
685 if test -f $$p; then \
686 f=$(am__strip_dir) \
687 echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
688 $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
689 else :; fi; \
690 done
691
692uninstall-libLTLIBRARIES:
693 @$(NORMAL_UNINSTALL)
694 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
695 p=$(am__strip_dir) \
696 echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
697 $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
698 done
699
700clean-libLTLIBRARIES:
701 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
702 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
703 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
704 test "$$dir" != "$$p" || dir=.; \
705 echo "rm -f \"$${dir}/so_locations\""; \
706 rm -f "$${dir}/so_locations"; \
707 done
708
709clean-noinstLTLIBRARIES:
710 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
711 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \
712 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
713 test "$$dir" != "$$p" || dir=.; \
714 echo "rm -f \"$${dir}/so_locations\""; \
715 rm -f "$${dir}/so_locations"; \
716 done
717libxml2.la: $(libxml2_la_OBJECTS) $(libxml2_la_DEPENDENCIES)
718 $(libxml2_la_LINK) -rpath $(libdir) $(libxml2_la_OBJECTS) $(libxml2_la_LIBADD) $(LIBS)
719testdso.la: $(testdso_la_OBJECTS) $(testdso_la_DEPENDENCIES)
720 $(testdso_la_LINK) $(testdso_la_OBJECTS) $(testdso_la_LIBADD) $(LIBS)
721install-binPROGRAMS: $(bin_PROGRAMS)
722 @$(NORMAL_INSTALL)
723 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
724 @list='$(bin_PROGRAMS)'; for p in $$list; do \
725 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
726 if test -f $$p \
727 || test -f $$p1 \
728 ; then \
729 f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
730 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
731 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
732 else :; fi; \
733 done
734
735uninstall-binPROGRAMS:
736 @$(NORMAL_UNINSTALL)
737 @list='$(bin_PROGRAMS)'; for p in $$list; do \
738 f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
739 echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
740 rm -f "$(DESTDIR)$(bindir)/$$f"; \
741 done
742
743clean-binPROGRAMS:
744 @list='$(bin_PROGRAMS)'; for p in $$list; do \
745 f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
746 echo " rm -f $$p $$f"; \
747 rm -f $$p $$f ; \
748 done
749
750clean-noinstPROGRAMS:
751 @list='$(noinst_PROGRAMS)'; for p in $$list; do \
752 f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
753 echo " rm -f $$p $$f"; \
754 rm -f $$p $$f ; \
755 done
756runsuite$(EXEEXT): $(runsuite_OBJECTS) $(runsuite_DEPENDENCIES)
757 @rm -f runsuite$(EXEEXT)
758 $(runsuite_LINK) $(runsuite_OBJECTS) $(runsuite_LDADD) $(LIBS)
759runtest$(EXEEXT): $(runtest_OBJECTS) $(runtest_DEPENDENCIES)
760 @rm -f runtest$(EXEEXT)
761 $(runtest_LINK) $(runtest_OBJECTS) $(runtest_LDADD) $(LIBS)
762testAutomata$(EXEEXT): $(testAutomata_OBJECTS) $(testAutomata_DEPENDENCIES)
763 @rm -f testAutomata$(EXEEXT)
764 $(testAutomata_LINK) $(testAutomata_OBJECTS) $(testAutomata_LDADD) $(LIBS)
765testC14N$(EXEEXT): $(testC14N_OBJECTS) $(testC14N_DEPENDENCIES)
766 @rm -f testC14N$(EXEEXT)
767 $(testC14N_LINK) $(testC14N_OBJECTS) $(testC14N_LDADD) $(LIBS)
768testHTML$(EXEEXT): $(testHTML_OBJECTS) $(testHTML_DEPENDENCIES)
769 @rm -f testHTML$(EXEEXT)
770 $(testHTML_LINK) $(testHTML_OBJECTS) $(testHTML_LDADD) $(LIBS)
771testModule$(EXEEXT): $(testModule_OBJECTS) $(testModule_DEPENDENCIES)
772 @rm -f testModule$(EXEEXT)
773 $(testModule_LINK) $(testModule_OBJECTS) $(testModule_LDADD) $(LIBS)
774testReader$(EXEEXT): $(testReader_OBJECTS) $(testReader_DEPENDENCIES)
775 @rm -f testReader$(EXEEXT)
776 $(testReader_LINK) $(testReader_OBJECTS) $(testReader_LDADD) $(LIBS)
777testRegexp$(EXEEXT): $(testRegexp_OBJECTS) $(testRegexp_DEPENDENCIES)
778 @rm -f testRegexp$(EXEEXT)
779 $(testRegexp_LINK) $(testRegexp_OBJECTS) $(testRegexp_LDADD) $(LIBS)
780testRelax$(EXEEXT): $(testRelax_OBJECTS) $(testRelax_DEPENDENCIES)
781 @rm -f testRelax$(EXEEXT)
782 $(testRelax_LINK) $(testRelax_OBJECTS) $(testRelax_LDADD) $(LIBS)
783testSAX$(EXEEXT): $(testSAX_OBJECTS) $(testSAX_DEPENDENCIES)
784 @rm -f testSAX$(EXEEXT)
785 $(testSAX_LINK) $(testSAX_OBJECTS) $(testSAX_LDADD) $(LIBS)
786testSchemas$(EXEEXT): $(testSchemas_OBJECTS) $(testSchemas_DEPENDENCIES)
787 @rm -f testSchemas$(EXEEXT)
788 $(testSchemas_LINK) $(testSchemas_OBJECTS) $(testSchemas_LDADD) $(LIBS)
789testThreads$(EXEEXT): $(testThreads_OBJECTS) $(testThreads_DEPENDENCIES)
790 @rm -f testThreads$(EXEEXT)
791 $(testThreads_LINK) $(testThreads_OBJECTS) $(testThreads_LDADD) $(LIBS)
792testURI$(EXEEXT): $(testURI_OBJECTS) $(testURI_DEPENDENCIES)
793 @rm -f testURI$(EXEEXT)
794 $(testURI_LINK) $(testURI_OBJECTS) $(testURI_LDADD) $(LIBS)
795testXPath$(EXEEXT): $(testXPath_OBJECTS) $(testXPath_DEPENDENCIES)
796 @rm -f testXPath$(EXEEXT)
797 $(testXPath_LINK) $(testXPath_OBJECTS) $(testXPath_LDADD) $(LIBS)
798testapi$(EXEEXT): $(testapi_OBJECTS) $(testapi_DEPENDENCIES)
799 @rm -f testapi$(EXEEXT)
800 $(testapi_LINK) $(testapi_OBJECTS) $(testapi_LDADD) $(LIBS)
801xmlcatalog$(EXEEXT): $(xmlcatalog_OBJECTS) $(xmlcatalog_DEPENDENCIES)
802 @rm -f xmlcatalog$(EXEEXT)
803 $(xmlcatalog_LINK) $(xmlcatalog_OBJECTS) $(xmlcatalog_LDADD) $(LIBS)
804xmllint$(EXEEXT): $(xmllint_OBJECTS) $(xmllint_DEPENDENCIES)
805 @rm -f xmllint$(EXEEXT)
806 $(xmllint_LINK) $(xmllint_OBJECTS) $(xmllint_LDADD) $(LIBS)
807install-binSCRIPTS: $(bin_SCRIPTS)
808 @$(NORMAL_INSTALL)
809 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
810 @list='$(bin_SCRIPTS)'; for p in $$list; do \
811 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
812 if test -f $$d$$p; then \
813 f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
814 echo " $(binSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(bindir)/$$f'"; \
815 $(binSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(bindir)/$$f"; \
816 else :; fi; \
817 done
818
819uninstall-binSCRIPTS:
820 @$(NORMAL_UNINSTALL)
821 @list='$(bin_SCRIPTS)'; for p in $$list; do \
822 f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
823 echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
824 rm -f "$(DESTDIR)$(bindir)/$$f"; \
825 done
826
827mostlyclean-compile:
828 -rm -f *.$(OBJEXT)
829
830distclean-compile:
831 -rm -f *.tab.c
832
833@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/DOCBparser.Plo@am__quote@
834@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/HTMLparser.Plo@am__quote@
835@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/HTMLtree.Plo@am__quote@
836@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SAX.Plo@am__quote@
837@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SAX2.Plo@am__quote@
838@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/c14n.Plo@am__quote@
839@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/catalog.Plo@am__quote@
840@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/chvalid.Plo@am__quote@
841@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/debugXML.Plo@am__quote@
842@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dict.Plo@am__quote@
843@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/encoding.Plo@am__quote@
844@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/entities.Plo@am__quote@
845@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/error.Plo@am__quote@
846@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/globals.Plo@am__quote@
847@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hash.Plo@am__quote@
848@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/legacy.Plo@am__quote@
849@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/list.Plo@am__quote@
850@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nanoftp.Plo@am__quote@
851@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nanohttp.Plo@am__quote@
852@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/parser.Plo@am__quote@
853@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/parserInternals.Plo@am__quote@
854@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pattern.Plo@am__quote@
855@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/relaxng.Plo@am__quote@
856@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/runsuite.Po@am__quote@
857@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/runtest.Po@am__quote@
858@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/schematron.Plo@am__quote@
859@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testAutomata.Po@am__quote@
860@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testC14N.Po@am__quote@
861@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testHTML.Po@am__quote@
862@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testModule.Po@am__quote@
863@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testReader.Po@am__quote@
864@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testRegexp.Po@am__quote@
865@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testRelax.Po@am__quote@
866@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testSAX.Po@am__quote@
867@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testSchemas.Po@am__quote@
868@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testThreads@[email protected]@am__quote@
869@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testURI.Po@am__quote@
870@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testXPath.Po@am__quote@
871@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testapi.Po@am__quote@
872@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testdso.Plo@am__quote@
873@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/threads.Plo@am__quote@
874@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tree.Plo@am__quote@
875@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/trio.Plo@am__quote@
876@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/triostr.Plo@am__quote@
877@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uri.Plo@am__quote@
878@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/valid.Plo@am__quote@
879@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xinclude.Plo@am__quote@
880@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xlink.Plo@am__quote@
881@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmlIO.Plo@am__quote@
882@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmlcatalog.Po@am__quote@
883@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmllint.Po@am__quote@
884@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmlmemory.Plo@am__quote@
885@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmlmodule.Plo@am__quote@
886@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmlreader.Plo@am__quote@
887@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmlregexp.Plo@am__quote@
888@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmlsave.Plo@am__quote@
889@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmlschemas.Plo@am__quote@
890@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmlschemastypes.Plo@am__quote@
891@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmlstring.Plo@am__quote@
892@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmlunicode.Plo@am__quote@
893@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmlwriter.Plo@am__quote@
894@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xpath.Plo@am__quote@
895@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xpointer.Plo@am__quote@
896
897.c.o:
898@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
899@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
900@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
901@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
902@am__fastdepCC_FALSE@ $(COMPILE) -c $<
903
904.c.obj:
905@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
906@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
907@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
908@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
909@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
910
911.c.lo:
912@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
913@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
914@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
915@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
916@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
917
918mostlyclean-libtool:
919 -rm -f *.lo
920
921clean-libtool:
922 -rm -rf .libs _libs
923
924distclean-libtool:
925 -rm -f libtool
926install-man1: $(man1_MANS) $(man_MANS)
927 @$(NORMAL_INSTALL)
928 test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)"
929 @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
930 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
931 for i in $$l2; do \
932 case "$$i" in \
933 *.1*) list="$$list $$i" ;; \
934 esac; \
935 done; \
936 for i in $$list; do \
937 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
938 else file=$$i; fi; \
939 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
940 case "$$ext" in \
941 1*) ;; \
942 *) ext='1' ;; \
943 esac; \
944 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
945 inst=`echo $$inst | sed -e 's/^.*\///'`; \
946 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
947 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
948 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \
949 done
950uninstall-man1:
951 @$(NORMAL_UNINSTALL)
952 @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
953 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
954 for i in $$l2; do \
955 case "$$i" in \
956 *.1*) list="$$list $$i" ;; \
957 esac; \
958 done; \
959 for i in $$list; do \
960 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
961 case "$$ext" in \
962 1*) ;; \
963 *) ext='1' ;; \
964 esac; \
965 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
966 inst=`echo $$inst | sed -e 's/^.*\///'`; \
967 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
968 echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \
969 rm -f "$(DESTDIR)$(man1dir)/$$inst"; \
970 done
971install-man3: $(man3_MANS) $(man_MANS)
972 @$(NORMAL_INSTALL)
973 test -z "$(man3dir)" || $(MKDIR_P) "$(DESTDIR)$(man3dir)"
974 @list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \
975 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
976 for i in $$l2; do \
977 case "$$i" in \
978 *.3*) list="$$list $$i" ;; \
979 esac; \
980 done; \
981 for i in $$list; do \
982 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
983 else file=$$i; fi; \
984 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
985 case "$$ext" in \
986 3*) ;; \
987 *) ext='3' ;; \
988 esac; \
989 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
990 inst=`echo $$inst | sed -e 's/^.*\///'`; \
991 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
992 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man3dir)/$$inst'"; \
993 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man3dir)/$$inst"; \
994 done
995uninstall-man3:
996 @$(NORMAL_UNINSTALL)
997 @list='$(man3_MANS) $(dist_man3_MANS) $(nodist_man3_MANS)'; \
998 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
999 for i in $$l2; do \
1000 case "$$i" in \
1001 *.3*) list="$$list $$i" ;; \
1002 esac; \
1003 done; \
1004 for i in $$list; do \
1005 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
1006 case "$$ext" in \
1007 3*) ;; \
1008 *) ext='3' ;; \
1009 esac; \
1010 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
1011 inst=`echo $$inst | sed -e 's/^.*\///'`; \
1012 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
1013 echo " rm -f '$(DESTDIR)$(man3dir)/$$inst'"; \
1014 rm -f "$(DESTDIR)$(man3dir)/$$inst"; \
1015 done
1016install-confexecDATA: $(confexec_DATA)
1017 @$(NORMAL_INSTALL)
1018 test -z "$(confexecdir)" || $(MKDIR_P) "$(DESTDIR)$(confexecdir)"
1019 @list='$(confexec_DATA)'; for p in $$list; do \
1020 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
1021 f=$(am__strip_dir) \
1022 echo " $(confexecDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(confexecdir)/$$f'"; \
1023 $(confexecDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(confexecdir)/$$f"; \
1024 done
1025
1026uninstall-confexecDATA:
1027 @$(NORMAL_UNINSTALL)
1028 @list='$(confexec_DATA)'; for p in $$list; do \
1029 f=$(am__strip_dir) \
1030 echo " rm -f '$(DESTDIR)$(confexecdir)/$$f'"; \
1031 rm -f "$(DESTDIR)$(confexecdir)/$$f"; \
1032 done
1033install-m4dataDATA: $(m4data_DATA)
1034 @$(NORMAL_INSTALL)
1035 test -z "$(m4datadir)" || $(MKDIR_P) "$(DESTDIR)$(m4datadir)"
1036 @list='$(m4data_DATA)'; for p in $$list; do \
1037 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
1038 f=$(am__strip_dir) \
1039 echo " $(m4dataDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(m4datadir)/$$f'"; \
1040 $(m4dataDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(m4datadir)/$$f"; \
1041 done
1042
1043uninstall-m4dataDATA:
1044 @$(NORMAL_UNINSTALL)
1045 @list='$(m4data_DATA)'; for p in $$list; do \
1046 f=$(am__strip_dir) \
1047 echo " rm -f '$(DESTDIR)$(m4datadir)/$$f'"; \
1048 rm -f "$(DESTDIR)$(m4datadir)/$$f"; \
1049 done
1050install-pkgconfigDATA: $(pkgconfig_DATA)
1051 @$(NORMAL_INSTALL)
1052 test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
1053 @list='$(pkgconfig_DATA)'; for p in $$list; do \
1054 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
1055 f=$(am__strip_dir) \
1056 echo " $(pkgconfigDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
1057 $(pkgconfigDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigdir)/$$f"; \
1058 done
1059
1060uninstall-pkgconfigDATA:
1061 @$(NORMAL_UNINSTALL)
1062 @list='$(pkgconfig_DATA)'; for p in $$list; do \
1063 f=$(am__strip_dir) \
1064 echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
1065 rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \
1066 done
1067
1068# This directory's subdirectories are mostly independent; you can cd
1069# into them and run `make' without going through this Makefile.
1070# To change the values of `make' variables: instead of editing Makefiles,
1071# (1) if the variable is set in `config.status', edit `config.status'
1072# (which will cause the Makefiles to be regenerated when you run `make');
1073# (2) otherwise, pass the desired values on the `make' command line.
1074$(RECURSIVE_TARGETS):
1075 @failcom='exit 1'; \
1076 for f in x $$MAKEFLAGS; do \
1077 case $$f in \
1078 *=* | --[!k]*);; \
1079 *k*) failcom='fail=yes';; \
1080 esac; \
1081 done; \
1082 dot_seen=no; \
1083 target=`echo $@ | sed s/-recursive//`; \
1084 list='$(SUBDIRS)'; for subdir in $$list; do \
1085 echo "Making $$target in $$subdir"; \
1086 if test "$$subdir" = "."; then \
1087 dot_seen=yes; \
1088 local_target="$$target-am"; \
1089 else \
1090 local_target="$$target"; \
1091 fi; \
1092 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
1093 || eval $$failcom; \
1094 done; \
1095 if test "$$dot_seen" = "no"; then \
1096 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
1097 fi; test -z "$$fail"
1098
1099$(RECURSIVE_CLEAN_TARGETS):
1100 @failcom='exit 1'; \
1101 for f in x $$MAKEFLAGS; do \
1102 case $$f in \
1103 *=* | --[!k]*);; \
1104 *k*) failcom='fail=yes';; \
1105 esac; \
1106 done; \
1107 dot_seen=no; \
1108 case "$@" in \
1109 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
1110 *) list='$(SUBDIRS)' ;; \
1111 esac; \
1112 rev=''; for subdir in $$list; do \
1113 if test "$$subdir" = "."; then :; else \
1114 rev="$$subdir $$rev"; \
1115 fi; \
1116 done; \
1117 rev="$$rev ."; \
1118 target=`echo $@ | sed s/-recursive//`; \
1119 for subdir in $$rev; do \
1120 echo "Making $$target in $$subdir"; \
1121 if test "$$subdir" = "."; then \
1122 local_target="$$target-am"; \
1123 else \
1124 local_target="$$target"; \
1125 fi; \
1126 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
1127 || eval $$failcom; \
1128 done && test -z "$$fail"
1129tags-recursive:
1130 list='$(SUBDIRS)'; for subdir in $$list; do \
1131 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
1132 done
1133ctags-recursive:
1134 list='$(SUBDIRS)'; for subdir in $$list; do \
1135 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
1136 done
1137
1138ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
1139 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
1140 unique=`for i in $$list; do \
1141 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
1142 done | \
1143 $(AWK) ' { files[$$0] = 1; } \
1144 END { for (i in files) print i; }'`; \
1145 mkid -fID $$unique
1146tags: TAGS
1147
1148TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
1149 $(TAGS_FILES) $(LISP)
1150 tags=; \
1151 here=`pwd`; \
1152 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
1153 include_option=--etags-include; \
1154 empty_fix=.; \
1155 else \
1156 include_option=--include; \
1157 empty_fix=; \
1158 fi; \
1159 list='$(SUBDIRS)'; for subdir in $$list; do \
1160 if test "$$subdir" = .; then :; else \
1161 test ! -f $$subdir/TAGS || \
1162 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
1163 fi; \
1164 done; \
1165 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
1166 unique=`for i in $$list; do \
1167 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
1168 done | \
1169 $(AWK) ' { files[$$0] = 1; } \
1170 END { for (i in files) print i; }'`; \
1171 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
1172 test -n "$$unique" || unique=$$empty_fix; \
1173 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
1174 $$tags $$unique; \
1175 fi
1176ctags: CTAGS
1177CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
1178 $(TAGS_FILES) $(LISP)
1179 tags=; \
1180 here=`pwd`; \
1181 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
1182 unique=`for i in $$list; do \
1183 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
1184 done | \
1185 $(AWK) ' { files[$$0] = 1; } \
1186 END { for (i in files) print i; }'`; \
1187 test -z "$(CTAGS_ARGS)$$tags$$unique" \
1188 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
1189 $$tags $$unique
1190
1191GTAGS:
1192 here=`$(am__cd) $(top_builddir) && pwd` \
1193 && cd $(top_srcdir) \
1194 && gtags -i $(GTAGS_ARGS) $$here
1195
1196distclean-tags:
1197 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
1198
1199distdir: $(DISTFILES)
1200 $(am__remove_distdir)
1201 test -d $(distdir) || mkdir $(distdir)
1202 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
1203 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
1204 list='$(DISTFILES)'; \
1205 dist_files=`for file in $$list; do echo $$file; done | \
1206 sed -e "s|^$$srcdirstrip/||;t" \
1207 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
1208 case $$dist_files in \
1209 */*) $(MKDIR_P) `echo "$$dist_files" | \
1210 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
1211 sort -u` ;; \
1212 esac; \
1213 for file in $$dist_files; do \
1214 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
1215 if test -d $$d/$$file; then \
1216 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
1217 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
1218 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
1219 fi; \
1220 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
1221 else \
1222 test -f $(distdir)/$$file \
1223 || cp -p $$d/$$file $(distdir)/$$file \
1224 || exit 1; \
1225 fi; \
1226 done
1227 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
1228 if test "$$subdir" = .; then :; else \
1229 test -d "$(distdir)/$$subdir" \
1230 || $(MKDIR_P) "$(distdir)/$$subdir" \
1231 || exit 1; \
1232 distdir=`$(am__cd) $(distdir) && pwd`; \
1233 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
1234 (cd $$subdir && \
1235 $(MAKE) $(AM_MAKEFLAGS) \
1236 top_distdir="$$top_distdir" \
1237 distdir="$$distdir/$$subdir" \
1238 am__remove_distdir=: \
1239 am__skip_length_check=: \
1240 distdir) \
1241 || exit 1; \
1242 fi; \
1243 done
1244 $(MAKE) $(AM_MAKEFLAGS) \
1245 top_distdir="$(top_distdir)" distdir="$(distdir)" \
1246 dist-hook
1247 -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
1248 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
1249 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
1250 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
1251 || chmod -R a+r $(distdir)
1252dist-gzip: distdir
1253 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
1254 $(am__remove_distdir)
1255
1256dist-bzip2: distdir
1257 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
1258 $(am__remove_distdir)
1259
1260dist-tarZ: distdir
1261 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
1262 $(am__remove_distdir)
1263
1264dist-shar: distdir
1265 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
1266 $(am__remove_distdir)
1267
1268dist-zip: distdir
1269 -rm -f $(distdir).zip
1270 zip -rq $(distdir).zip $(distdir)
1271 $(am__remove_distdir)
1272
1273dist dist-all: distdir
1274 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
1275 $(am__remove_distdir)
1276
1277# This target untars the dist file and tries a VPATH configuration. Then
1278# it guarantees that the distribution is self-contained by making another
1279# tarfile.
1280distcheck: dist
1281 case '$(DIST_ARCHIVES)' in \
1282 *.tar.gz*) \
1283 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
1284 *.tar.bz2*) \
1285 bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
1286 *.tar.Z*) \
1287 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
1288 *.shar.gz*) \
1289 GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
1290 *.zip*) \
1291 unzip $(distdir).zip ;;\
1292 esac
1293 chmod -R a-w $(distdir); chmod a+w $(distdir)
1294 mkdir $(distdir)/_build
1295 mkdir $(distdir)/_inst
1296 chmod a-w $(distdir)
1297 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
1298 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
1299 && cd $(distdir)/_build \
1300 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
1301 $(DISTCHECK_CONFIGURE_FLAGS) \
1302 && $(MAKE) $(AM_MAKEFLAGS) \
1303 && $(MAKE) $(AM_MAKEFLAGS) dvi \
1304 && $(MAKE) $(AM_MAKEFLAGS) check \
1305 && $(MAKE) $(AM_MAKEFLAGS) install \
1306 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
1307 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
1308 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
1309 distuninstallcheck \
1310 && chmod -R a-w "$$dc_install_base" \
1311 && ({ \
1312 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
1313 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
1314 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
1315 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
1316 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
1317 } || { rm -rf "$$dc_destdir"; exit 1; }) \
1318 && rm -rf "$$dc_destdir" \
1319 && $(MAKE) $(AM_MAKEFLAGS) dist \
1320 && rm -rf $(DIST_ARCHIVES) \
1321 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
1322 $(am__remove_distdir)
1323 @(echo "$(distdir) archives ready for distribution: "; \
1324 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
1325 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
1326distuninstallcheck:
1327 @cd $(distuninstallcheck_dir) \
1328 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
1329 || { echo "ERROR: files left after uninstall:" ; \
1330 if test -n "$(DESTDIR)"; then \
1331 echo " (check DESTDIR support)"; \
1332 fi ; \
1333 $(distuninstallcheck_listfiles) ; \
1334 exit 1; } >&2
1335distcleancheck: distclean
1336 @if test '$(srcdir)' = . ; then \
1337 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
1338 exit 1 ; \
1339 fi
1340 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
1341 || { echo "ERROR: files left in build directory after distclean:" ; \
1342 $(distcleancheck_listfiles) ; \
1343 exit 1; } >&2
1344check-am: all-am
1345 $(MAKE) $(AM_MAKEFLAGS) check-local
1346check: check-recursive
1347all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(SCRIPTS) $(MANS) $(DATA) \
1348 config.h
1349install-binPROGRAMS: install-libLTLIBRARIES
1350
1351installdirs: installdirs-recursive
1352installdirs-am:
1353 for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man3dir)" "$(DESTDIR)$(confexecdir)" "$(DESTDIR)$(m4datadir)" "$(DESTDIR)$(pkgconfigdir)"; do \
1354 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
1355 done
1356install: install-recursive
1357install-exec: install-exec-recursive
1358install-data: install-data-recursive
1359uninstall: uninstall-recursive
1360
1361install-am: all-am
1362 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1363
1364installcheck: installcheck-recursive
1365install-strip:
1366 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1367 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1368 `test -z '$(STRIP)' || \
1369 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
1370mostlyclean-generic:
1371
1372clean-generic:
1373 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
1374
1375distclean-generic:
1376 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
1377
1378maintainer-clean-generic:
1379 @echo "This command is intended for maintainers to use"
1380 @echo "it deletes files that may require special tools to rebuild."
1381clean: clean-recursive
1382
1383clean-am: clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \
1384 clean-libtool clean-noinstLTLIBRARIES clean-noinstPROGRAMS \
1385 mostlyclean-am
1386
1387distclean: distclean-recursive
1388 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
1389 -rm -rf ./$(DEPDIR)
1390 -rm -f Makefile
1391distclean-am: clean-am distclean-compile distclean-generic \
1392 distclean-hdr distclean-libtool distclean-tags
1393
1394dvi: dvi-recursive
1395
1396dvi-am:
1397
1398html: html-recursive
1399
1400info: info-recursive
1401
1402info-am:
1403
1404install-data-am: install-data-local install-m4dataDATA install-man \
1405 install-pkgconfigDATA
1406
1407install-dvi: install-dvi-recursive
1408
1409install-exec-am: install-binPROGRAMS install-binSCRIPTS \
1410 install-confexecDATA install-libLTLIBRARIES
1411
1412install-html: install-html-recursive
1413
1414install-info: install-info-recursive
1415
1416install-man: install-man1 install-man3
1417
1418install-pdf: install-pdf-recursive
1419
1420install-ps: install-ps-recursive
1421
1422installcheck-am:
1423
1424maintainer-clean: maintainer-clean-recursive
1425 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
1426 -rm -rf $(top_srcdir)/autom4te.cache
1427 -rm -rf ./$(DEPDIR)
1428 -rm -f Makefile
1429maintainer-clean-am: distclean-am maintainer-clean-generic
1430
1431mostlyclean: mostlyclean-recursive
1432
1433mostlyclean-am: mostlyclean-compile mostlyclean-generic \
1434 mostlyclean-libtool
1435
1436pdf: pdf-recursive
1437
1438pdf-am:
1439
1440ps: ps-recursive
1441
1442ps-am:
1443
1444uninstall-am: uninstall-binPROGRAMS uninstall-binSCRIPTS \
1445 uninstall-confexecDATA uninstall-libLTLIBRARIES \
1446 uninstall-local uninstall-m4dataDATA uninstall-man \
1447 uninstall-pkgconfigDATA
1448
1449uninstall-man: uninstall-man1 uninstall-man3
1450
1451.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
1452 install-strip
1453
1454.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
1455 all all-am am--refresh check check-am check-local clean \
1456 clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \
1457 clean-libtool clean-noinstLTLIBRARIES clean-noinstPROGRAMS \
1458 ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
1459 dist-hook dist-shar dist-tarZ dist-zip distcheck distclean \
1460 distclean-compile distclean-generic distclean-hdr \
1461 distclean-libtool distclean-tags distcleancheck distdir \
1462 distuninstallcheck dvi dvi-am html html-am info info-am \
1463 install install-am install-binPROGRAMS install-binSCRIPTS \
1464 install-confexecDATA install-data install-data-am \
1465 install-data-local install-dvi install-dvi-am install-exec \
1466 install-exec-am install-html install-html-am install-info \
1467 install-info-am install-libLTLIBRARIES install-m4dataDATA \
1468 install-man install-man1 install-man3 install-pdf \
1469 install-pdf-am install-pkgconfigDATA install-ps install-ps-am \
1470 install-strip installcheck installcheck-am installdirs \
1471 installdirs-am maintainer-clean maintainer-clean-generic \
1472 mostlyclean mostlyclean-compile mostlyclean-generic \
1473 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
1474 uninstall uninstall-am uninstall-binPROGRAMS \
1475 uninstall-binSCRIPTS uninstall-confexecDATA \
1476 uninstall-libLTLIBRARIES uninstall-local uninstall-m4dataDATA \
1477 uninstall-man uninstall-man1 uninstall-man3 \
1478 uninstall-pkgconfigDATA
1479
1480
1481# that one forces the rebuild when "make rebuild" is run on doc/
1482rebuild_testapi:
1483 -@(if [ "$(PYTHON)" != "" ] ; then \
1484 $(PYTHON) $(srcdir)/gentest.py $(srcdir) ; fi )
1485
1486# that one is just to make sure it is rebuilt if missing
1487# but adding the dependances generate mess
1488testapi.c:
1489 -@(if [ "$(PYTHON)" != "" ] ; then \
1490 $(PYTHON) $(srcdir)/gentest.py $(srcdir) ; fi )
1491
1492#testOOM_SOURCES=testOOM.c testOOMlib.h testOOMlib.c
1493#testOOM_LDFLAGS =
1494#testOOM_DEPENDENCIES = $(DEPS)
1495#testOOM_LDADD= $(LDADDS)
1496
1497check-local: all tests
1498
1499testall : tests SVGtests SAXtests
1500
1501tests: XMLtests XMLenttests NStests IDtests Errtests APItests @READER_TEST@ @TEST_SAX@ @TEST_PUSH@ @TEST_HTML@ @TEST_PHTML@ @TEST_VALID@ URItests @TEST_PATTERN@ @TEST_XPATH@ @TEST_XPTR@ @TEST_XINCLUDE@ @TEST_C14N@ @TEST_DEBUG@ @TEST_CATALOG@ @TEST_REGEXPS@ @TEST_SCHEMAS@ @TEST_SCHEMATRON@ @TEST_THREADS@ Timingtests @TEST_VTIME@ @PYTHON_TESTS@ @TEST_MODULES@
1502 @(if [ "@PYTHON_SUBDIR@" != "" ] ; then cd python ; \
1503 $(MAKE) MAKEFLAGS+=--silent tests ; fi)
1504 @(cd doc/examples ; $(MAKE) MAKEFLAGS+=--silent tests)
1505
1506valgrind:
1507 @echo '## Running the regression tests under Valgrind'
1508 @echo '## Go get a cup of coffee it is gonna take a while ...'
1509 $(MAKE) CHECKER='valgrind -q' tests
1510
1511APItests: testapi$(EXEEXT)
1512 @echo "## Running the API regression tests this may take a little while"
1513 -@($(CHECKER) $(top_builddir)/testapi -q)
1514
1515HTMLtests : testHTML$(EXEEXT)
1516 @(echo > .memdump)
1517 @echo "## HTML regression tests"
1518 -@(for i in $(srcdir)/test/HTML/* ; do \
1519 name=`basename $$i`; \
1520 if [ ! -d $$i ] ; then \
1521 if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \
1522 echo New test file $$name ; \
1523 $(CHECKER) $(top_builddir)/testHTML $$i > $(srcdir)/result/HTML/$$name 2>$(srcdir)/result/HTML/$$name.err ; \
1524 else \
1525 log=`$(CHECKER) $(top_builddir)/testHTML $$i > result.$$name 2> error.$$name ; \
1526 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1527 diff $(srcdir)/result/HTML/$$name result.$$name ; \
1528 diff -b $(srcdir)/result/HTML/$$name.err error.$$name ; \
1529 $(CHECKER) $(top_builddir)/testHTML result.$$name > result2.$$name 2>error.$$name ; \
1530 diff result.$$name result2.$$name` ; \
1531 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1532 rm result.$$name result2.$$name error.$$name ; \
1533 fi ; fi ; done)
1534
1535HTMLPushtests : testHTML$(EXEEXT)
1536 @echo "## Push HTML regression tests"
1537 -@(for i in $(srcdir)/test/HTML/* ; do \
1538 name=`basename $$i`; \
1539 if [ ! -d $$i ] ; then \
1540 if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \
1541 echo New test file $$name ; \
1542 $(CHECKER) $(top_builddir)/testHTML --push $$i > $(srcdir)/result/HTML/$$name 2>$(srcdir)/result/HTML/$$name.err ; \
1543 else \
1544 log=`$(CHECKER) $(top_builddir)/testHTML --push $$i > result.$$name 2> error.$$name ; \
1545 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1546 diff $(srcdir)/result/HTML/$$name result.$$name ; \
1547 cut -b 1-15 $(srcdir)/result/HTML/$$name.err > errorcut.$$name; \
1548 cut -b 1-15 error.$$name > errorcut2.$$name; \
1549 diff -b errorcut.$$name errorcut2.$$name ; \
1550 $(CHECKER) $(top_builddir)/testHTML --push result.$$name > result2.$$name 2>error.$$name ; \
1551 diff result.$$name result2.$$name` ; \
1552 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1553 rm result.$$name result2.$$name error.$$name errorcut.$$name errorcut2.$$name ; \
1554 fi ; fi ; done)
1555 @echo "## HTML SAX regression tests"
1556 -@(for i in $(srcdir)/test/HTML/* ; do \
1557 name=`basename $$i`; \
1558 if [ ! -d $$i ] ; then \
1559 if [ ! -f $(srcdir)/result/HTML/$$name.sax ] ; then \
1560 echo New test file $$name ; \
1561 $(CHECKER) $(top_builddir)/testHTML --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \
1562 else \
1563 log=`$(CHECKER) $(top_builddir)/testHTML --sax $$i > result.$$name.sax ; \
1564 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1565 diff $(srcdir)/result/HTML/$$name.sax result.$$name.sax` ; \
1566 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1567 rm result.$$name.sax ; \
1568 fi ; fi ; done)
1569 @echo "## Push HTML SAX regression tests"
1570 -@(for i in $(srcdir)/test/HTML/* ; do \
1571 name=`basename $$i`; \
1572 if [ ! -d $$i ] ; then \
1573 if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \
1574 echo New test file $$name ; \
1575 $(CHECKER) $(top_builddir)/testHTML --push --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \
1576 else \
1577 log=`$(CHECKER) $(top_builddir)/testHTML --push --sax $$i 2>&1 > result.$$name.sax ; \
1578 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1579 diff $(srcdir)/result/HTML/$$name.sax result.$$name.sax` ; \
1580 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1581 rm result.$$name.sax ; \
1582 fi ; fi ; done)
1583
1584XMLtests : xmllint$(EXEEXT)
1585 @(echo > .memdump)
1586 @echo "## XML regression tests"
1587 -@(for i in $(srcdir)/test/* ; do \
1588 name=`basename $$i`; \
1589 if [ ! -d $$i ] ; then \
1590 if [ ! -f $(srcdir)/result/$$name ] ; then \
1591 echo New test file $$name ; \
1592 $(CHECKER) $(top_builddir)/xmllint $$i > $(srcdir)/result/$$name ; \
1593 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
1594 else \
1595 log=`$(CHECKER) $(top_builddir)/xmllint $$i 2>&1 > result.$$name ; \
1596 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
1597 diff $(srcdir)/result/$$name result.$$name ; \
1598 $(CHECKER) $(top_builddir)/xmllint result.$$name 2>&1 > result2.$$name | grep -v 'failed to load external entity' ; \
1599 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
1600 diff result.$$name result2.$$name` ;\
1601 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1602 rm result.$$name result2.$$name ; \
1603 fi ; fi ; done)
1604 @echo "## XML regression tests on memory"
1605 -@(for i in $(srcdir)/test/* ; do \
1606 name=`basename $$i`; \
1607 if [ ! -d $$i ] ; then \
1608 if [ ! -f $(srcdir)/result/$$name ] ; then \
1609 echo New test file $$name ; \
1610 $(CHECKER) $(top_builddir)/xmllint --memory $$i > $(srcdir)/result/$$name ; \
1611 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
1612 else \
1613 log=`$(CHECKER) $(top_builddir)/xmllint --memory $$i 2>&1 > result.$$name ; \
1614 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1615 diff $(srcdir)/result/$$name result.$$name ; \
1616 $(CHECKER) $(top_builddir)/xmllint --memory result.$$name 2>&1 > result2.$$name | grep -v 'failed to load external entity' ; \
1617 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"`; \
1618 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1619 diff result.$$name result2.$$name ; \
1620 rm result.$$name result2.$$name ; \
1621 fi ; fi ; done)
1622
1623XMLPushtests: xmllint$(EXEEXT)
1624 @(echo > .memdump)
1625 @echo "## XML push regression tests"
1626 -@(for i in $(srcdir)/test/* ; do \
1627 name=`basename $$i`; \
1628 if [ ! -d $$i ] ; then \
1629 if [ ! -f $(srcdir)/result/$$name ] ; then \
1630 echo New test file $$name ; \
1631 $(CHECKER) $(top_builddir)/xmllint --push $$i > $(srcdir)/result/$$name ; \
1632 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
1633 else \
1634 log=`$(CHECKER) $(top_builddir)/xmllint --push $$i 2>&1 > result.$$name ; \
1635 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
1636 diff $(srcdir)/result/$$name result.$$name ; \
1637 $(CHECKER) $(top_builddir)/xmllint --push result.$$name 2>&1 > result2.$$name | grep -v 'failed to load external entity' ; \
1638 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
1639 diff result.$$name result2.$$name` ; \
1640 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1641 rm result.$$name result2.$$name ; \
1642 fi ; fi ; done)
1643
1644NStests : xmllint$(EXEEXT)
1645 @(echo > .memdump)
1646 @echo "## XML Namespaces regression tests"
1647 -@(for i in $(srcdir)/test/namespaces/* ; do \
1648 name=`basename $$i`; \
1649 if [ ! -d $$i ] ; then \
1650 if [ ! -f $(srcdir)/result/namespaces/$$name ] ; then \
1651 echo New test file $$name ; \
1652 $(CHECKER) $(top_builddir)/xmllint $$i \
1653 2> $(srcdir)/result/namespaces/$$name.err \
1654 > $(srcdir)/result/namespaces/$$name ; \
1655 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
1656 else \
1657 log=`$(CHECKER) $(top_builddir)/xmllint $$i 2> error.$$name > result.$$name ; \
1658 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
1659 diff $(srcdir)/result/namespaces/$$name result.$$name ; \
1660 diff $(srcdir)/result/namespaces/$$name.err error.$$name`; \
1661 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1662 rm result.$$name error.$$name ; \
1663 fi ; fi ; done)
1664
1665IDtests : xmllint$(EXEEXT) testXPath$(EXEEXT)
1666 @(echo > .memdump)
1667 @echo "## xml:id regression tests"
1668 -@(for i in $(srcdir)/test/xmlid/id_*.xml ; do \
1669 name=`basename $$i`; \
1670 if [ ! -d $$i ] ; then \
1671 if [ ! -f $(srcdir)/result/xmlid/$$name ] ; then \
1672 echo New test file $$name ; \
1673 $(CHECKER) $(top_builddir)/testXPath -i $$i "id('bar')" \
1674 2> $(srcdir)/result/xmlid/$$name.err \
1675 > $(srcdir)/result/xmlid/$$name ; \
1676 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
1677 else \
1678 log=`$(CHECKER) $(top_builddir)/testXPath -i $$i "id('bar')" 2> error.$$name > result.$$name ; \
1679 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
1680 diff $(srcdir)/result/xmlid/$$name result.$$name ; \
1681 diff $(srcdir)/result/xmlid/$$name.err error.$$name` ; \
1682 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1683 rm result.$$name error.$$name ; \
1684 fi ; fi ; done)
1685
1686Errtests : xmllint$(EXEEXT)
1687 @(echo > .memdump)
1688 @echo "## Error cases regression tests"
1689 -@(for i in $(srcdir)/test/errors/*.xml ; do \
1690 name=`basename $$i`; \
1691 if [ ! -d $$i ] ; then \
1692 if [ ! -f $(srcdir)/result/errors/$$name ] ; then \
1693 echo New test file $$name ; \
1694 $(CHECKER) $(top_builddir)/xmllint $$i \
1695 2> $(srcdir)/result/errors/$$name.err \
1696 > $(srcdir)/result/errors/$$name ; \
1697 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
1698 else \
1699 log=`$(CHECKER) $(top_builddir)/xmllint $$i 2> error.$$name > result.$$name ; \
1700 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
1701 diff $(srcdir)/result/errors/$$name result.$$name ; \
1702 diff $(srcdir)/result/errors/$$name.err error.$$name` ; \
1703 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1704 rm result.$$name error.$$name ; \
1705 fi ; fi ; done)
1706 @echo "## Error cases stream regression tests"
1707 -@(for i in $(srcdir)/test/errors/*.xml ; do \
1708 name=`basename $$i`; \
1709 if [ ! -d $$i ] ; then \
1710 if [ ! -f $(srcdir)/result/errors/$$name.str ] ; then \
1711 echo New test file $$name ; \
1712 $(CHECKER) $(top_builddir)/xmllint --stream $$i \
1713 2> $(srcdir)/result/errors/$$name.str \
1714 > /dev/null ; \
1715 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
1716 else \
1717 log=`$(CHECKER) $(top_builddir)/xmllint --stream $$i 2> error.$$name > /dev/null ; \
1718 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
1719 diff $(srcdir)/result/errors/$$name.str error.$$name` ; \
1720 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1721 rm error.$$name ; \
1722 fi ; fi ; done)
1723
1724Docbtests : xmllint$(EXEEXT)
1725
1726XMLenttests : xmllint$(EXEEXT)
1727 @(echo > .memdump)
1728 @echo "## XML entity subst regression tests"
1729 -@(for i in $(srcdir)/test/* ; do \
1730 name=`basename $$i`; \
1731 if [ ! -d $$i ] ; then \
1732 if [ ! -f $(srcdir)/result/noent/$$name ] ; then \
1733 echo New test file $$name ; \
1734 $(CHECKER) $(top_builddir)/xmllint --noent $$i > $(srcdir)/result/noent/$$name ; \
1735 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
1736 else \
1737 log=`$(CHECKER) $(top_builddir)/xmllint --noent $$i 2>&1 > result.$$name ; \
1738 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
1739 diff $(srcdir)/result/noent/$$name result.$$name ; \
1740 $(CHECKER) $(top_builddir)/xmllint --noent result.$$name 2>&1 > result2.$$name ; \
1741 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
1742 diff result.$$name result2.$$name` ; \
1743 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1744 rm result.$$name result2.$$name ; \
1745 fi ; fi ; done)
1746
1747URItests : testURI$(EXEEXT)
1748 @(echo > .memdump)
1749 @echo "## URI module regression tests"
1750 -@(for i in $(srcdir)/test/URI/*.data ; do \
1751 name=`basename $$i`; \
1752 if [ ! -d $$i ] ; then \
1753 if [ ! -f $(srcdir)/result/URI/$$name ] ; then \
1754 echo New test file $$name ; \
1755 $(CHECKER) $(top_builddir)/testURI -base 'http://foo.com/path/to/index.html?orig#help' < $$i > $(srcdir)/result/URI/$$name ; \
1756 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
1757 else \
1758 log=`$(CHECKER) $(top_builddir)/testURI -base 'http://foo.com/path/to/index.html?orig#help' < $$i 2>&1 > result.$$name ; \
1759 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1760 diff $(srcdir)/result/URI/$$name result.$$name` ; \
1761 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1762 rm result.$$name ; \
1763 fi ; fi ; done)
1764 -@(for i in $(srcdir)/test/URI/*.uri ; do \
1765 name=`basename $$i`; \
1766 if [ ! -d $$i ] ; then \
1767 if [ ! -f $(srcdir)/result/URI/$$name ] ; then \
1768 echo New test file $$name ; \
1769 $(CHECKER) $(top_builddir)/testURI < $$i > $(srcdir)/result/URI/$$name ; \
1770 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
1771 else \
1772 log=`$(CHECKER) $(top_builddir)/testURI < $$i 2>&1 > result.$$name ; \
1773 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1774 diff $(srcdir)/result/URI/$$name result.$$name` ; \
1775 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1776 rm result.$$name ; \
1777 fi ; fi ; done)
1778
1779XPathtests : testXPath$(EXEEXT)
1780 @(echo > .memdump)
1781 @echo "## XPath regression tests"
1782 -@(if [ "`$(top_builddir)/testXPath | grep 'support not compiled in'`" != "" ] ; \
1783 then echo Skipping debug not compiled in ; exit 0 ; fi ; \
1784 for i in $(srcdir)/test/XPath/expr/* ; do \
1785 name=`basename $$i`; \
1786 if [ ! -d $$i ] ; then \
1787 if [ ! -f $(srcdir)/result/XPath/expr/$$name ] ; then \
1788 echo New test file $$name ; \
1789 $(CHECKER) $(top_builddir)/testXPath -f --expr $$i > $(srcdir)/result/XPath/expr/$$name ; \
1790 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1791 else \
1792 log=`$(CHECKER) $(top_builddir)/testXPath -f --expr $$i 2>&1 > result.$$name ; \
1793 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1794 diff $(srcdir)/result/XPath/expr/$$name result.$$name` ; \
1795 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1796 rm result.$$name ; \
1797 fi ; fi ; done ; \
1798 for i in $(srcdir)/test/XPath/docs/* ; do \
1799 if [ ! -d $$i ] ; then \
1800 doc=`basename $$i`; \
1801 for j in $(srcdir)/test/XPath/tests/$$doc* ; do \
1802 if [ ! -f $$j ] ; then continue ; fi ; \
1803 name=`basename $$j`; \
1804 if [ ! -d $$j ] ; then \
1805 if [ ! -f $(srcdir)/result/XPath/tests/$$name ] ; then \
1806 echo New test file $$name ; \
1807 $(CHECKER) $(top_builddir)/testXPath -f -i $$i $$j > $(srcdir)/result/XPath/tests/$$name ; \
1808 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1809 else \
1810 log=`$(CHECKER) $(top_builddir)/testXPath -f -i $$i $$j 2>&1 > result.$$name ; \
1811 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1812 diff $(srcdir)/result/XPath/tests/$$name result.$$name` ; \
1813 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1814 rm result.$$name ; \
1815 fi ; fi ; done ; fi ; done)
1816
1817XPtrtests : testXPath$(EXEEXT)
1818 @(echo > .memdump)
1819 @echo "## XPointer regression tests"
1820 -@(if [ "`$(top_builddir)/testXPath | grep 'support not compiled in'`" != "" ] ; \
1821 then echo Skipping debug not compiled in ; exit 0 ; fi ; \
1822 for i in $(srcdir)/test/XPath/docs/* ; do \
1823 if [ ! -d $$i ] ; then \
1824 doc=`basename $$i`; \
1825 for j in $(srcdir)/test/XPath/xptr/$$doc* ; do \
1826 if [ ! -f $$j ] ; then continue ; fi ; \
1827 name=`basename $$j`; \
1828 if [ ! -d $$j ] ; then \
1829 if [ ! -f $(srcdir)/result/XPath/xptr/$$name ] ; then \
1830 echo New test file $$name ; \
1831 $(CHECKER) $(top_builddir)/testXPath -xptr -f -i $$i $$j > $(srcdir)/result/XPath/xptr/$$name ; \
1832 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
1833 else \
1834 log=`$(CHECKER) $(top_builddir)/testXPath -xptr -f -i $$i $$j 2>&1 > result.$$name ; \
1835 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1836 diff $(srcdir)/result/XPath/xptr/$$name result.$$name` ; \
1837 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1838 rm result.$$name ; \
1839 fi ; fi ; done ; fi ; done)
1840
1841XIncludetests : xmllint$(EXEEXT)
1842 @(echo > .memdump)
1843 @echo "## XInclude regression tests"
1844 -@(for i in $(srcdir)/test/XInclude/docs/* ; do \
1845 name=`basename $$i`; \
1846 if [ ! -d $$i ] ; then \
1847 if [ ! -f $(srcdir)/result/XInclude/$$name ] ; then \
1848 echo New test file $$name ; \
1849 $(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude $$i > $(srcdir)/result/XInclude/$$name 2> $(srcdir)/result/XInclude/$$name.err ; \
1850 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1851 else \
1852 log=`$(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude $$i > result.$$name 2>error.$$name ; \
1853 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1854 diff $(srcdir)/result/XInclude/$$name result.$$name ; \
1855 diff $(srcdir)/result/XInclude/$$name.err error.$$name` ; \
1856 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1857 rm result.$$name error.$$name ; \
1858 fi ; fi ; done)
1859 -@(for i in $(srcdir)/test/XInclude/docs/* ; do \
1860 name=`basename $$i`; \
1861 if [ ! -d $$i ] ; then \
1862 if [ ! -f $(srcdir)/result/XInclude/$$name ] ; then \
1863 echo New test file $$name ; \
1864 $(CHECKER) $(top_builddir)/xmllint --nowarning --noxincludenode $$i > $(srcdir)/result/XInclude/$$name 2> $(srcdir)/result/XInclude/$$name.err ; \
1865 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1866 else \
1867 log=`$(CHECKER) $(top_builddir)/xmllint --nowarning --noxincludenode $$i > result.$$name 2>error.$$name ; \
1868 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1869 diff $(srcdir)/result/XInclude/$$name result.$$name ; \
1870 diff $(srcdir)/result/XInclude/$$name.err error.$$name` ; \
1871 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1872 rm result.$$name error.$$name ; \
1873 fi ; fi ; done)
1874 @(echo > .memdump)
1875 @echo "## XInclude xmlReader regression tests"
1876 -@(for i in $(srcdir)/test/XInclude/docs/* ; do \
1877 name=`basename $$i`; \
1878 if [ ! -d $$i ] ; then \
1879 if [ ! -f $(srcdir)/result/XInclude/$$name.rdr ] ; then \
1880 echo New test file $$name ; \
1881 $(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude --stream --debug $$i > $(srcdir)/result/XInclude/$$name.rdr ; \
1882 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1883 else \
1884 log=`$(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude --stream --debug $$i > result.$$name 2>error.$$name ; \
1885 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1886 diff $(srcdir)/result/XInclude/$$name.err error.$$name ; \
1887 diff $(srcdir)/result/XInclude/$$name.rdr result.$$name` ; \
1888 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1889 rm result.$$name error.$$name ; \
1890 fi ; fi ; done)
1891 -@(for i in $(srcdir)/test/XInclude/docs/* ; do \
1892 name=`basename $$i`; \
1893 if [ ! -d $$i ] ; then \
1894 if [ ! -f $(srcdir)/result/XInclude/$$name.rdr ] ; then \
1895 echo New test file $$name ; \
1896 $(CHECKER) $(top_builddir)/xmllint --nowarning --noxincludenode --stream --debug $$i > $(srcdir)/result/XInclude/$$name.rdr ; \
1897 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1898 else \
1899 log=`$(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude --stream --debug $$i > result.$$name 2>error.$$name ; \
1900 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1901 diff $(srcdir)/result/XInclude/$$name.err error.$$name ; \
1902 diff $(srcdir)/result/XInclude/$$name.rdr result.$$name` ; \
1903 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1904 rm result.$$name error.$$name ; \
1905 fi ; fi ; done)
1906
1907Scripttests : xmllint$(EXEEXT)
1908 @(echo > .memdump)
1909 @echo "## Scripts regression tests"
1910 @echo "## Some of the base computations may be different if srcdir != ."
1911 -@(for i in $(srcdir)/test/scripts/*.script ; do \
1912 name=`basename $$i .script`; \
1913 xml=$(srcdir)/test/scripts/`basename $$i .script`.xml; \
1914 if [ -f $$xml ] ; then \
1915 if [ ! -f $(srcdir)/result/scripts/$$name ] ; then \
1916 echo New test file $$name ; \
1917 $(CHECKER) $(top_builddir)/xmllint --shell $$xml < $$i > $(srcdir)/result/scripts/$$name 2> $(srcdir)/result/scripts/$$name.err ; \
1918 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1919 else \
1920 log=`$(CHECKER) $(top_builddir)/xmllint --shell $$xml < $$i > result.$$name 2> result.$$name.err ; \
1921 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1922 diff $(srcdir)/result/scripts/$$name result.$$name ; \
1923 diff $(srcdir)/result/scripts/$$name.err result.$$name.err` ; \
1924 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1925 rm result.$$name result.$$name.err ; \
1926 fi ; fi ; done)
1927
1928Catatests : xmlcatalog$(EXEEXT)
1929 @(echo > .memdump)
1930 @echo "## Catalog regression tests"
1931 -@(for i in $(srcdir)/test/catalogs/*.script ; do \
1932 name=`basename $$i .script`; \
1933 xml=$(srcdir)/test/catalogs/`basename $$i .script`.xml; \
1934 if [ -f $$xml ] ; then \
1935 if [ ! -f $(srcdir)/result/catalogs/$$name ] ; then \
1936 echo New test file $$name ; \
1937 $(CHECKER) $(top_builddir)/xmlcatalog --shell $$xml < $$i 2>&1 > $(srcdir)/result/catalogs/$$name ; \
1938 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1939 else \
1940 log=`$(CHECKER) $(top_builddir)/xmlcatalog --shell $$xml < $$i 2>&1 > result.$$name ; \
1941 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1942 diff $(srcdir)/result/catalogs/$$name result.$$name` ; \
1943 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1944 rm result.$$name ; \
1945 fi ; fi ; done)
1946 -@(for i in $(srcdir)/test/catalogs/*.script ; do \
1947 name=`basename $$i .script`; \
1948 sgml=$(srcdir)/test/catalogs/`basename $$i .script`.sgml; \
1949 if [ -f $$sgml ] ; then \
1950 if [ ! -f $(srcdir)/result/catalogs/$$name ] ; then \
1951 echo New test file $$name ; \
1952 $(CHECKER) $(top_builddir)/xmlcatalog --shell $$sgml < $$i > $(srcdir)/result/catalogs/$$name ; \
1953 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1954 else \
1955 log=`$(CHECKER) $(top_builddir)/xmlcatalog --shell $$sgml < $$i > result.$$name ; \
1956 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1957 diff $(srcdir)/result/catalogs/$$name result.$$name` ; \
1958 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
1959 rm result.$$name ; \
1960 fi ; fi ; done)
1961 @echo "## Add and del operations on XML Catalogs"
1962 -@($(CHECKER) $(top_builddir)/xmlcatalog --create --noout $(srcdir)/result/catalogs/mycatalog; \
1963 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
1964 $(CHECKER) $(top_builddir)/xmlcatalog --noout --add public Pubid sysid $(srcdir)/result/catalogs/mycatalog; \
1965 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
1966 $(CHECKER) $(top_builddir)/xmlcatalog --noout --add public Pubid2 sysid2 $(srcdir)/result/catalogs/mycatalog; \
1967 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
1968 $(CHECKER) $(top_builddir)/xmlcatalog --noout --add public Pubid3 sysid3 $(srcdir)/result/catalogs/mycatalog; \
1969 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
1970 diff result/catalogs/mycatalog.full $(srcdir)/result/catalogs/mycatalog; \
1971 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
1972 $(CHECKER) $(top_builddir)/xmlcatalog --noout --del sysid $(srcdir)/result/catalogs/mycatalog; \
1973 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
1974 $(CHECKER) $(top_builddir)/xmlcatalog --noout --del sysid3 $(srcdir)/result/catalogs/mycatalog; \
1975 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
1976 $(CHECKER) $(top_builddir)/xmlcatalog --noout --del sysid2 $(srcdir)/result/catalogs/mycatalog; \
1977 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
1978 diff result/catalogs/mycatalog.empty $(srcdir)/result/catalogs/mycatalog; \
1979 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
1980 rm -f $(srcdir)/result/catalogs/mycatalog)
1981
1982SVGtests : xmllint$(EXEEXT)
1983 @echo "## SVG parsing regression tests"
1984 -@(for i in $(srcdir)/test/SVG/* ; do \
1985 name=`basename $$i`; \
1986 if [ ! -d $$i ] ; then \
1987 if [ ! -f $(srcdir)/result/SVG/$$name ] ; then \
1988 echo New test file $$name ; \
1989 $(CHECKER) $(top_builddir)/xmllint $$i > $(srcdir)/result/SVG/$$name ; \
1990 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1991 else \
1992 echo Testing $$name ; \
1993 $(CHECKER) $(top_builddir)/xmllint $$i > result.$$name ; \
1994 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1995 diff $(srcdir)/result/SVG/$$name result.$$name ; \
1996 $(CHECKER) $(top_builddir)/xmllint result.$$name > result2.$$name ; \
1997 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
1998 diff result.$$name result2.$$name ; \
1999 rm result.$$name result2.$$name ; \
2000 fi ; fi ; done)
2001
2002Threadtests : testThreads$(EXEEXT)
2003 @echo "## Threaded regression tests"
2004 -@($(CHECKER) $(top_builddir)/testThreads ; \
2005 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"; \
2006 exit 0)
2007
2008Readertests : xmllint$(EXEEXT)
2009 @(echo > .memdump)
2010 @echo "## Reader regression tests"
2011 -@(for i in $(srcdir)/test/* ; do \
2012 name=`basename $$i`; \
2013 if [ ! -d $$i ] ; then \
2014 if [ ! -f $(srcdir)/result/$$name.rdr ] ; then \
2015 echo New test file $$name ; \
2016 $(CHECKER) $(top_builddir)/xmllint --nonet --debug --stream $$i > $(srcdir)/result/$$name.rdr 2>/dev/null ; \
2017 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2018 else \
2019 log=`$(CHECKER) $(top_builddir)/xmllint --nonet --debug --stream $$i > result.$$name 2>/dev/null ; \
2020 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2021 diff $(srcdir)/result/$$name.rdr result.$$name` ; \
2022 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
2023 rm result.$$name ; \
2024 fi ; fi ; done)
2025 @echo "## Reader on memory regression tests"
2026 -@(for i in $(srcdir)/test/* ; do \
2027 name=`basename $$i`; \
2028 if [ ! -d $$i ] ; then \
2029 if [ ! -f $(srcdir)/result/$$name.rdr ] ; then \
2030 echo New test file $$name ; \
2031 $(CHECKER) $(top_builddir)/xmllint --memory --nonet --debug --stream $$i > $(srcdir)/result/$$name.rdr 2>/dev/null ; \
2032 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2033 else \
2034 log=`$(CHECKER) $(top_builddir)/xmllint --memory --nonet --debug --stream $$i > result.$$name 2>/dev/null ; \
2035 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2036 diff $(srcdir)/result/$$name.rdr result.$$name` ; \
2037 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
2038 rm result.$$name ; \
2039 fi ; fi ; done)
2040 @(echo > .memdump)
2041 @echo "## Walker regression tests"
2042 -@(for i in $(srcdir)/test/* ; do \
2043 name=`basename $$i`; \
2044 if [ ! -d $$i ] ; then \
2045 if [ ! -f $(srcdir)/result/$$name.rdr ] ; then \
2046 echo New test file $$name ; \
2047 $(CHECKER) $(top_builddir)/xmllint --nonet --debug --walker $$i > $(srcdir)/result/$$name.rdr 2>/dev/null ; \
2048 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2049 else \
2050 log=`$(CHECKER) $(top_builddir)/xmllint --nonet --debug --walker $$i > result.$$name 2>/dev/null ; \
2051 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2052 diff $(srcdir)/result/$$name.rdr result.$$name` ; \
2053 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
2054 rm result.$$name ; \
2055 fi ; fi ; done)
2056 @echo "## Reader entities substitution regression tests"
2057 -@(for i in $(srcdir)/test/* ; do \
2058 name=`basename $$i`; \
2059 if [ ! -d $$i ] ; then \
2060 if [ ! -f $(srcdir)/result/$$name.rde ] ; then \
2061 echo New test file $$name ; \
2062 $(CHECKER) $(top_builddir)/xmllint --noent --nonet --debug --stream $$i > $(srcdir)/result/$$name.rde 2>/dev/null ; \
2063 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2064 else \
2065 log=`$(CHECKER) $(top_builddir)/xmllint --noent --nonet --debug --stream $$i > result.$$name 2>/dev/null ; \
2066 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2067 diff $(srcdir)/result/$$name.rde result.$$name` ; \
2068 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
2069 rm result.$$name ; \
2070 fi ; fi ; done)
2071
2072SAXtests : testSAX$(EXEEXT)
2073 @(echo > .memdump)
2074 @echo "## SAX1 callbacks regression tests"
2075 -@(for i in $(srcdir)/test/* ; do \
2076 name=`basename $$i`; \
2077 if [ ! -d $$i ] ; then \
2078 if [ ! -f $(srcdir)/result/$$name.sax ] ; then \
2079 echo New test file $$name ; \
2080 $(CHECKER) $(top_builddir)/testSAX $$i > $(srcdir)/result/$$name.sax 2> /dev/null ; \
2081 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2082 else \
2083 log=`$(CHECKER) $(top_builddir)/testSAX $$i > result.$$name 2> /dev/null ; \
2084 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2085 diff $(srcdir)/result/$$name.sax result.$$name` ; \
2086 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
2087 rm result.$$name ; \
2088 fi ; fi ; done)
2089 @echo "## SAX2 callbacks regression tests"
2090 -@(for i in $(srcdir)/test/* ; do \
2091 name=`basename $$i`; \
2092 if [ ! -d $$i ] ; then \
2093 if [ ! -f $(srcdir)/result/$$name.sax2 ] ; then \
2094 echo New test file $$name ; \
2095 $(CHECKER) $(top_builddir)/testSAX --sax2 $$i > $(srcdir)/result/$$name.sax2 2> /dev/null ; \
2096 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2097 else \
2098 log=`$(CHECKER) $(top_builddir)/testSAX --sax2 $$i > result.$$name 2> /dev/null ; \
2099 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2100 diff $(srcdir)/result/$$name.sax2 result.$$name` ; \
2101 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
2102 rm result.$$name ; \
2103 fi ; fi ; done)
2104
2105Validtests : xmllint$(EXEEXT)
2106 @(echo > .memdump)
2107 @echo "## Valid documents regression tests"
2108 -@(for i in $(srcdir)/test/VCM/* ; do \
2109 name=`basename $$i`; \
2110 if [ ! -d $$i ] ; then \
2111 log=`$(CHECKER) $(top_builddir)/xmllint --valid --noout --nowarning $$i ; \
2112 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0"`;\
2113 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
2114 fi ; done ; exit 0)
2115 @echo "## Validity checking regression tests"
2116 -@(for i in $(srcdir)/test/VC/* ; do \
2117 name=`basename $$i`; \
2118 if [ ! -d $$i ] ; then \
2119 if [ ! -f $(srcdir)/result/VC/$$name ] ; then \
2120 echo New test file $$name ; \
2121 $(CHECKER) $(top_builddir)/xmllint --noout --valid $$i 2> $(srcdir)/result/VC/$$name ; \
2122 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2123 else \
2124 log=`$(CHECKER) $(top_builddir)/xmllint --noout --valid $$i 2> result.$$name ; \
2125 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2126 diff $(srcdir)/result/VC/$$name result.$$name` ; \
2127 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
2128 rm result.$$name ; \
2129 fi ; fi ; done)
2130 @echo "## General documents valid regression tests"
2131 -@(for i in $(srcdir)/test/valid/* ; do \
2132 name=`basename $$i`; \
2133 if [ ! -d $$i ] ; then \
2134 if [ ! -f $(srcdir)/result/valid/$$name ] ; then \
2135 echo New test file $$name ; \
2136 $(CHECKER) $(top_builddir)/xmllint --valid $$i > $(srcdir)/result/valid/$$name 2>$(srcdir)/result/valid/$$name.err ; \
2137 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2138 else \
2139 log=`$(CHECKER) $(top_builddir)/xmllint --valid $$i > result.$$name 2>error.$$name ; \
2140 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2141 diff $(srcdir)/result/valid/$$name result.$$name ; \
2142 diff $(srcdir)/result/valid/$$name.err error.$$name` ; \
2143 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
2144 rm result.$$name error.$$name ; \
2145 fi ; fi ; done)
2146
2147Regexptests: testRegexp$(EXEEXT)
2148 @(echo > .memdump)
2149 @echo "## Regexp regression tests"
2150 -@(for i in $(srcdir)/test/regexp/* ; do \
2151 name=`basename $$i`; \
2152 if [ ! -d $$i ] ; then \
2153 if [ ! -f $(srcdir)/result/regexp/$$name ] ; then \
2154 echo New test file $$name ; \
2155 $(CHECKER) $(top_builddir)/testRegexp -i $$i > $(srcdir)/result/regexp/$$name; \
2156 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2157 else \
2158 log=`$(CHECKER) $(top_builddir)/testRegexp -i $$i 2>&1 > result.$$name ; \
2159 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2160 diff $(srcdir)/result/regexp/$$name result.$$name` ; \
2161 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
2162 rm result.$$name ; \
2163 fi ; fi ; done)
2164 @echo "## Formal expresssions regression tests"
2165 -@(for i in $(srcdir)/test/expr/* ; do \
2166 name=`basename $$i`; \
2167 if [ ! -d $$i ] ; then \
2168 if [ ! -f $(srcdir)/result/expr/$$name ] ; then \
2169 echo New test file $$name ; \
2170 $(CHECKER) $(top_builddir)/testRegexp --expr -i $$i > $(srcdir)/result/expr/$$name; \
2171 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2172 else \
2173 log=`$(CHECKER) $(top_builddir)/testRegexp --expr -i $$i 2>&1 > result.$$name ; \
2174 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2175 diff $(srcdir)/result/expr/$$name result.$$name` ; \
2176 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
2177 rm result.$$name ; \
2178 fi ; fi ; done)
2179
2180Automatatests: testAutomata$(EXEEXT)
2181 @(echo > .memdump)
2182 @echo "## Automata regression tests"
2183 -@(for i in $(srcdir)/test/automata/* ; do \
2184 name=`basename $$i`; \
2185 if [ ! -d $$i ] ; then \
2186 if [ ! -f $(srcdir)/result/automata/$$name ] ; then \
2187 echo New test file $$name ; \
2188 $(CHECKER) $(top_builddir)/testAutomata $$i > $(srcdir)/result/automata/$$name; \
2189 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2190 else \
2191 log=`$(CHECKER) $(top_builddir)/testAutomata $$i 2>&1 > result.$$name ; \
2192 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2193 diff $(srcdir)/result/automata/$$name result.$$name` ; \
2194 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
2195 rm result.$$name ; \
2196 fi ; fi ; done)
2197
2198dba100000.xml: dbgenattr.pl
2199 @echo "## generating dba100000.xml"
2200 @($(PERL) $(top_srcdir)/dbgenattr.pl 100000 > dba100000.xml)
2201
2202Timingtests: xmllint$(EXEEXT) dba100000.xml
2203 @echo "## Timing tests to try to detect performance"
2204 @echo "## as well a memory usage breakage when streaming"
2205 @echo "## 1/ using the file interface"
2206 @echo "## 2/ using the memory interface"
2207 @echo "## 3/ repeated DOM parsing"
2208 @echo "## 4/ repeated DOM validation"
2209 -@($(top_builddir)/xmllint --stream --timing dba100000.xml; \
2210 MEM=`cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}'`;\
2211 if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \
2212 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2213 exit 0)
2214 -@($(top_builddir)/xmllint --stream --timing --memory dba100000.xml; \
2215 MEM=`cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}'`;\
2216 if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \
2217 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2218 exit 0)
2219 -@($(top_builddir)/xmllint --noout --timing --repeat $(srcdir)/test/valid/REC-xml-19980210.xml; \
2220 MEM=`cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}'`;\
2221 if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \
2222 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2223 exit 0)
2224
2225VTimingtests: xmllint$(EXEEXT)
2226 -@($(top_builddir)/xmllint --noout --timing --valid --repeat $(srcdir)/test/valid/REC-xml-19980210.xml; \
2227 MEM=`cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}'`;\
2228 if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \
2229 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2230 exit 0)
2231
2232C14Ntests : testC14N$(EXEEXT)
2233 @echo "## C14N and XPath regression tests"
2234 -@(for m in with-comments without-comments exc-without-comments ; do \
2235 for i in $(srcdir)/test/c14n/$$m/*.xml ; do \
2236 if [ ! -d $$i ] ; then \
2237 name=`basename $$i .xml`; \
2238 cmdline="$(CHECKER) $(top_builddir)/testC14N --$$m $$i"; \
2239 if [ -f $(srcdir)/test/c14n/$$m/$$name.xpath ] ; then \
2240 cmdline="$$cmdline $(srcdir)/test/c14n/$$m/$$name.xpath"; \
2241 if [ -f $(srcdir)/test/c14n/$$m/$$name.ns ] ; then \
2242 cmdline="$$cmdline '`cat $(srcdir)/test/c14n/$$m/$$name.ns`'"; \
2243 fi; \
2244 fi; \
2245 $$cmdline > $(srcdir)/test/c14n/test.tmp; \
2246 if [ $$? -eq 0 ]; then \
2247 diff $(srcdir)/result/c14n/$$m/$$name $(srcdir)/test/c14n/test.tmp; \
2248 if [ $$? -ne 0 ]; then \
2249 echo "Test $$m/$$name failed"; \
2250 cat $(srcdir)/test/c14n/test.tmp; \
2251 fi; \
2252 else \
2253 echo "C14N failed"; \
2254 fi; \
2255 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2256 fi; \
2257 rm -f $(srcdir)/test/c14n/test.tmp; \
2258 done; \
2259 done)
2260
2261Schemastests: testSchemas$(EXEEXT)
2262 @(echo > .memdump)
2263 @echo "## Schemas regression tests"
2264 -@(for i in $(srcdir)/test/schemas/*_*.xsd ; do \
2265 name=`basename $$i | sed 's+_.*++'`; \
2266 sno=`basename $$i | sed 's+.*_\(.*\).xsd+\1+'`; \
2267 for j in $(srcdir)/test/schemas/"$$name"_*.xml ; do \
2268 if [ -f $$j ] ; then \
2269 xno=`basename $$j | sed 's+.*_\(.*\).xml+\1+'`; \
2270 if [ ! -f $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno" ]; \
2271 then \
2272 echo New test file "$$name"_"$$sno"_"$$xno" ; \
2273 $(CHECKER) $(top_builddir)/testSchemas $$i $$j \
2274 > $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno" \
2275 2> $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno".err; \
2276 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2277 else \
2278 log=`$(CHECKER) $(top_builddir)/testSchemas $$i $$j \
2279 > res.$$name 2> err.$$name;\
2280 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2281 diff $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno" \
2282 res.$$name;\
2283 diff $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno".err \
2284 err.$$name;\
2285 grep Unimplemented err.$$name`; \
2286 if [ -n "$$log" ] ; then echo "$$name"_"$$sno"_"$$xno" result ; echo $$log ; fi ; \
2287 rm res.$$name err.$$name ; \
2288 fi ; fi ;\
2289 done; done)
2290
2291Relaxtests: xmllint$(EXEEXT)
2292 @(echo > .memdump)
2293 @echo "## Relax-NG regression tests"
2294 -@(for i in $(srcdir)/test/relaxng/*.rng ; do \
2295 name=`basename $$i | sed 's+\.rng++'`; \
2296 if [ ! -f $(srcdir)/result/relaxng/"$$name"_valid ] ; then \
2297 echo New schemas $$name ; \
2298 $(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $(srcdir)/test/relaxng/tutorA.rng $$i \
2299 > $(srcdir)/result/relaxng/"$$name"_valid \
2300 2> $(srcdir)/result/relaxng/"$$name"_err; \
2301 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2302 else \
2303 log=`$(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $(srcdir)/test/relaxng/tutorA.rng $$i \
2304 > res.$$name 2> err.$$name;\
2305 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2306 diff $(srcdir)/result/relaxng/"$$name"_valid \
2307 res.$$name;\
2308 diff $(srcdir)/result/relaxng/"$$name"_err \
2309 err.$$name | grep -v "error detected at";\
2310 grep Unimplemented err.$$name`; \
2311 if [ -n "$$log" ] ; then echo schemas $$name result ; echo $$log ; fi ; \
2312 rm res.$$name err.$$name ; \
2313 fi; \
2314 for j in $(srcdir)/test/relaxng/"$$name"_*.xml ; do \
2315 if [ -f $$j ] ; then \
2316 xno=`basename $$j | sed 's+.*_\(.*\).xml+\1+'`; \
2317 if [ ! -f $(srcdir)/result/relaxng/"$$name"_"$$xno" ]; \
2318 then \
2319 echo New test file "$$name"_"$$xno" ; \
2320 $(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $$i $$j \
2321 > $(srcdir)/result/relaxng/"$$name"_"$$xno" \
2322 2> $(srcdir)/result/relaxng/"$$name"_"$$xno".err; \
2323 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2324 else \
2325 log=`$(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $$i $$j \
2326 > res.$$name 2> err.$$name;\
2327 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2328 diff $(srcdir)/result/relaxng/"$$name"_"$$xno" \
2329 res.$$name;\
2330 diff $(srcdir)/result/relaxng/"$$name"_"$$xno".err \
2331 err.$$name | grep -v "error detected at";\
2332 grep Unimplemented err.$$name`; \
2333 if [ -n "$$log" ] ; then echo "$$name"_"$$xno" result ; echo $$log ; fi ; \
2334 rm res.$$name err.$$name ; \
2335 fi ; fi ; \
2336 done; done)
2337 @echo "## Relax-NG streaming regression tests"
2338 -@(for i in $(srcdir)/test/relaxng/*.rng ; do \
2339 name=`basename $$i | sed 's+\.rng++'`; \
2340 for j in $(srcdir)/test/relaxng/"$$name"_*.xml ; do \
2341 if [ -f $$j ] ; then \
2342 xno=`basename $$j | sed 's+.*_\(.*\).xml+\1+'`; \
2343 if [ ! -f $(srcdir)/result/relaxng/"$$name"_"$$xno" ]; \
2344 then \
2345 echo New test file "$$name"_"$$xno" ; \
2346 $(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $$i $$j \
2347 > $(srcdir)/result/relaxng/"$$name"_"$$xno" \
2348 2> $(srcdir)/result/relaxng/"$$name"_"$$xno".err; \
2349 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2350 else \
2351 log=`$(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --stream --relaxng $$i $$j \
2352 > res.$$name 2> err.$$name;\
2353 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2354 diff $(srcdir)/result/relaxng/"$$name"_"$$xno" res.$$name;\
2355 if [ "$$name" != "tutor10_1" -a "$$name" != "tutor10_2" -a "$$name" != "tutor3_2" -a "$$name" != "307377" ] ; then \
2356 diff $(srcdir)/result/relaxng/"$$name"_"$$xno".err \
2357 err.$$name | grep -v "error detected at";\
2358 fi ; grep Unimplemented err.$$name`; \
2359 if [ -n "$$log" ] ; then echo "$$name"_"$$xno" result ; echo $$log ; fi ; \
2360 rm res.$$name err.$$name ; \
2361 fi ; fi ; \
2362 done; done)
2363
2364Schematrontests: xmllint$(EXEEXT)
2365 @(echo > .memdump)
2366 @echo "## Schematron regression tests"
2367 -@(for i in $(srcdir)/test/schematron/*.sct ; do \
2368 name=`basename $$i | sed 's+\.sct++'`; \
2369 for j in $(srcdir)/test/schematron/"$$name"_*.xml ; do \
2370 if [ -f $$j ] ; then \
2371 xno=`basename $$j | sed 's+.*_\(.*\).xml+\1+'`; \
2372 if [ ! -f $(srcdir)/result/schematron/"$$name"_"$$xno" ]; \
2373 then \
2374 echo New test file "$$name"_"$$xno" ; \
2375 $(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --schematron $$i $$j \
2376 > $(srcdir)/result/schematron/"$$name"_"$$xno" \
2377 2> $(srcdir)/result/schematron/"$$name"_"$$xno".err; \
2378 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2379 else \
2380 log=`$(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --schematron $$i $$j \
2381 > res.$$name 2> err.$$name;\
2382 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2383 diff $(srcdir)/result/schematron/"$$name"_"$$xno" \
2384 res.$$name;\
2385 diff $(srcdir)/result/schematron/"$$name"_"$$xno".err \
2386 err.$$name | grep -v "error detected at";\
2387 grep Unimplemented err.$$name`; \
2388 if [ -n "$$log" ] ; then echo "$$name"_"$$xno" result ; echo $$log ; fi ; \
2389 rm res.$$name err.$$name ; \
2390 fi ; fi ; \
2391 done; done)
2392
2393RelaxNGPythonTests:
2394 @(if [ -x $(PYTHON) ] ; then \
2395 PYTHONPATH=$(top_builddir)/python:$(top_builddir)/python/.libs:$$PYTHONPATH ; \
2396 export PYTHONPATH; \
2397 LD_LIBRARY_PATH="$(top_builddir)/.libs:$$LD_LIBRARY_PATH" ; \
2398 export LD_LIBRARY_PATH; \
2399 echo "## Relax-NG Python based test suite 1" ; \
2400 $(CHECKER) $(PYTHON) $(srcdir)/check-relaxng-test-suite.py ; \
2401 echo "## Relax-NG Python based test suite 2" ; \
2402 $(CHECKER) $(PYTHON) $(srcdir)/check-relaxng-test-suite2.py ; \
2403 fi)
2404
2405SchemasPythonTests:
2406 @(if [ -x $(PYTHON) ] ; then \
2407 PYTHONPATH=$(top_builddir)/python:$(top_builddir)/python/.libs:$$PYTHONPATH; \
2408 export PYTHONPATH; \
2409 LD_LIBRARY_PATH="$(top_builddir)/.libs:$$LD_LIBRARY_PATH" ; \
2410 export LD_LIBRARY_PATH; \
2411 echo "## XML Schemas datatypes Python based test suite" ; \
2412 echo "## It is normal to see 11 errors reported" ; \
2413 $(CHECKER) $(PYTHON) $(srcdir)/check-xsddata-test-suite.py ; \
2414 fi)
2415 @(if [ -x $(PYTHON) -a -d xstc ] ; then cd xstc ; $(MAKE) CHECKER="$(CHECKER)" MAKEFLAGS+=--silent pytests ; fi)
2416
2417Patterntests: xmllint$(EXEEXT)
2418 @(echo > .memdump)
2419 @echo "## Pattern regression tests"
2420 -@(for i in $(srcdir)/test/pattern/*.pat ; do \
2421 name=`basename $$i .pat`; \
2422 if [ -f $(srcdir)/test/pattern/$$name.xml ] ; then \
2423 if [ ! -f $(srcdir)/result/pattern/$$name ] ; then \
2424 rm -f result.$$name ; \
2425 echo New test file $$name ; \
2426 for pat in `cat $$i` ; do \
2427 $(CHECKER) $(top_builddir)/xmllint --walker --pattern $$pat $(srcdir)/test/pattern/$$name.xml >> $(srcdir)/result/pattern/$$name ; \
2428 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2429 done ;\
2430 else \
2431 rm -f result.$$name ; \
2432 lst=`cat $$i` ; \
2433 log=`for pat in $$lst ; do $(CHECKER) $(top_builddir)/xmllint --walker --pattern $$pat $(srcdir)/test/pattern/$$name.xml 2>&1 >> result.$$name ; \
2434 grep "MORY ALLO" .memdump | grep -v "MEMORY ALLOCATED : 0";\
2435 done ;\
2436 diff $(srcdir)/result/pattern/$$name result.$$name` ; \
2437 if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
2438 rm result.$$name ; \
2439 fi ; fi ; done ;)
2440
2441ModuleTests: testModule$(EXEEXT) testdso.la
2442 @echo "## Module tests"
2443 @(./testModule$(EXEEXT))
2444
2445cleanup:
2446 -@(find . -name .\#\* -exec rm {} \;)
2447
2448dist-hook: cleanup libxml2.spec
2449 -cp libxml2.spec $(distdir)
2450 (cd $(srcdir) ; tar -cf - --exclude CVS --exclude .svn win32 macos vms bakefile test result) | (cd $(distdir); tar xf -)
2451
2452dist-source: distdir
2453 $(AMTAR) -chof - --exclude Tests --exclude test --exclude result $(distdir) | GZIP=$(GZIP_ENV) gzip -c >`echo "$(distdir)" | sed "s+libxml2+libxml2-sources+"`.tar.gz
2454
2455dist-test: distdir
2456 (mkdir -p $(distdir))
2457 (cd $(srcdir) ; tar -cf - --exclude CVS --exclude .svn xstc/Tests) | (cd $(distdir); tar xf -)
2458 tar -cf - $(distdir)/test $(distdir)/result $(distdir)/xstc/Tests $(distdir)/Makefile.tests $(distdir)/README $(distdir)/README.tests $(distdir)/AUTHORS $(distdir)/testapi.c $(distdir)/runtest.c $(distdir)/runsuite.c | GZIP=$(GZIP_ENV) gzip -c >`echo "$(distdir)" | sed "s+libxml2+libxml2-tests+"`.tar.gz
2459 @(rm -rf $(distdir)/xstc/Test)
2460
2461cleantar:
2462 @(rm -f libxml*.tar.gz COPYING.LIB)
2463
2464rpm: cleanup cleantar
2465 @(unset CDPATH ; $(MAKE) dist-source dist && rpmbuild -ta $(distdir).tar.gz)
2466
2467xml2Conf.sh: xml2Conf.sh.in Makefile
2468 sed -e 's?\@XML_LIBDIR\@?$(XML_LIBDIR)?g' \
2469 -e 's?\@XML_INCLUDEDIR\@?$(XML_INCLUDEDIR)?g' \
2470 -e 's?\@VERSION\@?$(VERSION)?g' \
2471 -e 's?\@XML_LIBS\@?$(XML_LIBS)?g' \
2472 < $(srcdir)/xml2Conf.sh.in > xml2Conf.tmp \
2473 && mv xml2Conf.tmp xml2Conf.sh
2474
2475install-data-local:
2476 $(mkinstalldirs) $(DESTDIR)$(BASE_DIR)/$(DOC_MODULE)
2477 -@INSTALL@ -m 0644 $(srcdir)/Copyright $(DESTDIR)$(BASE_DIR)/$(DOC_MODULE)
2478 $(mkinstalldirs) $(DESTDIR)$(EXAMPLES_DIR)
2479 -@INSTALL@ -m 0644 $(srcdir)/xmllint.c $(DESTDIR)$(EXAMPLES_DIR)
2480 -@INSTALL@ -m 0644 $(srcdir)/testSAX.c $(DESTDIR)$(EXAMPLES_DIR)
2481 -@INSTALL@ -m 0644 $(srcdir)/testHTML.c $(DESTDIR)$(EXAMPLES_DIR)
2482 -@INSTALL@ -m 0644 $(srcdir)/testXPath.c $(DESTDIR)$(EXAMPLES_DIR)
2483
2484uninstall-local:
2485 rm $(DESTDIR)$(EXAMPLES_DIR)/testXPath.c
2486 rm $(DESTDIR)$(EXAMPLES_DIR)/testHTML.c
2487 rm $(DESTDIR)$(EXAMPLES_DIR)/testSAX.c
2488 rm $(DESTDIR)$(EXAMPLES_DIR)/xmllint.c
2489 rm -rf $(DESTDIR)$(EXAMPLES_DIR)
2490 rm $(DESTDIR)$(BASE_DIR)/$(DOC_MODULE)/Copyright
2491 rm -rf $(DESTDIR)$(BASE_DIR)/$(DOC_MODULE)
2492
2493tst: tst.c
2494 $(CC) $(CFLAGS) -Iinclude -o tst tst.c .libs/libxml2.a -lpthread -lm -lz
2495
2496sparse: clean
2497 $(MAKE) CC=cgcc
2498# Tell versions [3.59,3.63) of GNU make to not export all variables.
2499# Otherwise a system limit (for SysV at least) may be exceeded.
2500.NOEXPORT:
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette