1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-12-25 23:21:26 +03:00
libxml2/Makefile.am

81 lines
1.9 KiB
Makefile
Raw Normal View History

## Process this file with automake to produce Makefile.in
1999-02-06 21:12:01 +03:00
SUBDIRS = doc
INCLUDES = -I@srcdir@ @CORBA_CFLAGS@
noinst_PROGRAMS=tester
bin_SCRIPTS=xml-config
1998-07-26 08:12:22 +04:00
lib_LTLIBRARIES = libxml.la
1998-07-26 08:12:22 +04:00
libxml_la_SOURCES = \
SAX.c \
entities.c \
encoding.c \
error.c \
parser.c \
debugXML.c \
tree.c \
valid.c
xmlincdir = $(includedir)/gnome-xml
xmlinc_HEADERS = \
entities.h \
encoding.h \
parser.h \
parserInternals.h \
debugXML.h \
xml-error.h \
tree.h \
valid.h
1998-07-26 08:12:22 +04:00
DEPS = $(top_builddir)/libxml.la
LDADDS = $(top_builddir)/libxml.la @Z_LIBS@
tester_SOURCES=tester.c
tester_LDFLAGS =
tester_DEPENDENCIES = $(DEPS)
tester_LDADD= $(LDADDS)
check-local: tests
tests : tester
@(for i in $(srcdir)/test/* ; do \
if [ ! -d $$i ] ; then \
j=`echo $$i | sed -e 's,^.*/,,'`; \
if [ ! -f $(srcdir)/result/$$j ] ; then \
echo New test file $$j ; \
./tester $$i > $(srcdir)/result/$$j ; \
else \
echo Testing $$j ; \
./tester $$i > result.$$j ; \
diff $(srcdir)/result/$$j result.$$j ; \
rm result.$$j ; \
fi ; fi ; done)
## 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 libxml.spec.in test result
dist-hook:
cp libxml.spec $(distdir)
## 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