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