Create documentation files in current directory rather than $(srcdir).
[yaz-moved-to-github.git] / doc / Makefile.am
1 ## $Id: Makefile.am,v 1.35 2002-09-25 20:32:22 adam Exp $
2
3 docdir=$(datadir)/doc/@PACKAGE@
4
5 XMLFILES=yaz.xml.in introduction.xml installation.xml indexdata.xml \
6  asn.xml tools.xml odr.xml comstack.xml frontend.xml license.xml \
7  future.xml client.xml zoom.xml credits.xml ztest-options.xml \
8  yaz-client-commands.xml
9
10 HTMLFILES= asn.external.html asn.html asn.oid.html asn.pdu.html \
11  asn.preparing.html client.commands.html client.html client.invoking.html \
12  client.searching.html comstack.addresses.html comstack.client.html \
13  comstack.common.html comstack.diagnostics.html comstack.html \
14  comstack.introduction.html comstack.server.html comstack.summary.html \
15  credits.html future.html indexdata.html installation.html \
16  installation.unix.html installation.win32.html introduction.html \
17  license.html license.other.html odr.debugging.html odr.html \
18  odr.programming.html odr.use.html server.backendfunctions.html \
19  server.backend.html server.frontend.html server.html \
20  server.invocation.html server.main.html tools.html tools.nmem.html \
21  tools.oid.html yaz.html zoom.events.html zoom.html zoom.options.html \
22  zoom.query.html zoom.records.html zoom.resultsets.html zoom.scan.html
23
24 MANFILES=yaz-client.1 yaz-client-ssl.1 yaz-ztest.8 \
25         yaz-ztest-ssl.8 yaz-config.1 yaz.7 zoomsh.1
26 REFFILES=yaz-client.sgml yaz-ztest.sgml yaz-config.sgml \
27         yaz-man.sgml zoomsh.sgml
28
29 SUPPORTFILES=yazhtml.dsl yazphp.dsl yazprint.dsl xml.dcl id.eps id.png
30
31 doc_DATA = $(HTMLFILES) yaz.pdf id.png
32
33 EXTRA_DIST = $(XMLFILES) $(SUPPORTFILES) $(MANFILES) $(REFFILES) $(doc_DATA)
34
35 man_MANS = $(MANFILES)
36
37 yaz-client.1: $(srcdir)/yaz-client.sgml $(srcdir)/yaz-client-commands.xml
38         if test ! -f yaz-client-commands.xml ; then ln -s $(srcdir)/yaz-client-commands.xml .; fi
39         docbook2man $(srcdir)/yaz-client.sgml
40
41 yaz-ztest.8: yaz-ztest.sgml ztest-options.xml
42         if test ! -f ztest-options.xml ; then ln -s $(srcdir)/ztest-options .; fi
43         docbook2man $(srcdir)/yaz-ztest.sgml
44
45 yaz-config.1: yaz-config.sgml
46         docbook2man $(srcdir)/yaz-config.sgml
47
48 yaz.7: yaz-man.sgml
49         docbook2man $(srcdir)/yaz-man.sgml
50
51 zoomsh.1: zoomsh.sgml
52         docbook2man $(srcdir)/zoomsh.sgml
53
54 yaz-ztest-ssl.8: yaz-ztest.8
55         ln -s yaz-ztest.8 yaz-ztest-ssl.8
56
57 yaz-client-ssl.1: yaz-client.1
58         ln -s yaz-client.1 yaz-client-ssl.1
59
60 $(HTMLFILES): $(XMLFILES)  
61         jade -E14 -D $(srcdir) -d yazhtml.dsl -t sgml $(srcdir)/xml.dcl yaz.xml
62
63 yaz.php: $(XMLFILES)
64         jade -E14 -D $(srcdir) -d yazphp.dsl -t sgml $(srcdir)/xml.dcl yaz.xml
65
66 yaz.pdf: $(XMLFILES) $(srcdir)/id.png
67         if test ! -f id.png ; then ln -s $(srcdir)/id.png .; fi
68         jade -E14 -D $(srcdir) -d yazprint.dsl -t tex $(srcdir)/xml.dcl yaz.xml
69         pdfjadetex yaz.tex
70         pdfjadetex yaz.tex
71         pdfjadetex yaz.tex
72