blob: ac6b31f538bb35067dc52ef30bd7dbb2e20603fd [file] [log] [blame]
Daniel Veillard01791d51998-07-24 19:24:09 +00001## Process this file with automake to produce Makefile.in
2
Daniel Veillard27fb0751998-10-17 06:47:46 +00003INCLUDES = -I@srcdir@ @CORBA_CFLAGS@
4
Daniel Veillard01791d51998-07-24 19:24:09 +00005noinst_PROGRAMS=tester
6
Daniel Veillarda6e1d121998-10-04 14:41:05 +00007bin_SCRIPTS=xml-config
8
Daniel Veillard0dc897e1998-07-26 04:12:22 +00009lib_LTLIBRARIES = libxml.la
Daniel Veillard01791d51998-07-24 19:24:09 +000010
Daniel Veillard0dc897e1998-07-26 04:12:22 +000011libxml_la_SOURCES = \
Daniel Veillard260a68f1998-08-13 03:39:55 +000012 SAX.c \
13 entities.c \
Daniel Veillard891e4041998-10-19 00:43:02 +000014 encoding.c \
Daniel Veillard260a68f1998-08-13 03:39:55 +000015 error.c \
Arturo Espinosa52965fa1998-09-23 22:52:20 +000016 error.h \
Daniel Veillard260a68f1998-08-13 03:39:55 +000017 parser.c \
18 tester.c \
19 tree.c
20
Tom Tromeyc19653d1998-08-14 01:22:43 +000021xmlincdir = $(includedir)/gnome-xml
22xmlinc_HEADERS = \
Daniel Veillard260a68f1998-08-13 03:39:55 +000023 entities.h \
Daniel Veillard891e4041998-10-19 00:43:02 +000024 encoding.h \
Daniel Veillard260a68f1998-08-13 03:39:55 +000025 parser.h \
26 tree.h
Daniel Veillard01791d51998-07-24 19:24:09 +000027
Daniel Veillard0dc897e1998-07-26 04:12:22 +000028DEPS = $(top_builddir)/libxml.la
29LDADDS = $(top_builddir)/libxml.la @Z_LIBS@
Daniel Veillard01791d51998-07-24 19:24:09 +000030
31tester_SOURCES=tester.c
32tester_LDFLAGS =
33tester_DEPENDENCIES = $(DEPS)
34tester_LDADD= $(LDADDS)
35
36tests : tester
37 @(DIR=`pwd`; cd $(srcdir) ; for i in test/* ; do \
38 if [ ! -d $$i ] ; then \
39 if [ ! -f result/`basename $$i` ] ; then \
40 echo New test file `basename $$i` ; \
41 $$DIR/tester $$i > result/`basename $$i` ; \
42 else \
43 echo Testing `basename $$i` ; \
44 $$DIR/tester $$i > result.`basename $$i` ; \
45 diff result/`basename $$i` result.`basename $$i` ; \
46 rm result.`basename $$i` ; \
47 fi ; fi ; done)
48
Arturo Espinosa15fe6e71998-09-07 17:27:57 +000049## Put `exec' in the name because this should be installed by
50## `install-exec', not `install-data'.
51
52confexecdir=$(libdir)
53confexec_DATA = xmlConf.sh
54
55EXTRA_DIST = xmlConf.sh.in
56
57## We create xmlConf.sh here and not from configure because we want
58## to get the paths expanded correctly. Macros like srcdir are given
59## the value NONE in configure if the user doesn't specify them (this
60## is an autoconf feature, not a bug).
61
62xmlConf.sh: xmlConf.sh.in Makefile
63## Use sed and then mv to avoid problems if the user interrupts.
Miguel de Icaza60681bd1998-09-30 19:28:59 +000064 sed -e 's?\@XML_LIBDIR\@?$(XML_LIBDIR)?g' \
65 -e 's?\@XML_INCLUDEDIR\@?$(XML_INCLUDEDIR)?g' \
66 -e 's?\@XML_LIBS\@?$(XML_LIBS)?g' \
Arturo Espinosa15fe6e71998-09-07 17:27:57 +000067 < $(srcdir)/xmlConf.sh.in > xmlConf.tmp \
68 && mv xmlConf.tmp xmlConf.sh