X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2FMakefile.am;h=893813229ebce70379846e3afc605f70897c59ef;hb=2ba3d1d3bf2b57c7ac462b347cb18f06820ac73a;hp=d2e4c83c8383e71e092ec33c031da9e766d03f88;hpb=6a07d35e5125e4a07ffcc75cfbd63052790b4605;p=yaz-moved-to-github.git diff --git a/src/Makefile.am b/src/Makefile.am index d2e4c83..8938132 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,6 +1,6 @@ -## Copyright (C) 1994-2004, Index Data -## All rights reserved. -## $Id: Makefile.am,v 1.18 2004-11-21 21:56:28 adam Exp $ +## This file is part of the YAZ toolkit. +## Copyright (C) 1994-2005, Index Data, All rights reserved. +## $Id: Makefile.am,v 1.22 2005-04-22 15:09:36 adam Exp $ if ISTHR thrlib=libyazthread.la @@ -10,6 +10,9 @@ YAZ_VERSION_INFO=2:0:0 lib_LTLIBRARIES = libyaz.la $(thrlib) +dist-hook: + test -f $(srcdir)/cql.c || exit 1 + tabdatadir = $(pkgdatadir)/z39.50 tabdata_DATA=datetime.asn esupdate.asn univres.asn z3950v3.asn z.tcl \ esadmin.asn charneg-3.asn mterm2.asn oclcui.asn @@ -18,9 +21,10 @@ illdatadir=$(pkgdatadir)/ill illdata_DATA=ill9702.asn item-req.asn ill.tcl EXTRA_DIST=$(tabdata_DATA) $(illdata_DATA) \ - charconv.tcl codetables.xml + charconv.tcl codetables.xml \ + csvtodiag.tcl csvtobib1.tcl csvtosrw.tcl bib1.csv srw.csv -YAZCOMP = $(top_srcdir)/util/yaz-asncomp +YAZCOMP = ../util/yaz-asncomp YAZCOMPLINE = $(YAZCOMP) -d z.tcl -i yaz -I../include $(YCFLAGS) AM_CPPFLAGS=-I$(top_srcdir)/include $(XML2_CFLAGS) $(SSL_CFLAGS) @@ -28,9 +32,16 @@ AM_YFLAGS=-p cql_ THREADED_FLAGS = @CFLAGSTHREADS@ # MARC8 conversion is generated from codetables.xml -marc8.c: charconv.tcl codetables.xml +$(srcdir)/marc8.c: charconv.tcl codetables.xml cd $(srcdir); ./charconv.tcl -p marc8 codetables.xml -o marc8.c +# Generate diagnostics from CSVs +$(top_srcdir)/include/yaz/diagbib1.h $(srcdir)/diagbib1.c: csvtobib1.tcl bib1.csv + cd $(srcdir); ./csvtobib1.tcl + +$(top_srcdir)/include/yaz/diagsrw.h $(srcdir)/diagsrw.c: csvtosrw.tcl srw.csv + cd $(srcdir); ./csvtosrw.tcl + libyaz_la_SOURCES=version.c options.c log.c marcdisp.c oid.c wrbuf.c \ nmemsdup.c xmalloc.c readconf.c tpath.c nmem.c matchstr.c atoin.c \ siconv.c marc8.c \ @@ -48,7 +59,7 @@ libyaz_la_SOURCES=version.c options.c log.c marcdisp.c oid.c wrbuf.c \ z-charneg.c \ prt-ext.c \ ill-core.c item-req.c ill-get.c \ - zget.c yaz-ccl.c diagbib1.c diagsrw.c logrpn.c \ + zget.c yaz-ccl.c diag-entry.c diag-entry.h diagbib1.c diagsrw.c logrpn.c \ otherinfo.c pquery.c sortspec.c z3950oid.c charneg.c initopt.c \ zoom-c.c zoom-opt.c zoom-p.h grs1disp.c zgdu.c soap.c srw.c srwutil.c \ opacdisp.c cclfind.c ccltoken.c cclerrms.c cclqual.c cclptree.c \ @@ -86,8 +97,8 @@ $(srcdir)/zes-pquery.c \ $(srcdir)/zes-psched.c \ $(srcdir)/zes-pset.c \ $(srcdir)/zes-update0.c \ -$(top_srcdir)/include/z-accdes1.h \ -$(top_srcdir)/include/z-core.h: \ +$(top_srcdir)/include/yaz/z-accdes1.h \ +$(top_srcdir)/include/yaz/z-core.h: \ $(srcdir)/z.tcl $(srcdir)/z3950v3.asn $(YAZCOMP) cd $(srcdir); $(YAZCOMPLINE) z3950v3.asn