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