blob: df550e8f2787085aac28a811dbba9b8d23a70df7 [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 \
Daniel Veillardbaf4cd51998-10-27 22:56:57 +000018 debugXML.c \
Daniel Veillard260a68f1998-08-13 03:39:55 +000019 tree.c
20
Tom Tromeyc19653d1998-08-14 01:22:43 +000021xmlincdir = $(includedir)/gnome-xml
22xmlinc_HEADERS = \
Daniel Veillard260a68f1998-08-13 03:39:55 +000023 entities.h \
Daniel Veillard891e4041998-10-19 00:43:02 +000024 encoding.h \
Daniel Veillard260a68f1998-08-13 03:39:55 +000025 parser.h \
Daniel Veillardbaf4cd51998-10-27 22:56:57 +000026 debugXML.h \
Daniel Veillard260a68f1998-08-13 03:39:55 +000027 tree.h
Daniel Veillard01791d51998-07-24 19:24:09 +000028
Daniel Veillard0dc897e1998-07-26 04:12:22 +000029DEPS = $(top_builddir)/libxml.la
30LDADDS = $(top_builddir)/libxml.la @Z_LIBS@
Daniel Veillard01791d51998-07-24 19:24:09 +000031
32tester_SOURCES=tester.c
33tester_LDFLAGS =
34tester_DEPENDENCIES = $(DEPS)
35tester_LDADD= $(LDADDS)
36
37tests : 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 Espinosa15fe6e71998-09-07 17:27:57 +000050## Put `exec' in the name because this should be installed by
51## `install-exec', not `install-data'.
52
53confexecdir=$(libdir)
54confexec_DATA = xmlConf.sh
55
Martin Baulig4f714891999-01-16 19:08:11 +000056EXTRA_DIST = xmlConf.sh.in libxml.spec
Arturo Espinosa15fe6e71998-09-07 17:27:57 +000057
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
63xmlConf.sh: xmlConf.sh.in Makefile
64## Use sed and then mv to avoid problems if the user interrupts.
Miguel de Icaza60681bd1998-09-30 19:28:59 +000065 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 Espinosa15fe6e71998-09-07 17:27:57 +000068 < $(srcdir)/xmlConf.sh.in > xmlConf.tmp \
69 && mv xmlConf.tmp xmlConf.sh