blob: 87a2baeac426297487260b8537320b50df3786bb [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 Veillard39a1f9a1999-01-17 19:11:59 +000019 tree.c \
20 valid.c
Daniel Veillard260a68f1998-08-13 03:39:55 +000021
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 Veillard39a1f9a1999-01-17 19:11:59 +000028 tree.h \
29 valid.h
Daniel Veillard01791d51998-07-24 19:24:09 +000030
Daniel Veillard0dc897e1998-07-26 04:12:22 +000031DEPS = $(top_builddir)/libxml.la
32LDADDS = $(top_builddir)/libxml.la @Z_LIBS@
Daniel Veillard01791d51998-07-24 19:24:09 +000033
34tester_SOURCES=tester.c
35tester_LDFLAGS =
36tester_DEPENDENCIES = $(DEPS)
37tester_LDADD= $(LDADDS)
38
39tests : tester
40 @(DIR=`pwd`; cd $(srcdir) ; for i in test/* ; do \
41 if [ ! -d $$i ] ; then \
42 if [ ! -f result/`basename $$i` ] ; then \
43 echo New test file `basename $$i` ; \
44 $$DIR/tester $$i > result/`basename $$i` ; \
45 else \
46 echo Testing `basename $$i` ; \
47 $$DIR/tester $$i > result.`basename $$i` ; \
48 diff result/`basename $$i` result.`basename $$i` ; \
49 rm result.`basename $$i` ; \
50 fi ; fi ; done)
51
Arturo Espinosa15fe6e71998-09-07 17:27:57 +000052## Put `exec' in the name because this should be installed by
53## `install-exec', not `install-data'.
54
55confexecdir=$(libdir)
56confexec_DATA = xmlConf.sh
57
Martin Baulig4f714891999-01-16 19:08:11 +000058EXTRA_DIST = xmlConf.sh.in libxml.spec
Arturo Espinosa15fe6e71998-09-07 17:27:57 +000059
60## We create xmlConf.sh here and not from configure because we want
61## to get the paths expanded correctly. Macros like srcdir are given
62## the value NONE in configure if the user doesn't specify them (this
63## is an autoconf feature, not a bug).
64
65xmlConf.sh: xmlConf.sh.in Makefile
66## Use sed and then mv to avoid problems if the user interrupts.
Miguel de Icaza60681bd1998-09-30 19:28:59 +000067 sed -e 's?\@XML_LIBDIR\@?$(XML_LIBDIR)?g' \
68 -e 's?\@XML_INCLUDEDIR\@?$(XML_INCLUDEDIR)?g' \
69 -e 's?\@XML_LIBS\@?$(XML_LIBS)?g' \
Arturo Espinosa15fe6e71998-09-07 17:27:57 +000070 < $(srcdir)/xmlConf.sh.in > xmlConf.tmp \
71 && mv xmlConf.tmp xmlConf.sh