Using suffix 2.0 for development tools idzebra-config and idzebra.m4.
[idzebra-moved-to-github.git] / doc / Makefile.am
1 ## $Id: Makefile.am,v 1.55 2006-08-14 12:18:48 adam Exp $
2 docdir=$(datadir)/doc/$(PACKAGE)$(PACKAGE_SUFFIX)
3
4 SUBDIRS = common
5
6 XMLFILES =  \
7    administration.xml \
8    architecture.xml \
9    examples.xml \
10    idzebra-config-man.xml \
11    indexdata.xml \
12    installation.xml \
13    introduction.xml \
14    license.xml \
15    marc_indexing.xml \
16    querymodel.xml \
17    quickstart.xml \
18    recordmodel-alvisxslt.xml \
19    recordmodel-grs.xml \
20    server.xml \
21    zebra.xml \
22    zebraidx-commands.xml \
23    zebraidx-man.xml \
24    zebraidx-options.xml \
25    zebraidx.xml \
26    zebrasrv-man.xml \
27    zebrasrv-options.xml \
28    zebrasrv-synopsis.xml \
29    zebrasrv-virtual.xml
30
31 HTMLFILES =  \
32    administration-extended-services.html \
33    administration-ranking.html \
34    administration.html \
35    architecture-maincomponents.html \
36    architecture-workflow.html \
37    architecture.html \
38    configuration-file.html \
39    example1.html \
40    example2.html \
41    examples.html \
42    features.html \
43    file-ids.html \
44    future.html \
45    generic-ids.html \
46    gfs-config.html \
47    grs-exchange-formats.html \
48    grs-internal-representation.html \
49    index.html \
50    indexdata.html \
51    installation-upgrade.html \
52    installation.debian.html \
53    installation.html \
54    installation.win32.html \
55    introduction-apps.html \
56    introduction-support.html \
57    introduction.html \
58    license.html \
59    locating-records.html \
60    protocol-support.html \
61    querymodel-cql-to-pqf.html \
62    querymodel-pqf.html \
63    querymodel-zebra.html \
64    querymodel.html \
65    quick-start.html \
66    record-model-alvisxslt-conf.html \
67    record-model-alvisxslt.html \
68    record-model-grs-conf.html \
69    record-model-grs.html \
70    register-location.html \
71    server-sru-support.html \
72    server-sru.html \
73    server.html \
74    shadow-registers.html \
75    simple-indexing.html \
76    zebraidx.html \
77    htmlhelp.hhp \
78    toc.hhc 
79
80
81 PNGFILES=zebra.png
82 EPSFILES=zebra.eps
83
84 MANFILES=zebraidx$(PACKAGE_SUFFIX).1 \
85         zebrasrv$(PACKAGE_SUFFIX).8 \
86         idzebra-config$(PACKAGE_SUFFIX).1
87
88 REFFILES=zebraidx-man.xml zebrasrv-man.xml idzebra-config-man.xml
89
90 doc_DATA = $(HTMLFILES) $(PNGFILES)
91 man_MANS = $(MANFILES)
92
93 EXTRA_DIST = $(XMLFILES) $(REFFILES) \
94         $(doc_DATA) $(EPSFILES) $(man_MANS) $(REFFILES) \
95         marc_indexing.xml entities.ent local.ent.in
96
97 zebraidx$(PACKAGE_SUFFIX).1: zebraidx-man.xml zebraidx-options.xml zebraidx-commands.xml
98         $(MAN_COMPILE) $(srcdir)/zebraidx-man.xml
99         mv zebraidx.1 zebraidx$(PACKAGE_SUFFIX).1
100
101 zebrasrv$(PACKAGE_SUFFIX).8: zebrasrv-man.xml  zebrasrv-options.xml \
102             zebrasrv-synopsis.xml zebrasrv-virtual.xml
103         $(MAN_COMPILE) $(srcdir)/zebrasrv-man.xml
104         mv zebrasrv.8 zebrasrv$(PACKAGE_SUFFIX).8
105
106 idzebra-config$(PACKAGE_SUFFIX).1: idzebra-config-man.xml
107         $(MAN_COMPILE) $(srcdir)/idzebra-config-man.xml
108         mv idzebra-config.1 idzebra-config$(PACKAGE_SUFFIX).1
109
110 $(HTMLFILES): $(XMLFILES)
111         $(HTML_COMPILE) $(srcdir)/zebra.xml
112
113 index.tkl: $(XMLFILES) common/tkl.xsl
114         $(TKL_COMPILE) $(srcdir)/zebra.xml
115
116 zebra.pdf: $(XMLFILES)
117         for i in $(PNGFILES); do \
118                 if test ! -f $$i; then cp $(srcdir)/$$i .; fi; \
119         done
120         jade -E14 -D $(srcdir) -d common/print.dsl -t tex $(srcdir)/common/xml.dcl zebra.xml
121         pdfjadetex zebra.tex >/dev/null
122         pdfjadetex zebra.tex >/dev/null
123         pdfjadetex zebra.tex >/dev/null
124
125 gils.txt: gils.sgml
126         sgml2txt -f gils.sgml
127
128 gils.ps: gils.sgml
129         sgml2latex -o ps -p a4 gils.sgml
130
131 gils.html: gils.sgml
132         sgml2html gils.sgml
133
134 clean-data-hook:
135         rm -f [0-9]* *.bak
136
137 dist-hook:
138         if test -f index.html; then for f in *.html; do \
139                 found=0; \
140                 b=`basename $$f`; \
141                 for h in $(HTMLFILES); do \
142                         if test "$$h" = "$$b"; then \
143                                 found=1; \
144                         fi \
145                 done; \
146                 if test "$$found" = "0"; then \
147                         echo "$$f not found in HTMLFILES"; \
148                         exit 1; \
149                 fi \
150         done; fi
151
152 install-data-hook:
153         cd $(DESTDIR)$(man1dir) && ln -sf zebraidx$(PACKAGE_SUFFIX).1 zebraidx.1
154         cd $(DESTDIR)$(man8dir) && ln -sf zebrasrv$(PACKAGE_SUFFIX).8 zebrasrv.8