blob: 1eed746fa5da121bdaa53fef1d668b390e6113aa [file] [log] [blame]
Daniel Veillard01791d51998-07-24 19:24:09 +00001## Process this file with automake to produce Makefile.in
2
3noinst_PROGRAMS=tester
4
Daniel Veillarda6e1d121998-10-04 14:41:05 +00005bin_SCRIPTS=xml-config
6
Daniel Veillard0dc897e1998-07-26 04:12:22 +00007lib_LTLIBRARIES = libxml.la
Daniel Veillard01791d51998-07-24 19:24:09 +00008
Daniel Veillard0dc897e1998-07-26 04:12:22 +00009libxml_la_SOURCES = \
Daniel Veillard260a68f1998-08-13 03:39:55 +000010 SAX.c \
11 entities.c \
12 error.c \
Arturo Espinosa52965fa1998-09-23 22:52:20 +000013 error.h \
Daniel Veillard260a68f1998-08-13 03:39:55 +000014 parser.c \
15 tester.c \
16 tree.c
17
Daniel Veillard01791d51998-07-24 19:24:09 +000018
Tom Tromeyc19653d1998-08-14 01:22:43 +000019xmlincdir = $(includedir)/gnome-xml
20xmlinc_HEADERS = \
Daniel Veillard260a68f1998-08-13 03:39:55 +000021 entities.h \
22 parser.h \
23 tree.h
Daniel Veillard01791d51998-07-24 19:24:09 +000024
Daniel Veillard0dc897e1998-07-26 04:12:22 +000025DEPS = $(top_builddir)/libxml.la
26LDADDS = $(top_builddir)/libxml.la @Z_LIBS@
Daniel Veillard01791d51998-07-24 19:24:09 +000027
28tester_SOURCES=tester.c
29tester_LDFLAGS =
30tester_DEPENDENCIES = $(DEPS)
31tester_LDADD= $(LDADDS)
32
33tests : tester
34 @(DIR=`pwd`; cd $(srcdir) ; for i in test/* ; do \
35 if [ ! -d $$i ] ; then \
36 if [ ! -f result/`basename $$i` ] ; then \
37 echo New test file `basename $$i` ; \
38 $$DIR/tester $$i > result/`basename $$i` ; \
39 else \
40 echo Testing `basename $$i` ; \
41 $$DIR/tester $$i > result.`basename $$i` ; \
42 diff result/`basename $$i` result.`basename $$i` ; \
43 rm result.`basename $$i` ; \
44 fi ; fi ; done)
45
Arturo Espinosa15fe6e71998-09-07 17:27:57 +000046## Put `exec' in the name because this should be installed by
47## `install-exec', not `install-data'.
48
49confexecdir=$(libdir)
50confexec_DATA = xmlConf.sh
51
52EXTRA_DIST = xmlConf.sh.in
53
54## We create xmlConf.sh here and not from configure because we want
55## to get the paths expanded correctly. Macros like srcdir are given
56## the value NONE in configure if the user doesn't specify them (this
57## is an autoconf feature, not a bug).
58
59xmlConf.sh: xmlConf.sh.in Makefile
60## Use sed and then mv to avoid problems if the user interrupts.
Miguel de Icaza60681bd1998-09-30 19:28:59 +000061 sed -e 's?\@XML_LIBDIR\@?$(XML_LIBDIR)?g' \
62 -e 's?\@XML_INCLUDEDIR\@?$(XML_INCLUDEDIR)?g' \
63 -e 's?\@XML_LIBS\@?$(XML_LIBS)?g' \
Arturo Espinosa15fe6e71998-09-07 17:27:57 +000064 < $(srcdir)/xmlConf.sh.in > xmlConf.tmp \
65 && mv xmlConf.tmp xmlConf.sh