blob: 26435d9450c09521122a81fb8be43b6482a0fb38 [file] [log] [blame]
Daniel Veillard01791d51998-07-24 19:24:09 +00001## Process this file with automake to produce Makefile.in
2
Daniel Veillard19b858c1999-02-06 18:12:01 +00003SUBDIRS = doc
4
Daniel Veillard27fb0751998-10-17 06:47:46 +00005INCLUDES = -I@srcdir@ @CORBA_CFLAGS@
6
Daniel Veillard01791d51998-07-24 19:24:09 +00007noinst_PROGRAMS=tester
8
Daniel Veillarda6e1d121998-10-04 14:41:05 +00009bin_SCRIPTS=xml-config
10
Daniel Veillard0dc897e1998-07-26 04:12:22 +000011lib_LTLIBRARIES = libxml.la
Daniel Veillard01791d51998-07-24 19:24:09 +000012
Daniel Veillard0dc897e1998-07-26 04:12:22 +000013libxml_la_SOURCES = \
Daniel Veillard260a68f1998-08-13 03:39:55 +000014 SAX.c \
15 entities.c \
Daniel Veillard891e4041998-10-19 00:43:02 +000016 encoding.c \
Daniel Veillard260a68f1998-08-13 03:39:55 +000017 error.c \
18 parser.c \
Daniel Veillardbaf4cd51998-10-27 22:56:57 +000019 debugXML.c \
Daniel Veillard39a1f9a1999-01-17 19:11:59 +000020 tree.c \
21 valid.c
Daniel Veillard260a68f1998-08-13 03:39:55 +000022
Tom Tromeyc19653d1998-08-14 01:22:43 +000023xmlincdir = $(includedir)/gnome-xml
24xmlinc_HEADERS = \
Daniel Veillard260a68f1998-08-13 03:39:55 +000025 entities.h \
Daniel Veillard891e4041998-10-19 00:43:02 +000026 encoding.h \
Daniel Veillard260a68f1998-08-13 03:39:55 +000027 parser.h \
Daniel Veillard35925471999-02-25 08:46:07 +000028 parserInternals.h \
Daniel Veillardbaf4cd51998-10-27 22:56:57 +000029 debugXML.h \
Daniel Veillardd109e371999-03-05 06:26:45 +000030 xml-error.h \
Daniel Veillard39a1f9a1999-01-17 19:11:59 +000031 tree.h \
32 valid.h
Daniel Veillard01791d51998-07-24 19:24:09 +000033
Daniel Veillard0dc897e1998-07-26 04:12:22 +000034DEPS = $(top_builddir)/libxml.la
35LDADDS = $(top_builddir)/libxml.la @Z_LIBS@
Daniel Veillard01791d51998-07-24 19:24:09 +000036
37tester_SOURCES=tester.c
38tester_LDFLAGS =
39tester_DEPENDENCIES = $(DEPS)
40tester_LDADD= $(LDADDS)
41
Raja R Harinatha86c23e1999-03-05 22:14:01 +000042check-local: tests
43
Daniel Veillard01791d51998-07-24 19:24:09 +000044tests : tester
Raja R Harinatha86c23e1999-03-05 22:14:01 +000045 @(for i in $(srcdir)/test/* ; do \
Daniel Veillard01791d51998-07-24 19:24:09 +000046 if [ ! -d $$i ] ; then \
Raja R Harinatha86c23e1999-03-05 22:14:01 +000047 j=`echo $$i | sed -e 's,^.*/,,'`; \
48 if [ ! -f $(srcdir)/result/$$j ] ; then \
49 echo New test file $$j ; \
50 ./tester $$i > $(srcdir)/result/$$j ; \
Daniel Veillard01791d51998-07-24 19:24:09 +000051 else \
Raja R Harinatha86c23e1999-03-05 22:14:01 +000052 echo Testing $$j ; \
53 ./tester $$i > result.$$j ; \
54 diff $(srcdir)/result/$$j result.$$j ; \
55 rm result.$$j ; \
Daniel Veillard01791d51998-07-24 19:24:09 +000056 fi ; fi ; done)
57
Arturo Espinosa15fe6e71998-09-07 17:27:57 +000058## Put `exec' in the name because this should be installed by
59## `install-exec', not `install-data'.
60
61confexecdir=$(libdir)
62confexec_DATA = xmlConf.sh
63
Daniel Veillard55a99271999-02-25 11:01:29 +000064EXTRA_DIST = xmlConf.sh.in libxml.spec.in
Arturo Espinosa15fe6e71998-09-07 17:27:57 +000065
Michael Fulbright63dc42c1999-02-21 21:20:12 +000066dist-hook:
67 cp libxml.spec $(distdir)
68
Arturo Espinosa15fe6e71998-09-07 17:27:57 +000069## We create xmlConf.sh here and not from configure because we want
70## to get the paths expanded correctly. Macros like srcdir are given
71## the value NONE in configure if the user doesn't specify them (this
72## is an autoconf feature, not a bug).
73
74xmlConf.sh: xmlConf.sh.in Makefile
75## Use sed and then mv to avoid problems if the user interrupts.
Miguel de Icaza60681bd1998-09-30 19:28:59 +000076 sed -e 's?\@XML_LIBDIR\@?$(XML_LIBDIR)?g' \
77 -e 's?\@XML_INCLUDEDIR\@?$(XML_INCLUDEDIR)?g' \
78 -e 's?\@XML_LIBS\@?$(XML_LIBS)?g' \
Arturo Espinosa15fe6e71998-09-07 17:27:57 +000079 < $(srcdir)/xmlConf.sh.in > xmlConf.tmp \
80 && mv xmlConf.tmp xmlConf.sh