1998-07-25 03:24:09 +08:00
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
|
|
|
noinst_PROGRAMS=tester
|
|
|
|
|
1998-07-26 12:12:22 +08:00
|
|
|
lib_LTLIBRARIES = libxml.la
|
1998-07-25 03:24:09 +08:00
|
|
|
|
1998-07-26 12:12:22 +08:00
|
|
|
libxml_la_SOURCES = \
|
1998-08-13 11:39:55 +08:00
|
|
|
SAX.c \
|
|
|
|
entities.c \
|
|
|
|
error.c \
|
1998-09-24 06:52:20 +08:00
|
|
|
error.h \
|
1998-08-13 11:39:55 +08:00
|
|
|
parser.c \
|
|
|
|
tester.c \
|
|
|
|
tree.c
|
|
|
|
|
1998-07-25 03:24:09 +08:00
|
|
|
|
1998-08-14 09:22:43 +08:00
|
|
|
xmlincdir = $(includedir)/gnome-xml
|
|
|
|
xmlinc_HEADERS = \
|
1998-08-13 11:39:55 +08:00
|
|
|
entities.h \
|
|
|
|
parser.h \
|
|
|
|
tree.h
|
1998-07-25 03:24:09 +08:00
|
|
|
|
1998-07-26 12:12:22 +08:00
|
|
|
DEPS = $(top_builddir)/libxml.la
|
|
|
|
LDADDS = $(top_builddir)/libxml.la @Z_LIBS@
|
1998-07-25 03:24:09 +08: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-08 01:27:57 +08: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.
|
|
|
|
sed -e 's,\@XML_LIBDIR\@,$(XML_LIBDIR),g' \
|
|
|
|
-e 's,\@XML_INCLUDEDIR\@,$(XML_INCLUDEDIR),g' \
|
|
|
|
-e 's,\@XML_LIBS\@,$(XML_LIBS),g' \
|
|
|
|
< $(srcdir)/xmlConf.sh.in > xmlConf.tmp \
|
|
|
|
&& mv xmlConf.tmp xmlConf.sh
|