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