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 | 27fb075 | 1998-10-17 06:47:46 +0000 | [diff] [blame] | 3 | INCLUDES = -I@srcdir@ @CORBA_CFLAGS@ |
| 4 | |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 5 | noinst_PROGRAMS=tester |
| 6 | |
Daniel Veillard | a6e1d12 | 1998-10-04 14:41:05 +0000 | [diff] [blame] | 7 | bin_SCRIPTS=xml-config |
| 8 | |
Daniel Veillard | 0dc897e | 1998-07-26 04:12:22 +0000 | [diff] [blame] | 9 | lib_LTLIBRARIES = libxml.la |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 10 | |
Daniel Veillard | 0dc897e | 1998-07-26 04:12:22 +0000 | [diff] [blame] | 11 | libxml_la_SOURCES = \ |
Daniel Veillard | 260a68f | 1998-08-13 03:39:55 +0000 | [diff] [blame] | 12 | SAX.c \ |
| 13 | entities.c \ |
Daniel Veillard | 891e404 | 1998-10-19 00:43:02 +0000 | [diff] [blame] | 14 | encoding.c \ |
Daniel Veillard | 260a68f | 1998-08-13 03:39:55 +0000 | [diff] [blame] | 15 | error.c \ |
Arturo Espinosa | 52965fa | 1998-09-23 22:52:20 +0000 | [diff] [blame] | 16 | error.h \ |
Daniel Veillard | 260a68f | 1998-08-13 03:39:55 +0000 | [diff] [blame] | 17 | parser.c \ |
Daniel Veillard | baf4cd5 | 1998-10-27 22:56:57 +0000 | [diff] [blame] | 18 | debugXML.c \ |
Daniel Veillard | 260a68f | 1998-08-13 03:39:55 +0000 | [diff] [blame] | 19 | tree.c |
| 20 | |
Tom Tromey | c19653d | 1998-08-14 01:22:43 +0000 | [diff] [blame] | 21 | xmlincdir = $(includedir)/gnome-xml |
| 22 | xmlinc_HEADERS = \ |
Daniel Veillard | 260a68f | 1998-08-13 03:39:55 +0000 | [diff] [blame] | 23 | entities.h \ |
Daniel Veillard | 891e404 | 1998-10-19 00:43:02 +0000 | [diff] [blame] | 24 | encoding.h \ |
Daniel Veillard | 260a68f | 1998-08-13 03:39:55 +0000 | [diff] [blame] | 25 | parser.h \ |
Daniel Veillard | baf4cd5 | 1998-10-27 22:56:57 +0000 | [diff] [blame] | 26 | debugXML.h \ |
Daniel Veillard | 260a68f | 1998-08-13 03:39:55 +0000 | [diff] [blame] | 27 | tree.h |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 28 | |
Daniel Veillard | 0dc897e | 1998-07-26 04:12:22 +0000 | [diff] [blame] | 29 | DEPS = $(top_builddir)/libxml.la |
| 30 | LDADDS = $(top_builddir)/libxml.la @Z_LIBS@ |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 31 | |
| 32 | tester_SOURCES=tester.c |
| 33 | tester_LDFLAGS = |
| 34 | tester_DEPENDENCIES = $(DEPS) |
| 35 | tester_LDADD= $(LDADDS) |
| 36 | |
| 37 | tests : tester |
| 38 | @(DIR=`pwd`; cd $(srcdir) ; for i in test/* ; do \ |
| 39 | if [ ! -d $$i ] ; then \ |
| 40 | if [ ! -f result/`basename $$i` ] ; then \ |
| 41 | echo New test file `basename $$i` ; \ |
| 42 | $$DIR/tester $$i > result/`basename $$i` ; \ |
| 43 | else \ |
| 44 | echo Testing `basename $$i` ; \ |
| 45 | $$DIR/tester $$i > result.`basename $$i` ; \ |
| 46 | diff result/`basename $$i` result.`basename $$i` ; \ |
| 47 | rm result.`basename $$i` ; \ |
| 48 | fi ; fi ; done) |
| 49 | |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 50 | ## Put `exec' in the name because this should be installed by |
| 51 | ## `install-exec', not `install-data'. |
| 52 | |
| 53 | confexecdir=$(libdir) |
| 54 | confexec_DATA = xmlConf.sh |
| 55 | |
Martin Baulig | 4f71489 | 1999-01-16 19:08:11 +0000 | [diff] [blame] | 56 | EXTRA_DIST = xmlConf.sh.in libxml.spec |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 57 | |
| 58 | ## We create xmlConf.sh here and not from configure because we want |
| 59 | ## to get the paths expanded correctly. Macros like srcdir are given |
| 60 | ## the value NONE in configure if the user doesn't specify them (this |
| 61 | ## is an autoconf feature, not a bug). |
| 62 | |
| 63 | xmlConf.sh: xmlConf.sh.in Makefile |
| 64 | ## 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] | 65 | sed -e 's?\@XML_LIBDIR\@?$(XML_LIBDIR)?g' \ |
| 66 | -e 's?\@XML_INCLUDEDIR\@?$(XML_INCLUDEDIR)?g' \ |
| 67 | -e 's?\@XML_LIBS\@?$(XML_LIBS)?g' \ |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 68 | < $(srcdir)/xmlConf.sh.in > xmlConf.tmp \ |
| 69 | && mv xmlConf.tmp xmlConf.sh |