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