removed the outdated quickstart and examples, and started on a better tutorial using...
[idzebra-moved-to-github.git] / doc / Makefile.am
1 ## $Id: Makefile.am,v 1.76 2008-02-01 13:54:39 marc Exp $
2 SUBDIRS = common
3
4 docdir=$(datadir)/doc/$(PACKAGE)$(PACKAGE_SUFFIX)
5
6 XMLMAN = zebraidx.xml zebrasrv.xml idzebra-config.xml
7
8 XMLFILES =  \
9    administration.xml \
10    architecture.xml \
11    field-structure.xml \
12    indexdata.xml \
13    installation.xml \
14    introduction.xml \
15    license.xml \
16    marc_indexing.xml \
17    querymodel.xml \
18    recordmodel-domxml.xml \
19    recordmodel-alvisxslt.xml \
20    recordmodel-grs.xml \
21    manref.xml \
22    zebra.xml \
23    zebrasrv-options.xml \
24    zebrasrv-synopsis.xml \
25    zebrasrv-virtual.xml 
26
27 #examples.xml 
28 #quickstart.xml
29
30
31 HTMLFILES = index.html
32
33 PNGFILES = zebra.png domfilter.png
34 EPSFILES = zebra.eps domfilter.eps
35 PDFFILES = zebra.pdf domfilter.pdf
36
37
38 MANFILES=zebraidx$(PACKAGE_SUFFIX).1 \
39         zebrasrv$(PACKAGE_SUFFIX).8 \
40         idzebra-config$(PACKAGE_SUFFIX).1
41
42 doc_DATA = $(HTMLFILES) $(PNGFILES)
43 man_MANS = $(MANFILES)
44
45 EXTRA_DIST = $(XMLFILES) $(XMLMAN) \
46         $(doc_DATA) zebra.eps $(man_MANS) \
47         marc_indexing.xml entities.ent local.ent.in domfilter.svg
48
49 zebraidx$(PACKAGE_SUFFIX).1: zebraidx.xml
50         $(MAN_COMPILE) $(srcdir)/zebraidx.xml
51         mv zebraidx.1 zebraidx$(PACKAGE_SUFFIX).1
52
53 zebrasrv$(PACKAGE_SUFFIX).8: zebrasrv.xml  zebrasrv-options.xml \
54             zebrasrv-synopsis.xml zebrasrv-virtual.xml
55         $(MAN_COMPILE) $(srcdir)/zebrasrv.xml
56         mv zebrasrv.8 zebrasrv$(PACKAGE_SUFFIX).8
57
58 idzebra-config$(PACKAGE_SUFFIX).1: idzebra-config.xml
59         $(MAN_COMPILE) $(srcdir)/idzebra-config.xml
60         mv idzebra-config.1 idzebra-config$(PACKAGE_SUFFIX).1
61
62 $(HTMLFILES): $(XMLFILES) $(PNGFILES)
63         rm -f *.html
64         $(HTML_COMPILE) $(srcdir)/zebra.xml
65
66 index.tkl: $(XMLFILES)
67         rm -f *.tkl
68         $(TKL_COMPILE) $(srcdir)/zebra.xml
69
70 zebra.pdf: $(XMLFILES) domfilter.pdf
71         for i in $(PNGFILES); do \
72                 if test ! -f $$i; then cp $(srcdir)/$$i .; fi; \
73         done
74         dblatex $(srcdir)/zebra.xml
75
76 manref.xml: $(XMLMAN) $(srcdir)/common/ref2dbinc.xsl
77         rm -f manref.xml
78         for i in $(XMLMAN); do \
79                 xsltproc $(srcdir)/common/stripref.xsl $(srcdir)/$$i | sed 1d >> manref.xml; \
80         done
81
82 gils.txt: gils.sgml
83         sgml2txt -f gils.sgml
84
85 gils.ps: gils.sgml
86         sgml2latex -o ps -p a4 gils.sgml
87
88 gils.html: gils.sgml
89         sgml2html gils.sgml
90
91 clean-data-hook:
92         rm -f [0-9]* *.bak
93
94 dist-hook:
95         if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
96         for p in $$d/*.html; do \
97                 cp $$p $(distdir); \
98         done
99
100 install-data-hook:
101         cd $(DESTDIR)$(man1dir) && ln -sf zebraidx$(PACKAGE_SUFFIX).1 zebraidx.1
102         cd $(DESTDIR)$(man8dir) && ln -sf zebrasrv$(PACKAGE_SUFFIX).8 zebrasrv.8
103         cd $(DESTDIR)$(man1dir) && ln -sf idzebra-config$(PACKAGE_SUFFIX).1 idzebra-config.1
104         if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
105         for p in $$d/*.html; do \
106                 $(docDATA_INSTALL) $$p $(DESTDIR)$(docdir); \
107         done
108
109 uninstall-hook:
110         rm -r $(DESTDIR)$(docdir)
111
112 domfilter.png: domfilter.svg
113         inkscape --export-png=$@ --export-width=600 $?
114
115 domfilter.eps: domfilter.svg
116         inkscape --export-eps=$@ --export-bbox-page $?
117
118 .eps.pdf:
119         epstopdf -hires $?
120