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