blob: 3d9ee08a1f13d0cc4d70addb46b3950a0ccd1654 [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 Veillardbaf4cd51998-10-27 22:56:57 +000029 debugXML.h \
Daniel Veillard39a1f9a1999-01-17 19:11:59 +000030 tree.h \
31 valid.h
Daniel Veillard01791d51998-07-24 19:24:09 +000032
Daniel Veillard0dc897e1998-07-26 04:12:22 +000033DEPS = $(top_builddir)/libxml.la
34LDADDS = $(top_builddir)/libxml.la @Z_LIBS@
Daniel Veillard01791d51998-07-24 19:24:09 +000035
36tester_SOURCES=tester.c
37tester_LDFLAGS =
38tester_DEPENDENCIES = $(DEPS)
39tester_LDADD= $(LDADDS)
40
41tests : tester
42 @(DIR=`pwd`; cd $(srcdir) ; for i in test/* ; do \
43 if [ ! -d $$i ] ; then \
44 if [ ! -f result/`basename $$i` ] ; then \
45 echo New test file `basename $$i` ; \
46 $$DIR/tester $$i > result/`basename $$i` ; \
47 else \
48 echo Testing `basename $$i` ; \
49 $$DIR/tester $$i > result.`basename $$i` ; \
50 diff result/`basename $$i` result.`basename $$i` ; \
51 rm result.`basename $$i` ; \
52 fi ; fi ; done)
53
Arturo Espinosa15fe6e71998-09-07 17:27:57 +000054## Put `exec' in the name because this should be installed by
55## `install-exec', not `install-data'.
56
57confexecdir=$(libdir)
58confexec_DATA = xmlConf.sh
59
Michael Fulbright63dc42c1999-02-21 21:20:12 +000060EXTRA_DIST = xmlConf.sh.in libxml.spec.in doc/xml.html doc/structure.gif \
Daniel Veillarda4b44301999-02-16 18:53:00 +000061 doc/DOM.gif
Arturo Espinosa15fe6e71998-09-07 17:27:57 +000062
Michael Fulbright63dc42c1999-02-21 21:20:12 +000063dist-hook:
64 cp libxml.spec $(distdir)
65
Arturo Espinosa15fe6e71998-09-07 17:27:57 +000066## We create xmlConf.sh here and not from configure because we want
67## to get the paths expanded correctly. Macros like srcdir are given
68## the value NONE in configure if the user doesn't specify them (this
69## is an autoconf feature, not a bug).
70
71xmlConf.sh: xmlConf.sh.in Makefile
72## Use sed and then mv to avoid problems if the user interrupts.
Miguel de Icaza60681bd1998-09-30 19:28:59 +000073 sed -e 's?\@XML_LIBDIR\@?$(XML_LIBDIR)?g' \
74 -e 's?\@XML_INCLUDEDIR\@?$(XML_INCLUDEDIR)?g' \
75 -e 's?\@XML_LIBS\@?$(XML_LIBS)?g' \
Arturo Espinosa15fe6e71998-09-07 17:27:57 +000076 < $(srcdir)/xmlConf.sh.in > xmlConf.tmp \
77 && mv xmlConf.tmp xmlConf.sh