blob: 4d9f75e5325fd1eeabf9ef100b0798ae9d7ab92c [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 \
Arturo Espinosa52965fa1998-09-23 22:52:20 +000018 error.h \
Daniel Veillard260a68f1998-08-13 03:39:55 +000019 parser.c \
Daniel Veillardbaf4cd51998-10-27 22:56:57 +000020 debugXML.c \
Daniel Veillard39a1f9a1999-01-17 19:11:59 +000021 tree.c \
22 valid.c
Daniel Veillard260a68f1998-08-13 03:39:55 +000023
Tom Tromeyc19653d1998-08-14 01:22:43 +000024xmlincdir = $(includedir)/gnome-xml
25xmlinc_HEADERS = \
Daniel Veillard260a68f1998-08-13 03:39:55 +000026 entities.h \
Daniel Veillard891e4041998-10-19 00:43:02 +000027 encoding.h \
Daniel Veillard260a68f1998-08-13 03:39:55 +000028 parser.h \
Daniel Veillard35925471999-02-25 08:46:07 +000029 parserInternals.h \
Daniel Veillardbaf4cd51998-10-27 22:56:57 +000030 debugXML.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
42tests : tester
43 @(DIR=`pwd`; cd $(srcdir) ; for i in test/* ; do \
44 if [ ! -d $$i ] ; then \
45 if [ ! -f result/`basename $$i` ] ; then \
46 echo New test file `basename $$i` ; \
47 $$DIR/tester $$i > result/`basename $$i` ; \
48 else \
49 echo Testing `basename $$i` ; \
50 $$DIR/tester $$i > result.`basename $$i` ; \
51 diff result/`basename $$i` result.`basename $$i` ; \
52 rm result.`basename $$i` ; \
53 fi ; fi ; done)
54
Arturo Espinosa15fe6e71998-09-07 17:27:57 +000055## Put `exec' in the name because this should be installed by
56## `install-exec', not `install-data'.
57
58confexecdir=$(libdir)
59confexec_DATA = xmlConf.sh
60
Michael Fulbright63dc42c1999-02-21 21:20:12 +000061EXTRA_DIST = xmlConf.sh.in libxml.spec.in doc/xml.html doc/structure.gif \
Daniel Veillarda4b44301999-02-16 18:53:00 +000062 doc/DOM.gif
Arturo Espinosa15fe6e71998-09-07 17:27:57 +000063
Michael Fulbright63dc42c1999-02-21 21:20:12 +000064dist-hook:
65 cp libxml.spec $(distdir)
66
Arturo Espinosa15fe6e71998-09-07 17:27:57 +000067## We create xmlConf.sh here and not from configure because we want
68## to get the paths expanded correctly. Macros like srcdir are given
69## the value NONE in configure if the user doesn't specify them (this
70## is an autoconf feature, not a bug).
71
72xmlConf.sh: xmlConf.sh.in Makefile
73## Use sed and then mv to avoid problems if the user interrupts.
Miguel de Icaza60681bd1998-09-30 19:28:59 +000074 sed -e 's?\@XML_LIBDIR\@?$(XML_LIBDIR)?g' \
75 -e 's?\@XML_INCLUDEDIR\@?$(XML_INCLUDEDIR)?g' \
76 -e 's?\@XML_LIBS\@?$(XML_LIBS)?g' \
Arturo Espinosa15fe6e71998-09-07 17:27:57 +000077 < $(srcdir)/xmlConf.sh.in > xmlConf.tmp \
78 && mv xmlConf.tmp xmlConf.sh