Tag
Hash :
1566d3a9
Author :
Date :
1999-07-15T14:24:29
Added XPath code (http://www.w3.org/TR/xpath), updated HTML support and docs, Daniel
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186
## Process this file with automake to produce Makefile.in
SUBDIRS = doc
INCLUDES = -I@srcdir@ @CORBA_CFLAGS@ $(VERSION_FLAGS)
VERSION_FLAGS = -DLIBXML_VERSION=\"@LIBXML_VERSION@\"
noinst_PROGRAMS=tester testSAX testHTML testXPath
bin_SCRIPTS=xml-config
lib_LTLIBRARIES = libxml.la
libxml_la_LDFLAGS = -version-info @LIBXML_VERSION_INFO@
libxml_la_SOURCES = \
SAX.c \
entities.c \
encoding.c \
error.c \
parser.c \
HTMLparser.c \
HTMLtree.c \
debugXML.c \
tree.c \
xpath.c \
valid.c
xmlincdir = $(includedir)/gnome-xml
xmlinc_HEADERS = \
entities.h \
encoding.h \
parser.h \
HTMLparser.h \
HTMLtree.h \
parserInternals.h \
debugXML.h \
xml-error.h \
tree.h \
xpath.h \
xmlIO.h \
valid.h
DEPS = $(top_builddir)/libxml.la
LDADDS = $(top_builddir)/libxml.la @Z_LIBS@
tester_SOURCES=tester.c
tester_LDFLAGS =
tester_DEPENDENCIES = $(DEPS)
tester_LDADD= $(LDADDS)
testSAX_SOURCES=testSAX.c
testSAX_LDFLAGS =
testSAX_DEPENDENCIES = $(DEPS)
testSAX_LDADD= $(LDADDS)
testHTML_SOURCES=testHTML.c
testHTML_LDFLAGS =
testHTML_DEPENDENCIES = $(DEPS)
testHTML_LDADD= $(LDADDS)
testXPath_SOURCES=testXPath.c
testXPath_LDFLAGS =
testXPath_DEPENDENCIES = $(DEPS)
testXPath_LDADD= $(LDADDS)
check-local: tests
testall : tests SVGtests SAXtests XPathtests
tests: HTMLtests XMLtests
HTMLtests : testHTML
@(DIR=`pwd`; cd $(srcdir) ; \
for i in test/HTML/* ; do \
if [ ! -d $$i ] ; then \
if [ ! -f result/HTML/`basename $$i` ] ; then \
echo New test file `basename $$i` ; \
$$DIR/testHTML $$i > result/HTML/`basename $$i` ; \
else \
echo Testing `basename $$i` ; \
$$DIR/testHTML $$i > result.`basename $$i` ; \
diff result/HTML/`basename $$i` result.`basename $$i` ; \
$$DIR/testHTML result.`basename $$i` > result2.`basename $$i` ; \
diff result.`basename $$i` result2.`basename $$i` ; \
rm result.`basename $$i` result2.`basename $$i` ; \
fi ; fi ; done)
XMLtests : tester
@(DIR=`pwd`; cd $(srcdir) ; \
for i in test/* ; do \
if [ ! -d $$i ] ; then \
if [ ! -f result/`basename $$i` ] ; then \
echo New test file `basename $$i` ; \
$$DIR/tester $$i > result/`basename $$i` ; \
else \
echo Testing `basename $$i` ; \
$$DIR/tester $$i > result.`basename $$i` ; \
diff result/`basename $$i` result.`basename $$i` ; \
$$DIR/tester result.`basename $$i` > result2.`basename $$i` ; \
diff result.`basename $$i` result2.`basename $$i` ; \
rm result.`basename $$i` result2.`basename $$i` ; \
fi ; fi ; done)
SVGtests : tester
@(DIR=`pwd`; cd $(srcdir) ; \
for i in test/SVG/* ; do \
if [ ! -d $$i ] ; then \
if [ ! -f result/SVG/`basename $$i` ] ; then \
echo New test file `basename $$i` ; \
$$DIR/tester $$i > result/SVG/`basename $$i` ; \
else \
echo Testing `basename $$i` ; \
$$DIR/tester $$i > result.`basename $$i` ; \
diff result/SVG/`basename $$i` result.`basename $$i` ; \
$$DIR/tester result.`basename $$i` > result2.`basename $$i` ; \
diff result.`basename $$i` result2.`basename $$i` ; \
rm result.`basename $$i` result2.`basename $$i` ; \
fi ; fi ; done)
XPathtests : testXPath
@(DIR=`pwd`; cd $(srcdir) ; \
for i in test/XPath/expr/* ; do \
if [ ! -d $$i ] ; then \
if [ ! -f result/XPath/expr/`basename $$i` ] ; then \
echo New test file `basename $$i` ; \
$$DIR/testXPath -f --expr $$i > result/XPath/expr/`basename $$i` ; \
else \
echo Testing `basename $$i` ; \
$$DIR/testXPath -f --expr $$i > result.`basename $$i` ; \
diff result/XPath/expr/`basename $$i` result.`basename $$i` ; \
rm result.`basename $$i` ; \
fi ; fi ; done)
@(DIR=`pwd`; cd $(srcdir) ; \
for i in test/XPath/docs/* ; do \
if [ ! -d $$i ] ; then \
name=`basename $$i`; \
for j in test/XPath/tests/$$name* ; do \
if [ ! -d $$j ] ; then \
if [ ! -f result/XPath/tests/`basename $$j` ] ; then \
echo New test file `basename $$i` ; \
$$DIR/testXPath -f -i $$i $$j > result/XPath/tests/`basename $$j` ; \
else \
echo Testing `basename $$j` ; \
$$DIR/testXPath -f -i $$i $$j > result.`basename $$j` ; \
diff result/XPath/tests/`basename $$j` result.`basename $$j` ; \
rm result.`basename $$j` ; \
fi ; fi ; done ; fi ; done)
SAXtests : testSAX
@(DIR=`pwd`; cd $(srcdir) ; \
for i in test/* ; do \
if [ ! -d $$i ] ; then \
if [ ! -f SAXresult/`basename $$i` ] ; then \
echo New test file `basename $$i` ; \
$$DIR/testSAX $$i > SAXresult/`basename $$i` ; \
else \
echo Testing `basename $$i` ; \
$$DIR/testSAX $$i > result.`basename $$i` ; \
diff SAXresult/`basename $$i` result.`basename $$i` ; \
rm result.`basename $$i` ; \
fi ; fi ; done)
## Put `exec' in the name because this should be installed by
## `install-exec', not `install-data'.
confexecdir=$(libdir)
confexec_DATA = xmlConf.sh
EXTRA_DIST = xmlConf.sh.in libxml.spec.in test result SAXresult
dist-hook:
cp libxml.spec $(distdir)
## We create xmlConf.sh here and not from configure because we want
## to get the paths expanded correctly. Macros like srcdir are given
## the value NONE in configure if the user doesn't specify them (this
## is an autoconf feature, not a bug).
xmlConf.sh: xmlConf.sh.in Makefile
## Use sed and then mv to avoid problems if the user interrupts.
sed -e 's?\@XML_LIBDIR\@?$(XML_LIBDIR)?g' \
-e 's?\@XML_INCLUDEDIR\@?$(XML_INCLUDEDIR)?g' \
-e 's?\@XML_LIBS\@?$(XML_LIBS)?g' \
< $(srcdir)/xmlConf.sh.in > xmlConf.tmp \
&& mv xmlConf.tmp xmlConf.sh