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