Makefile.am revision 4f7148917a24a9c41e57e6f472837070df536320
1## Process this file with automake to produce Makefile.in 2 3INCLUDES = -I@srcdir@ @CORBA_CFLAGS@ 4 5noinst_PROGRAMS=tester 6 7bin_SCRIPTS=xml-config 8 9lib_LTLIBRARIES = libxml.la 10 11libxml_la_SOURCES = \ 12 SAX.c \ 13 entities.c \ 14 encoding.c \ 15 error.c \ 16 error.h \ 17 parser.c \ 18 debugXML.c \ 19 tree.c 20 21xmlincdir = $(includedir)/gnome-xml 22xmlinc_HEADERS = \ 23 entities.h \ 24 encoding.h \ 25 parser.h \ 26 debugXML.h \ 27 tree.h 28 29DEPS = $(top_builddir)/libxml.la 30LDADDS = $(top_builddir)/libxml.la @Z_LIBS@ 31 32tester_SOURCES=tester.c 33tester_LDFLAGS = 34tester_DEPENDENCIES = $(DEPS) 35tester_LDADD= $(LDADDS) 36 37tests : tester 38 @(DIR=`pwd`; cd $(srcdir) ; for i in test/* ; do \ 39 if [ ! -d $$i ] ; then \ 40 if [ ! -f result/`basename $$i` ] ; then \ 41 echo New test file `basename $$i` ; \ 42 $$DIR/tester $$i > result/`basename $$i` ; \ 43 else \ 44 echo Testing `basename $$i` ; \ 45 $$DIR/tester $$i > result.`basename $$i` ; \ 46 diff result/`basename $$i` result.`basename $$i` ; \ 47 rm result.`basename $$i` ; \ 48 fi ; fi ; done) 49 50## Put `exec' in the name because this should be installed by 51## `install-exec', not `install-data'. 52 53confexecdir=$(libdir) 54confexec_DATA = xmlConf.sh 55 56EXTRA_DIST = xmlConf.sh.in libxml.spec 57 58## We create xmlConf.sh here and not from configure because we want 59## to get the paths expanded correctly. Macros like srcdir are given 60## the value NONE in configure if the user doesn't specify them (this 61## is an autoconf feature, not a bug). 62 63xmlConf.sh: xmlConf.sh.in Makefile 64## Use sed and then mv to avoid problems if the user interrupts. 65 sed -e 's?\@XML_LIBDIR\@?$(XML_LIBDIR)?g' \ 66 -e 's?\@XML_INCLUDEDIR\@?$(XML_INCLUDEDIR)?g' \ 67 -e 's?\@XML_LIBS\@?$(XML_LIBS)?g' \ 68 < $(srcdir)/xmlConf.sh.in > xmlConf.tmp \ 69 && mv xmlConf.tmp xmlConf.sh 70