VirtualBox

source: vbox/trunk/src/libs/libxml2-2.9.4/Makefile.in@ 76389

最後變更 在這個檔案從76389是 65950,由 vboxsync 提交於 8 年 前

libxml 2.9.4: fix export

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

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