1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174
|
top_srcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
SHELL = /bin/sh
# Installation targets
#
prefix = @prefix@
exec_prefix = @exec_prefix@
datarootdir = @datarootdir@
bindir = @bindir@
libdir = @libdir@
includedir = @includedir@
mandir = @mandir@
docdir = @docdir@
pdfdir = @pdfdir@
mandir = @mandir@
man1dir = ${mandir}/man1
man1ext = .1
HMMER_VERSION = @HMMER_VERSION@
HMMER_DATE = "@HMMER_DATE@"
HMMER_COPYRIGHT = "@HMMER_COPYRIGHT@"
INSTALL = @INSTALL@
RMAN = rman
RMANPROCESS = ${top_srcdir}/easel/devkit/rmanprocess.py
# beautification magic stolen from git
QUIET_SUBDIR0 = +${MAKE} -C #space separator after -c
QUIET_SUBDIR1 =
ifndef V
QUIET_SUBDIR0 = +@subdir=
QUIET_SUBDIR1 = ; echo ' ' SUBDIR $$subdir; \
${MAKE} -s -C $$subdir
endif
# ./configure puts HMMER .man pages in ${top_builddir}/documentation/man
MANPAGES = \
alimask.man \
hmmalign.man \
hmmbuild.man \
hmmc2.man \
hmmconvert.man \
hmmemit.man \
hmmfetch.man \
hmmlogo.man \
hmmpgmd.man \
hmmpgmd_shard.man \
hmmpress.man \
hmmscan.man \
hmmsearch.man \
hmmsim.man \
hmmstat.man \
jackhmmer.man \
makehmmerdb.man \
nhmmer.man \
nhmmscan.man \
phmmer.man
MANPAGES_DAEMON = \
hmmc2.man \
hmmpgmd.man \
hmmpgmd_shard.man
# ./configure puts Easel .man pages in ${top_builddir}/easel/miniapps
EASEL_MANPAGES = \
esl-afetch.man \
esl-alimanip.man \
esl-alimap.man \
esl-alimask.man \
esl-alimerge.man \
esl-alipid.man \
esl-alirev.man \
esl-alistat.man \
esl-compalign.man \
esl-compstruct.man \
esl-construct.man \
esl-histplot.man \
esl-mask.man \
esl-mixdchlet.man \
esl-reformat.man \
esl-selectn.man \
esl-seqrange.man \
esl-seqstat.man \
esl-sfetch.man \
esl-shuffle.man \
esl-ssdraw.man \
esl-translate.man \
esl-weight.man
TEXFILES =\
ack.tex \
copyright.tex \
daemon.tex \
formats.tex \
glossary.tex \
install.tex \
introduction.tex \
macros.tex \
main.tex \
pipeline.tex \
tabular.tex \
titlepage.tex \
titlepage_daemon.tex \
tutorial.tex
.PHONY: pdf manpages clean distclean TAGS
pdf: Userguide.pdf Daemon_userguide.pdf
# We add ${srcdir} to TEXINPUTS, etc so we can build userguide in a build tree, with input files in source tree.
Userguide.pdf: manpages ${TEXFILES}
@for prog in pdflatex bibtex; do \
command -v $$prog >/dev/null 2>&1 || { echo >&2 "$$prog is required to build Userguide, but it's not installed. Aborting."; exit 1; } \
done
@echo " LATEX Userguide.pdf (see latex.log for output)"
@TEXINPUTS=${TEXINPUTS}:${srcdir} pdflatex main > latex.log 2>&1
@BIBINPUTS=${BIBINPUTS}:${srcdir} BSTINPUTS=${BSTINPUTS}:${srcdir} bibtex main >> latex.log 2>&1
@TEXINPUTS=${TEXINPUTS}:${srcdir} pdflatex main >> latex.log 2>&1
@TEXINPUTS=${TEXINPUTS}:${srcdir} pdflatex main >> latex.log 2>&1
@mv main.pdf Userguide.pdf
Daemon_userguide.pdf: manpages ${TEXFILES}
@for prog in pdflatex bibtex; do \
command -v $$prog >/dev/null 2>&1 || { echo >&2 "$$prog is required to build Userguide, but it's not installed. Aborting."; exit 1; } \
done
@echo " LATEX Daemon_userguide.pdf (see latex.log for output)"
@TEXINPUTS=${TEXINPUTS}:${srcdir} pdflatex daemon > latex.log 2>&1
@BIBINPUTS=${BIBINPUTS}:${srcdir} BSTINPUTS=${BSTINPUTS}:${srcdir} bibtex main >> latex.log 2>&1
@TEXINPUTS=${TEXINPUTS}:${srcdir} pdflatex daemon >> latex.log 2>&1
@TEXINPUTS=${TEXINPUTS}:${srcdir} pdflatex daemon >> latex.log 2>&1
@mv daemon.pdf Daemon_userguide.pdf
# manpages: convert man pages to LaTeX chapter in User Guide.
# uses PolyglotMan 3.2 "rman", and rmanprocess.py script in easel's devkit
manpages:
@command -v ${RMAN} >/dev/null 2>&1 || { echo >&2 "${RMAN} is required to build Userguide, but it's not installed. Aborting."; exit 1; }
@echo '%% Manual pages chapter automatically generated. Do not edit.' > manpages.tex
@echo '%% Manual pages chapter automatically generated. Do not edit.' > manpages_daemon.tex
@echo '%% Easel miniapps manpage chapter automatically generated. Do not edit.' > easel_manpages.tex
@for file in ${MANPAGES}; do\
${RMAN} -f latex2e ../man/$$file 2>/dev/null | ${RMANPROCESS} >> manpages.tex ;\
done
@for file in ${EASEL_MANPAGES}; do\
${RMAN} -f latex2e ../../easel/miniapps/$$file 2>/dev/null | ${RMANPROCESS} >> easel_manpages.tex ;\
done
@for file in ${MANPAGES_DAEMON}; do\
${RMAN} -f latex2e ../man/$$file 2>/dev/null | ${RMANPROCESS} >> manpages_daemon.tex ;\
done
clean:
${QUIET_SUBDIR0}inclusions ${QUIET_SUBDIR1} clean
-rm -f latex.log
-rm -f main.aux main.bbl main.blg main.log main.toc main.brf main.out x.log *~
-rm -f daemon.aux daemon.log daemon.out daemon.toc
ifndef V
@echo ' ' CLEAN userguide
endif
distclean: clean
${QUIET_SUBDIR0}inclusions ${QUIET_SUBDIR1} distclean
if test "x${srcdir}" != "x."; then \
for texfile in ${TEXFILES}; do \
rm -f $$texfile ;\
done ;\
fi
-rm -f titlepage.tex copyright.tex manpages.tex easel_manpages.tex
-rm -f manpages_daemon.tex titlepage_daemon.tex
-rm -f Userguide.pdf
-rm -f Daemon_userguide.pdf
-rm -f Makefile
|