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