blob: 84f6c22878b865959b4ec326a443fda616c6ffa4 [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 \
14 error.c \
Arturo Espinosa52965fa1998-09-23 22:52:20 +000015 error.h \
Daniel Veillard260a68f1998-08-13 03:39:55 +000016 parser.c \
17 tester.c \
18 tree.c
19
Tom Tromeyc19653d1998-08-14 01:22:43 +000020xmlincdir = $(includedir)/gnome-xml
21xmlinc_HEADERS = \
Daniel Veillard260a68f1998-08-13 03:39:55 +000022 entities.h \
23 parser.h \
24 tree.h
Daniel Veillard01791d51998-07-24 19:24:09 +000025
Daniel Veillard0dc897e1998-07-26 04:12:22 +000026DEPS = $(top_builddir)/libxml.la
27LDADDS = $(top_builddir)/libxml.la @Z_LIBS@
Daniel Veillard01791d51998-07-24 19:24:09 +000028
29tester_SOURCES=tester.c
30tester_LDFLAGS =
31tester_DEPENDENCIES = $(DEPS)
32tester_LDADD= $(LDADDS)
33
34tests : tester
35 @(DIR=`pwd`; cd $(srcdir) ; for i in test/* ; do \
36 if [ ! -d $$i ] ; then \
37 if [ ! -f result/`basename $$i` ] ; then \
38 echo New test file `basename $$i` ; \
39 $$DIR/tester $$i > result/`basename $$i` ; \
40 else \
41 echo Testing `basename $$i` ; \
42 $$DIR/tester $$i > result.`basename $$i` ; \
43 diff result/`basename $$i` result.`basename $$i` ; \
44 rm result.`basename $$i` ; \
45 fi ; fi ; done)
46
Arturo Espinosa15fe6e71998-09-07 17:27:57 +000047## Put `exec' in the name because this should be installed by
48## `install-exec', not `install-data'.
49
50confexecdir=$(libdir)
51confexec_DATA = xmlConf.sh
52
53EXTRA_DIST = xmlConf.sh.in
54
55## We create xmlConf.sh here and not from configure because we want
56## to get the paths expanded correctly. Macros like srcdir are given
57## the value NONE in configure if the user doesn't specify them (this
58## is an autoconf feature, not a bug).
59
60xmlConf.sh: xmlConf.sh.in Makefile
61## Use sed and then mv to avoid problems if the user interrupts.
Miguel de Icaza60681bd1998-09-30 19:28:59 +000062 sed -e 's?\@XML_LIBDIR\@?$(XML_LIBDIR)?g' \
63 -e 's?\@XML_INCLUDEDIR\@?$(XML_INCLUDEDIR)?g' \
64 -e 's?\@XML_LIBS\@?$(XML_LIBS)?g' \
Arturo Espinosa15fe6e71998-09-07 17:27:57 +000065 < $(srcdir)/xmlConf.sh.in > xmlConf.tmp \
66 && mv xmlConf.tmp xmlConf.sh