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