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