Debian Codegraph @

hmmer/easel/documentation/Makefile.in

raw
1 top_srcdir = @top_srcdir@
2 srcdir = @srcdir@
3 VPATH = @srcdir@
4 SHELL = /bin/sh
5
6 AUTODOC = ${srcdir}/../devkit/autodoc
7 CEXCERPT = ${srcdir}/../devkit/cexcerpt
8
9 # Installation targets
10 #
11 prefix = @prefix@
12 exec_prefix = @exec_prefix@
13 datarootdir = @datarootdir@
14 bindir = @bindir@
15 libdir = @libdir@
16 includedir = @includedir@
17 mandir = @mandir@
18 docdir = @docdir@
19 pdfdir = @pdfdir@
20 mandir = @mandir@
21 man1dir = ${mandir}/man1
22 man1ext = .1
23
24 # Each module in this list obeys three documentation conventions:
25 #
26 # 1. It has a .tex file documenting its API.
27 # These are handwritten, in the source directory with
28 # the .c and .h files.
29 #
30 # 2. It can be processed with autodoc_functions to
31 # produce the function documentation appendix to
32 # each module. These appendices go to the
33 # autotext/ subdir.
34 #
35 # 3. It can be processed with cexcerpts to extract
36 # verbatim code fragments for inclusion in the
37 # documentation. These fragments go to the cexcerpts/
38 # subdir.
39 #
40 MODULES = easel\
41 esl_alphabet\
42 esl_buffer\
43 esl_cluster\
44 esl_dirichlet\
45 esl_distance\
46 esl_dmatrix\
47 esl_dsqdata\
48 esl_exponential\
49 esl_fileparser\
50 esl_gamma\
51 esl_getopts\
52 esl_gev\
53 esl_gumbel\
54 esl_histogram\
55 esl_hyperexp\
56 esl_keyhash\
57 esl_minimizer\
58 esl_mpi\
59 esl_msa\
60 esl_msacluster\
61 esl_msaweight\
62 esl_normal\
63 esl_paml\
64 esl_random\
65 esl_randomseq\
66 esl_ratematrix\
67 esl_regexp\
68 esl_rootfinder\
69 esl_scorematrix\
70 esl_sq\
71 esl_sqio\
72 esl_sse\
73 esl_ssi\
74 esl_stack\
75 esl_stats\
76 esl_stopwatch\
77 esl_stretchexp\
78 esl_tree\
79 esl_vectorops\
80 esl_weibull\
81 esl_wuss
82
83 # esl_mixgev
84 # esl_msafile
85 # esl_swat
86
87 TEXFILES = \
88 codestyle.tex\
89 copyright.tex\
90 doctricks.tex\
91 format_a2m.tex\
92 format_ncbi.tex\
93 format_stockholm.tex\
94 format_wuss.tex\
95 install.tex\
96 installation.tex\
97 intro.tex\
98 macros.tex\
99 main.tex\
100 statistics.tex\
101 titlepage.tex\
102 typography.tex
103
104
105 .PHONY: pdf install uninstall clean distclean
106
107 pdf: current.pdf
108
109 current.pdf: symlinks.stamp autodoc.stamp cexcerpt.stamp apitables.stamp
110 @for prog in pdflatex bibtex; do \
111 command -v $$prog >/dev/null 2>&1 || { echo >&2 "The $$prog program is required to build the Userguide, but it's not installed. Aborting."; exit 1; } \
112 done
113 @echo " LATEX current.pdf (see latex.log for output)"
114 @pdflatex -interaction=nonstopmode main > latex.log 2>&1
115 @bibtex main >> latex.log 2>&1
116 @pdflatex main >> latex.log 2>&1
117 @pdflatex main >> latex.log 2>&1
118 @mv main.pdf current.pdf
119
120 # symlinks.stamp: if we're in a build tree, symlink the tex files.
121 # if we're in a source tree, no-op.
122 symlinks.stamp:
123 @if test "x${srcdir}" != "x."; then \
124 for texfile in ${TEXFILES}; do \
125 if ! (test -e $$texfile); then \
126 ln -s ${srcdir}/$$texfile . ;\
127 fi ;\
128 done ;\
129 if ! (test -e figures); then \
130 ln -s ${srcdir}/figures . ;\
131 fi ;\
132 fi
133 @for module in ${MODULES}; do \
134 if ! (test -e $$module.tex); then \
135 ln -s ${srcdir}/../$$module.tex . ;\
136 fi ;\
137 done
138 @echo "symlinks created:\c" > $@
139 @date >> $@
140
141 autodoc.stamp:
142 mkdir -p autotext
143 for module in ${MODULES}; do\
144 ${AUTODOC} ${srcdir}/../$$module.c > autotext/$${module}_functions.tex;\
145 done
146 @echo "autotext created:\c" > $@
147 @date >> $@
148
149 cexcerpt.stamp:
150 mkdir -p cexcerpts
151 for module in ${MODULES}; do\
152 ${CEXCERPT} ${srcdir}/../$$module.c cexcerpts;\
153 ${CEXCERPT} ${srcdir}/../$$module.h cexcerpts;\
154 done
155 @echo "cexcerpts created:\c" > $@
156 @date >> $@
157
158 apitables.stamp:
159 mkdir -p apitables
160 for module in ${MODULES}; do\
161 ${AUTODOC} -t ${srcdir}/../$$module.c > apitables/$${module}_api.tex;\
162 done
163 @echo "apitables created:\c" > $@
164 @date >> $@
165
166 install:
167 ${INSTALL} -m 0644 current.pdf ${DESTDIR}${pdfdir}/
168
169 uninstall:
170 -rm -f ${DESTDIR}${pdfdir}/current.pdf
171
172 clean:
173 if test "x${srcdir}" != "x."; then \
174 for texfile in ${TEXFILES}; do \
175 if (test -L $$texfile); then \
176 rm -f $$texfile ;\
177 fi ;\
178 done ;\
179 if (test -L figures); then \
180 rm -f figures ;\
181 fi ;\
182 fi
183 for module in ${MODULES}; do \
184 if (test -L $$module.tex); then \
185 rm -f $$module.tex ;\
186 fi ;\
187 done
188 -rm -f symlinks.stamp autodoc.stamp cexcerpt.stamp apitables.stamp
189 -rm -rf cexcerpts
190 -rm -rf autotext
191 -rm -rf apitables
192 -rm -f latex.log
193 -rm -f x.log
194 -rm -f *~ TAGS
195 -rm -f main.log main.out main.pdf main.aux main.toc
196 -rm -f main.bbl main.blg main.brf
197 -rm -f typography.log typography.aux typography.out
198 ifndef V
199 @echo ' ' CLEAN documentation
200 endif
201
202 distclean: clean
203 -rm -f Makefile
204 -rm -f current.pdf
205
206