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