1998-07-24 23:24:09 +04:00
## Process this file with automake to produce Makefile.in
1999-02-06 21:12:01 +03:00
SUBDIRS = doc
1998-10-17 10:47:46 +04:00
INCLUDES = -I@srcdir@ @CORBA_CFLAGS@
1998-07-24 23:24:09 +04:00
noinst_PROGRAMS = tester
1998-10-04 18:41:05 +04:00
bin_SCRIPTS = xml-config
1998-07-26 08:12:22 +04:00
lib_LTLIBRARIES = libxml.la
1998-07-24 23:24:09 +04:00
1998-07-26 08:12:22 +04:00
libxml_la_SOURCES = \
1998-08-13 07:39:55 +04:00
SAX.c \
entities.c \
1998-10-19 04:43:02 +04:00
encoding.c \
1998-08-13 07:39:55 +04:00
error.c \
parser.c \
1998-10-28 01:56:57 +03:00
debugXML.c \
1999-01-17 22:11:59 +03:00
tree.c \
valid.c
1998-08-13 07:39:55 +04:00
1998-08-14 05:22:43 +04:00
xmlincdir = $( includedir) /gnome-xml
xmlinc_HEADERS = \
1998-08-13 07:39:55 +04:00
entities.h \
1998-10-19 04:43:02 +04:00
encoding.h \
1998-08-13 07:39:55 +04:00
parser.h \
1999-02-25 11:46:07 +03:00
parserInternals.h \
1998-10-28 01:56:57 +03:00
debugXML.h \
1999-03-05 09:26:45 +03:00
xml-error.h \
1999-01-17 22:11:59 +03:00
tree.h \
valid.h
1998-07-24 23:24:09 +04:00
1998-07-26 08:12:22 +04:00
DEPS = $( top_builddir) /libxml.la
LDADDS = $( top_builddir) /libxml.la @Z_LIBS@
1998-07-24 23:24:09 +04:00
tester_SOURCES = tester.c
tester_LDFLAGS =
tester_DEPENDENCIES = $( DEPS)
tester_LDADD = $( LDADDS)
1999-03-06 01:14:01 +03:00
check-local : tests
1998-07-24 23:24:09 +04:00
tests : tester
1999-03-06 01:14:01 +03:00
@( for i in $( srcdir) /test/* ; do \
1998-07-24 23:24:09 +04:00
if [ ! -d $$ i ] ; then \
1999-03-06 01:14:01 +03:00
j = ` echo $$ i | sed -e 's,^.*/,,' ` ; \
if [ ! -f $( srcdir) /result/$$ j ] ; then \
echo New test file $$ j ; \
./tester $$ i > $( srcdir) /result/$$ j ; \
1998-07-24 23:24:09 +04:00
else \
1999-03-06 01:14:01 +03:00
echo Testing $$ j ; \
./tester $$ i > result.$$ j ; \
diff $( srcdir) /result/$$ j result.$$ j ; \
rm result.$$ j ; \
1998-07-24 23:24:09 +04:00
fi ; fi ; done )
1998-09-07 21:27:57 +04:00
## Put `exec' in the name because this should be installed by
## `install-exec', not `install-data'.
confexecdir = $( libdir)
confexec_DATA = xmlConf.sh
1999-04-02 20:04:43 +04:00
EXTRA_DIST = xmlConf.sh.in libxml.spec.in test result
1998-09-07 21:27:57 +04:00
1999-02-22 00:20:12 +03:00
dist-hook :
cp libxml.spec $( distdir)
1998-09-07 21:27:57 +04:00
## We create xmlConf.sh here and not from configure because we want
## to get the paths expanded correctly. Macros like srcdir are given
## the value NONE in configure if the user doesn't specify them (this
## is an autoconf feature, not a bug).
xmlConf.sh : xmlConf .sh .in Makefile
## Use sed and then mv to avoid problems if the user interrupts.
1998-09-30 23:28:59 +04:00
sed -e 's?\@XML_LIBDIR\@?$(XML_LIBDIR)?g' \
-e 's?\@XML_INCLUDEDIR\@?$(XML_INCLUDEDIR)?g' \
-e 's?\@XML_LIBS\@?$(XML_LIBS)?g' \
1998-09-07 21:27:57 +04:00
< $( srcdir) /xmlConf.sh.in > xmlConf.tmp \
&& mv xmlConf.tmp xmlConf.sh