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 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354
|
##########
# HMMER - Biological sequence analysis with profile HMMs
# Copyright (C) 1992-1998 Washington University School of Medicine
# All Rights Reserved
#
# This source code is distributed under the terms of the
# GNU General Public License. See the files COPYING and LICENSE
# for details.
###########
#
# Makefile for HMMER: Main project directory: installation, documentation
# RCS $Id: Makefile.in,v 1.13 1998/12/09 23:08:00 eddy Exp $
# On must Unices, you can build the package without modifying anything
# by just typing "./configure; make".
#
# You may want to modify the following make variables:
# BINDIR - where the executables will be installed by a 'make install'
# MANDIR - where the man pages will be installed by a 'make install'
# CC - which compiler to use
# CFLAGS - compiler flags to use
# where you want things installed
# Sort of uses GNU coding standards. ${prefix} might be /usr/local.
# ${exec_prefix} gives you some flexibility for installing architecture
# dependent files (e.g. the programs): an example ${exec_prefix} might be
# /nfs/share/irix64/
#
prefix = @prefix@
exec_prefix = @exec_prefix@
BINDIR = @bindir@
MANDIR = @mandir@
# how to install the man pages;
# cp is generally fine, unless you preformat your pages.
#
INSTMAN = cp
MANSUFFIX = 1
# your compiler and compiler flags
#
CC = @CC@
CFLAGS = @CFLAGS@
# If you want more speed, here's the current recommendations
# for CFLAGS.
#
# IRIX 6.x, MIPSpro 7.2.1 compilers, where ipxx is your CPU type
# CFLAGS = -Ofast=ipxx
#
# Linux/Intel PentiumII, egcs 1.0.3 C compiler:
# CFLAGS = -O6 -fomit-frame-pointer -funroll-all-loops
#
#######
## HMMER installers should not need to modify below this line
## Much of it is concerned with maintenance of the development version
## and building the release (indeed, several commands will only work in
## St. Louis)
#######
RELEASE = 2.1.1
RELEASEDATE = "Dec 1998"
RELCODE = "rel2_1_1"
LICENSE = gnu
SHELL = /bin/sh
SQUIDSRCDIR = $(HOME)/src/squid
COMPRESS = compress
FTPDIR = /nfs/newftp/eddy/hmmer/
PROGS = hmmalign hmmbuild hmmcalibrate hmmconvert hmmemit\
hmmfetch hmmindex hmmpfam hmmsearch
SQUIDPROGS = alistat getseq seqstat sreformat
PVMPROGS = @PVMPROGS@
READMES = 00README INSTALL
HDRS = config.h funcs.h globals.h structs.h version.h
SRC = hmmalign.c hmmbuild.c hmmcalibrate.c hmmconvert.c\
hmmemit.c hmmfetch.c hmmindex.c hmmpfam.c\
hmmsearch.c\
hmmcalibrate-pvm.c hmmpfam-pvm.c hmmsearch-pvm.c\
alphabet.c core_algorithms.c debug.c emit.c\
emulation.c histogram.c hmmio.c mathsupport.c\
masks.c misc.c modelmakers.c plan7.c\
plan9.c prior.c pvm.c threads.c\
tophits.c trace.c
SQUIDSRC = alistat_main.c getseq_main.c seqstat_main.c sreformat_main.c\
aligneval.c alignio.c cluster.c dayhoff.c\
file.c getopt.c gsi.c hsregex.c interleaved.c\
iupac.c msf.c revcomp.c selex.c\
sqerror.c sqio.c sre_ctype.c sre_math.c\
sre_string.c stack.c translate.c types.c\
weight.c
SQUIDHDRS = gnuregex.h squid.h sqfuncs.h
SHIVADIST = README\
alignalign_test.c evd_test.c masks_test.c parsingviterbi_test.c\
tophits_test.c trace_test.c viterbi_exercise.c\
weeviterbi_test.c\
Optiontests.pl Optiontests.fa Optiontests.nfa Optiontests.nslx\
Optiontests.pam Optiontests.slx\
fn3.hmm fn3.seed titin.fa\
trace_test.hmm trace_test.seq trace_test.slx \
weeviterbi_test.hmm weeviterbi_test.seq\
Exercises.sh fn3-bin fn3-bin-swap
DEMOS = globins50.msf globins630.fa Artemia.fa\
rrm.slx pkinase.slx fn3.slx\
rrm.hmm\
RU1A_HUMAN 7LES_DROME\
amino.null nucleic.null amino.pri nucleic.pri
# all: compiles the src package, if we don't have precompiled binaries,
# and moves them into binaries/ subdirectory.
#
all:
@if test -d binaries; then\
echo "You have a precompiled HMMER distribution. No need to make.";\
else\
(cd src; make CC="$(CC)" CFLAGS="$(CFLAGS)");\
mkdir binaries;\
for prog in $(PROGS) $(SQUIDPROGS) $(PVMPROGS); do\
mv src/$$prog binaries/;\
done;\
fi
# check: compiles and runs test suite in Shiva/
# These are public tests, distributed with the package.
#
check:
(cd src; make CC="$(CC)" CFLAGS="$(CFLAGS)" libhmmer.a)
(cd Shiva; make CC="$(CC)" CFLAGS="$(CFLAGS)")
(cd Shiva; make shiva)
# install: installs the binaries in BINDIR/
# installs man pages in MANDIR/man1/ (if MANSUFFIX is 1)
install:
for file in $(PROGS) $(SQUIDPROGS) $(PVMPROGS); do\
cp binaries/$$file $(BINDIR)/;\
done
for file in hmmer $(PROGS) $(SQUIDPROGS); do\
$(INSTMAN) Man/$$file.man $(MANDIR)/man$(MANSUFFIX)/$$file.$(MANSUFFIX);\
done
# "make clean" removes everything but the distribution
#
clean:
-rm -rf binaries
-rm -f *.o *~ Makefile.bak core TAGS gmon.out
-rm config.cache config.log config.status
(cd Shiva; make clean)
(cd src; make clean)
-rm Makefile src/Makefile
# "make almostclean" leaves the binaries, for instance,
# if we want to make a binary distribution
#
almostclean:
-rm -f *.o *~ Makefile.bak core TAGS gmon.out
-rm config.cache config.log config.status
(cd Shiva; make clean)
(cd src; make clean)
-rm Makefile src/Makefile
# verify: consistency checks on the package
# These are private tests, not distributed with HMMER
verify:
@echo Checking that RCS checkins are complete...
@echo
@for file in $(READMES) Makefile.in; do\
if test -w $$file; then echo "Toplevel $$file not checked in"; fi;\
done;
@for file in $(SRC) $(HDRS) Makefile.in; do\
if test -w src/$$file; then echo "src/$$file not checked in"; fi;\
done;
@for file in $(SQUIDSRC) $(SQUIDHDRS); do\
if test -w $(SQUIDSRCDIR)/$$file; then echo "SQUID $$file not checked in"; fi;\
done;
@for file in $(DEMOS); do\
if test -w Demos/$$file; then echo "Demos/$$file not checked in"; fi;\
done;
@for file in $(PROGS); do\
if test -w Man/$$file.man; then echo "Man/$$file not checked in"; fi;\
done;
@for file in $(SQUIDPROGS); do\
if test -w $(SQUIDSRCDIR)/Man/$$file.man; then echo "SQUID Man/$$file not checked in"; fi;\
done;
@for file in $(SHIVADIST) Makefile.in; do\
if test -w Shiva/$$file; then echo "Shiva/$$file not checked in"; fi;\
done;
@echo
@echo Checking options for consistency and documentation...
@for prog in $(PROGS) $(SQUIDPROGS); do\
./checkoptions.pl $$prog;\
done
# doc: build the Userguide and on-line manual
#
doc:
(cd Userguide; make)
# squid: update files from squid library.
#
squid:
for file in $(SQUIDHDRS); do\
co $(HOME)/src/squid/RCS/$$file,v src/$$file;\
done
for file in $(SQUIDSRC); do\
co ${SQUIDSRCDIR}/RCS/$$file,v src/$$file;\
done
for file in $(SQUIDPROGS); do\
co ${SQUIDSRCDIR}/Man/RCS/$$file.man,v Man/$$file.man;\
done
# dist: build a new distribution directory in build/hmmer-$RELEASE
# checks out RCS files read-only
# tags RCS files with $(RELCODE) for later reconstruction
# squid RCS files are tagged with hmmer$(RELCODE).
# Adds a license statement to each file that has a @LICENSE@ line.
#
# Thou mayest not use files other than RCS files for a build.
# (Else reconstruction may not work).
#
dist:
#
# Create directory structure for build
#
@if test -d build/hmmer-$(RELEASE); then rm -rf build/hmmer-$(RELEASE); fi
@if test -d build/hmmer-$(RELEASE).tar; then rm -f build/hmmer-$(RELEASE).tar; fi
@if test -d build/hmmer-$(RELEASE).tar.Z; then rm -f build/hmmer-$(RELEASE).tar.Z; fi
@if test -d build/hmmer-$(RELEASE).tar.gz; then rm -f build/hmmer-$(RELEASE).tar.gz; fi
mkdir build/hmmer-$(RELEASE)
mkdir build/hmmer-$(RELEASE)/src
mkdir build/hmmer-$(RELEASE)/Demos
mkdir build/hmmer-$(RELEASE)/Man
mkdir build/hmmer-$(RELEASE)/Shiva
mkdir build/hmmer-$(RELEASE)/Userguide
#
# Make the configure script
#
autoconf
cp configure build/hmmer-$(RELEASE)/
#
# Attach the license and release notes
#
cp Licenses/LICENSE.$(LICENSE) build/hmmer-$(RELEASE)/LICENSE
cp Licenses/COPYING.$(LICENSE) build/hmmer-$(RELEASE)/COPYING
cp ReleaseNotes/RELEASE-$(RELEASE) build/hmmer-$(RELEASE)/NOTES
#
# RCS extraction of top level README-type documentation and Makefile
#
for file in $(READMES) Makefile.in; do\
rcs -N$(RELCODE): RCS/$$file,v;\
co RCS/$$file,v build/hmmer-$(RELEASE)/$$file;\
licenseadd.pl Licenses/$(LICENSE) build/hmmer-$(RELEASE)/$$file;\
done
#
# RCS extraction of src/ source code subdirectory
#
for file in $(SRC) $(HDRS) Makefile.in; do\
rcs -N$(RELCODE): src/RCS/$$file,v;\
co src/RCS/$$file,v build/hmmer-$(RELEASE)/src/$$file;\
licenseadd.pl Licenses/$(LICENSE) build/hmmer-$(RELEASE)/src/$$file;\
done
for file in $(SQUIDSRC) $(SQUIDHDRS); do\
rcs -Nhmmer_$(RELCODE): $(SQUIDSRCDIR)/RCS/$$file,v;\
co $(SQUIDSRCDIR)/RCS/$$file,v build/hmmer-$(RELEASE)/src/$$file;\
licenseadd.pl Licenses/$(LICENSE) build/hmmer-$(RELEASE)/src/$$file;\
done
#
# RCS extraction of Demos/
#
for file in $(DEMOS); do\
rcs -N$(RELCODE): Demos/RCS/$$file,v;\
co Demos/RCS/$$file,v build/hmmer-$(RELEASE)/Demos/$$file;\
licenseadd.pl Licenses/$(LICENSE) build/hmmer-$(RELEASE)/Demos/$$file;\
done
#
# RCS extraction of HMMER Man/ manual pages
#
for file in $(PROGS) hmmer; do\
rcs -N$(RELCODE): Man/RCS/$$file.man,v;\
co -p Man/RCS/$$file.man,v | sed -e 's/@RELEASE@/${RELEASE}/g' \
-e 's/@RELEASEDATE@/${RELEASEDATE}/g' \
-e 's/@SEEALSO@/${PROGS}/g'\
> build/hmmer-$(RELEASE)/Man/$$file.man;\
licenseadd.pl Licenses/$(LICENSE) build/hmmer-$(RELEASE)/Man/$$file.man;\
done
#
# RCS extraction of SQUID Man/ manual pages
#
for file in $(SQUIDPROGS); do\
rcs -Nhmmer_$(RELCODE): ${SQUIDSRCDIR}/Man/RCS/$$file.man,v;\
co -p ${SQUIDSRCDIR}/Man/RCS/$$file.man,v |\
sed -e 's/@RELEASE@/${RELEASE}/g' \
-e 's/@RELEASEDATE@/${RELEASEDATE}/g' \
-e 's/@PACKAGE@/HMMER/g' \
-e 's/@SEEALSO@/${SQUIDPROGS}/g'\
> build/hmmer-$(RELEASE)/Man/$$file.man;\
licenseadd.pl Licenses/$(LICENSE) build/hmmer-$(RELEASE)/Man/$$file.man;\
done
#
# RCS extraction of Shiva/ testsuite
#
for file in $(SHIVADIST) Makefile.in; do\
rcs -N$(RELCODE): Shiva/RCS/$$file,v;\
co Shiva/RCS/$$file,v build/hmmer-$(RELEASE)/Shiva/$$file;\
licenseadd.pl Licenses/$(LICENSE) build/hmmer-$(RELEASE)/Shiva/$$file;\
done
#
# Compilation of documentation: includes hmmer-html.tar.Z and Userguide.ps
# Documentation not provided in source form.
#
(cd Userguide; make clean)
(cd Userguide; make)
cp Userguide/Userguide.ps build/hmmer-$(RELEASE)/Userguide/
cp Userguide/Userguide.pdf build/hmmer-$(RELEASE)/Userguide/
cp Userguide/hmmer-html.tar.Z build/hmmer-$(RELEASE)/Userguide/
#
# Packaging commands
#
(cd build; tar cvf hmmer-$(RELEASE).tar hmmer-$(RELEASE))
$(COMPRESS) build/hmmer-$(RELEASE).tar
# make ftpdist: install FTP distribution. Assumes a "make dist"
# has already succeeded. Doesn't do the symlink;
# doesn't install the on-line manual for the Web site.
#
ftpdist:
cp $(READMES) $(FTPDIR)
cp build/hmmer-$(RELEASE)/COPYING $(FTPDIR)
cp build/hmmer-$(RELEASE)/LICENSE $(FTPDIR)
cp build/hmmer-$(RELEASE)/NOTES $(FTPDIR)
cp build/hmmer-$(RELEASE).tar.Z $(FTPDIR)
cp build/hmmer-$(RELEASE)-*.tar.Z $(FTPDIR)
cp Userguide/Userguide.ps $(FTPDIR)
cp Userguide/Userguide.pdf $(FTPDIR)
cp Userguide/hmmer-html.tar.Z $(FTPDIR)
# make stable: Set up the FTP site symlink to the current stable HMMER release.
#
stable:
ln -s $(FTPDIR)/hmmer-$(RELEASE).tar.Z $(FTPDIR)/hmmer.tar.Z
|