WSTester updated to work plus hopefully all the other changes that need to go into...
[jabaws.git] / binaries / src / ViennaRNA / doc / Makefile.am
1 pkgdata_DATA = viennarna.bib
2
3 if WITH_REFERENCE_MANUAL
4
5 ##--------------------------------------------------##
6 ## prepare variables in case HTML reference manual  ##
7 ## is going to be installed                         ##
8 ##--------------------------------------------------##
9 if WITH_REFERENCE_MANUAL_HTML
10     REFERENCE_MANUAL_FILES_HTML = html/*
11     docdir_htmldir = $(docdir)/html
12     docdir_html_DATA = $(REFERENCE_MANUAL_FILES_HTML)
13     dist_docdir_htmldir = $(docdir)/html
14     dist_docdir_html_DATA = $(REFERENCE_MANUAL_FILES_HTML)
15
16 endif WITH_REFERENCE_MANUAL_HTML
17
18 ##--------------------------------------------------##
19 ## prepare variables in case PDF reference manual   ##
20 ## is going to be installed                         ##
21 ##--------------------------------------------------##
22 if WITH_REFERENCE_MANUAL_PDF
23     REFERENCE_MANUAL_FILES_PDF = @REFERENCE_MANUAL_PDF_NAME@
24 endif WITH_REFERENCE_MANUAL_PDF
25
26 ##--------------------------------------------------##
27 ## prepare all rules in case reference manuals are  ##
28 ## going to be (re)generated                        ##
29 ##--------------------------------------------------##
30 if WITH_REFERENCE_MANUAL_BUILD
31
32 ##--------------------------------------------------##
33 ## the tagfile is used as indicator to decide       ##
34 ## whether the reference manual should be generated ##
35 ##--------------------------------------------------##
36   REFERENCE_MANUAL_FILES_TAG = @REFERENCE_MANUAL_TAGFILE@
37
38 ##--------------------------------------------------##
39 ## This is the rule how to generate the tagfile     ##
40 ## and the actual reference manual sources          ##
41 ##                                                  ##
42 ## here we need to chdir into the output directory  ##
43 ## and get the bibtex file since otherwise doxygen  ##
44 ## would not link the references correctly          ##
45 ##--------------------------------------------------##
46 $(REFERENCE_MANUAL_FILES_TAG):  @DOXYGEN_CONF@ $(pkginclude_HEADERS)
47         @doxygen@ @DOXYGEN_CONF@
48
49 ##--------------------------------------------------##
50 ## In case the HTML manual should be created, here  ##
51 ## is the rule how to do so                         ##
52 ##--------------------------------------------------##
53 if WITH_REFERENCE_MANUAL_HTML
54
55 $(REFERENCE_MANUAL_FILES_HTML):  $(REFERENCE_MANUAL_FILES_TAG)
56
57 endif WITH_REFERENCE_MANUAL_HTML
58
59 ##--------------------------------------------------##
60 ## In case the PDF manual should be created, here   ##
61 ## is the rule how to do so                         ##
62 ##--------------------------------------------------##
63 if WITH_REFERENCE_MANUAL_PDF
64
65 $(REFERENCE_MANUAL_FILES_PDF): $(REFERENCE_MANUAL_FILES_TAG)
66         cd latex; \
67         make; \
68         mv refman.pdf ../$(REFERENCE_MANUAL_FILES_PDF)
69
70 endif WITH_REFERENCE_MANUAL_PDF
71
72 endif WITH_REFERENCE_MANUAL_BUILD
73
74 ##--------------------------------------------------##
75 ## Tell autoconf/automake to include the necessary  ##
76 ## files in the distribution archive as well as in  ##
77 ## the installation routine                         ##
78 ##--------------------------------------------------##
79   doc_DATA = $(REFERENCE_MANUAL_FILES_TAG) $(REFERENCE_MANUAL_FILES_PDF)
80   dist_doc_DATA = $(REFERENCE_MANUAL_FILES_TAG) $(REFERENCE_MANUAL_FILES_PDF)
81
82 endif WITH_REFERENCE_MANUAL
83
84
85
86
87 EXTRA_DIST = $(pkgdata_DATA) mainpage.h
88