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