1 pkgdata_DATA = viennarna.bib
3 if WITH_REFERENCE_MANUAL
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)
16 endif WITH_REFERENCE_MANUAL_HTML
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
26 ##--------------------------------------------------##
27 ## prepare all rules in case reference manuals are ##
28 ## going to be (re)generated ##
29 ##--------------------------------------------------##
30 if WITH_REFERENCE_MANUAL_BUILD
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@
38 ##--------------------------------------------------##
39 ## This is the rule how to generate the tagfile ##
40 ## and the actual reference manual sources ##
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@
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
55 $(REFERENCE_MANUAL_FILES_HTML): $(REFERENCE_MANUAL_FILES_TAG)
57 endif WITH_REFERENCE_MANUAL_HTML
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
65 $(REFERENCE_MANUAL_FILES_PDF): $(REFERENCE_MANUAL_FILES_TAG)
68 mv refman.pdf ../$(REFERENCE_MANUAL_FILES_PDF)
70 endif WITH_REFERENCE_MANUAL_PDF
72 endif WITH_REFERENCE_MANUAL_BUILD
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)
82 endif WITH_REFERENCE_MANUAL
87 EXTRA_DIST = $(pkgdata_DATA) mainpage.h