ca22532292b3882a174fbc65a1ae9b876f76e110
[yazproxy-moved-to-github.git] / doc / Makefile.am
1 ## $Id: Makefile.am,v 1.15 2006-10-11 09:39:43 adam Exp $
2 docdir=$(datadir)/doc/@PACKAGE@
3
4 SUBDIRS = common
5
6 XMLFILES = \
7  introduction.xml \
8  installation.xml \
9  reference.xml \
10  using.xml \
11  yaz-proxy-ref.xml \
12  yaz-proxy-man.xml \
13  license.xml \
14  yazproxy.xml
15  
16 TOP = $(srcdir)/yazproxy.xml
17
18 MANFILES = yazproxy.8
19
20 HTMLFILES = index.html
21
22 doc_DATA = $(HTMLFILES)
23
24 man_MANS = $(MANFILES)
25
26 EXTRA_DIST = $(XMLFILES) $(doc_DATA) $(man_MANS) entities.ent local.ent
27
28 $(HTMLFILES): $(XMLFILES)
29         rm -f *.html
30         $(HTML_COMPILE) $(TOP)
31
32 yazproxy.8: yaz-proxy-man.xml yaz-proxy-ref.xml
33         $(MAN_COMPILE) $(srcdir)/yaz-proxy-man.xml
34
35 index.tkl: $(XMLFILES) common/tkl.xsl
36         $(TKL_COMPILE) $(TOP)
37
38
39 yazproxy.pdf: $(XMLFILES)
40         if test ! -f common/id.png ; then cp $(srcdir)/common/id.png common; fi
41         jade -E14 -D $(srcdir) -d common/print.dsl -t tex $(srcdir)/common/xml.dcl $(TOP)
42         pdfjadetex yazproxy.tex >pdfjadetex.log 2>&1
43         pdfjadetex yazproxy.tex >pdfjadetex.log 2>&1
44         pdfjadetex yazproxy.tex >pdfjadetex.log 2>&1
45
46 clean-data-hook:
47         rm -f [0-9]* *.bak
48
49 dist-hook:
50         if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
51         for p in $$d/*.html; do \
52                 cp $$p $(distdir); \
53         done
54
55 install-data-hook:
56         if test -f index.html; then d=.; else d="$(srcdir)"; fi; \
57         for p in $$d/*.html; do \
58                 $(docDATA_INSTALL) $$p $(DESTDIR)/$(docdir); \
59         done
60
61 uninstall-hook:
62         rm -r $(DESTDIR)/$(docdir)