blob: 1c524ce0a11d801d10c5aa3cb40fe5b779b45ab1 [file] [log] [blame]
Daniel Veillard01791d51998-07-24 19:24:09 +00001## Process this file with automake to produce Makefile.in
2
Daniel Veillard27fb0751998-10-17 06:47:46 +00003INCLUDES = -I@srcdir@ @CORBA_CFLAGS@
4
Daniel Veillard01791d51998-07-24 19:24:09 +00005noinst_PROGRAMS=tester
6
Daniel Veillarda6e1d121998-10-04 14:41:05 +00007bin_SCRIPTS=xml-config
8
Daniel Veillard0dc897e1998-07-26 04:12:22 +00009lib_LTLIBRARIES = libxml.la
Daniel Veillard01791d51998-07-24 19:24:09 +000010
Daniel Veillard0dc897e1998-07-26 04:12:22 +000011libxml_la_SOURCES = \
Daniel Veillard260a68f1998-08-13 03:39:55 +000012 SAX.c \
13 entities.c \
Daniel Veillard891e4041998-10-19 00:43:02 +000014 encoding.c \
Daniel Veillard260a68f1998-08-13 03:39:55 +000015 error.c \
Arturo Espinosa52965fa1998-09-23 22:52:20 +000016 error.h \
Daniel Veillard260a68f1998-08-13 03:39:55 +000017 parser.c \
18 tester.c \
Daniel Veillardbaf4cd51998-10-27 22:56:57 +000019 debugXML.c \
Daniel Veillard260a68f1998-08-13 03:39:55 +000020 tree.c
21
Tom Tromeyc19653d1998-08-14 01:22:43 +000022xmlincdir = $(includedir)/gnome-xml
23xmlinc_HEADERS = \
Daniel Veillard260a68f1998-08-13 03:39:55 +000024 entities.h \
Daniel Veillard891e4041998-10-19 00:43:02 +000025 encoding.h \
Daniel Veillard260a68f1998-08-13 03:39:55 +000026 parser.h \
Daniel Veillardbaf4cd51998-10-27 22:56:57 +000027 debugXML.h \
Daniel Veillard260a68f1998-08-13 03:39:55 +000028 tree.h
Daniel Veillard01791d51998-07-24 19:24:09 +000029
Daniel Veillard0dc897e1998-07-26 04:12:22 +000030DEPS = $(top_builddir)/libxml.la
31LDADDS = $(top_builddir)/libxml.la @Z_LIBS@
Daniel Veillard01791d51998-07-24 19:24:09 +000032
33tester_SOURCES=tester.c
34tester_LDFLAGS =
35tester_DEPENDENCIES = $(DEPS)
36tester_LDADD= $(LDADDS)
37
38tests : tester
39 @(DIR=`pwd`; cd $(srcdir) ; for i in test/* ; do \
40 if [ ! -d $$i ] ; then \
41 if [ ! -f result/`basename $$i` ] ; then \
42 echo New test file `basename $$i` ; \
43 $$DIR/tester $$i > result/`basename $$i` ; \
44 else \
45 echo Testing `basename $$i` ; \
46 $$DIR/tester $$i > result.`basename $$i` ; \
47 diff result/`basename $$i` result.`basename $$i` ; \
48 rm result.`basename $$i` ; \
49 fi ; fi ; done)
50
Arturo Espinosa15fe6e71998-09-07 17:27:57 +000051## Put `exec' in the name because this should be installed by
52## `install-exec', not `install-data'.
53
54confexecdir=$(libdir)
55confexec_DATA = xmlConf.sh
56
57EXTRA_DIST = xmlConf.sh.in
58
59## We create xmlConf.sh here and not from configure because we want
60## to get the paths expanded correctly. Macros like srcdir are given
61## the value NONE in configure if the user doesn't specify them (this
62## is an autoconf feature, not a bug).
63
64xmlConf.sh: xmlConf.sh.in Makefile
65## Use sed and then mv to avoid problems if the user interrupts.
Miguel de Icaza60681bd1998-09-30 19:28:59 +000066 sed -e 's?\@XML_LIBDIR\@?$(XML_LIBDIR)?g' \
67 -e 's?\@XML_INCLUDEDIR\@?$(XML_INCLUDEDIR)?g' \
68 -e 's?\@XML_LIBS\@?$(XML_LIBS)?g' \
Arturo Espinosa15fe6e71998-09-07 17:27:57 +000069 < $(srcdir)/xmlConf.sh.in > xmlConf.tmp \
70 && mv xmlConf.tmp xmlConf.sh