1998-07-24 23:24:09 +04:00
## Process this file with automake to produce Makefile.in
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 \
error.c \
1998-09-24 02:52:20 +04:00
error.h \
1998-08-13 07:39:55 +04:00
parser.c \
tester.c \
tree.c
1998-08-14 05:22:43 +04:00
xmlincdir = $( includedir) /gnome-xml
xmlinc_HEADERS = \
1998-08-13 07:39:55 +04:00
entities.h \
parser.h \
tree.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)
tests : tester
@( DIR = ` pwd ` ; cd $( srcdir) ; for i in test/* ; do \
if [ ! -d $$ i ] ; then \
if [ ! -f result/` basename $$ i` ] ; then \
echo New test file ` basename $$ i` ; \
$$ DIR/tester $$ i > result/` basename $$ i` ; \
else \
echo Testing ` basename $$ i` ; \
$$ DIR/tester $$ i > result.` basename $$ i` ; \
diff result/` basename $$ i` result.` basename $$ i` ; \
rm result.` basename $$ i` ; \
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
EXTRA_DIST = xmlConf.sh.in
## 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