File: Makefile.in

package info (click to toggle)
hmmer2 2.3.2-8
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,392 kB
  • ctags: 1,578
  • sloc: ansic: 28,525; sh: 3,748; makefile: 531; perl: 390
file content (315 lines) | stat: -rw-r--r-- 10,823 bytes parent folder | download | duplicates (9)
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
################################################################# 
# Makefile for HMMER: Main project directory: installation, documentation
# CVS $Id: Makefile.in,v 1.55 2003/10/01 13:06:04 eddy Exp $
###########
# HMMER - Biological sequence analysis with profile HMMs
# Copyright (C) 1992-2003 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.
###########

# On most 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@

#######
## You 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)
#######
SHELL       = /bin/sh
PACKAGE     = @PACKAGE_NAME@
BASENAME    = @PACKAGE_TARNAME@
RELEASE     = @PACKAGE_VERSION@
RELEASEDATE = "@PACKAGE_DATE@"
COPYRIGHT   = "@PACKAGE_COPYRIGHT@"
LICENSELINE = "@PACKAGE_LICENSE@"
RELCODE     = @PACKAGE_RELCODE@
LICENSETAG  = gnu
COMPRESS    = gzip
FTPDIR      = /nfs/ftp/eddy/hmmer/${RELEASE}/

# The program lists below for HMMER are not necessarily
# a complete manifest. They are the list of stable programs that the
# package will install. There must be a man page for each one of them
# in the appropriate places (documentation/man for HMMER)
#
PROGS = hmmalign\
	hmmbuild\
	hmmcalibrate\
	hmmconvert\
	hmmemit\
	hmmfetch\
	hmmindex\
	hmmpfam\
	hmmsearch

PVMPROGS = @PVMPROGS@


# all: Compile everything.
#
all: 
	@ if test -d binaries; then\
	  echo "This appears to be a binary distribution; nothing needs to be compiled." ; \
          echo "Use make install to install the precompiled binaries." ; \
	  echo "If you really want to rebuild from source, move or delete the" ;\
	  echo "binaries/ subdirectory."; \
	else\
	  (cd squid;     ${MAKE}; ${MAKE} module);\
	  (cd src;       ${MAKE}; ${MAKE} module);\
	  (cd testsuite; ${MAKE});\
	fi

# check: compiles and runs test suite in testsuite/
#       These are public tests, distributed with the package.
#
check:	
	(cd testsuite; make check)

squid/libsquid.a:
	(cd squid; make; make module)

src/libhmmer.a: 
	(cd src;   make; make module)


# install: installs the binaries in BINDIR/
#          installs man pages in MANDIR/man1/  (e.g. if MANSUFFIX is 1)
#          Creates these directories if they don't exist.
install: 
	mkdir -p ${BINDIR}
	-mkdir -p ${MANDIR}/man${MANSUFFIX}
	for file in $(PROGS) $(PVMPROGS); do\
	   cp src/$$file $(BINDIR)/;\
	done
	-for file in hmmer $(PROGS); do\
	   $(INSTMAN) documentation/man/$$file.man $(MANDIR)/man$(MANSUFFIX)/$$file.$(MANSUFFIX);\
	done

# uninstall: Reverses the steps of "make install".
#
uninstall: 
	for file in $(PROGS) $(PVMPROGS); do\
	   rm ${BINDIR}/$$file;\
	done
	for file in hmmer $(PROGS); do\
	   rm $(MANDIR)/man$(MANSUFFIX)/$$file.$(MANSUFFIX);\
	done

# bindist: after building, prep the whole directory for a binary
#          distribution: symlink supported binaries in binaries/
#          subdir, remove everything but binaries and Makefiles.
#
bindist:
	mkdir binaries
	for prog in $(PROGS); do\
	   (cd binaries; ln -s ../src/$$prog .);\
	done
	make binclean

# "make clean" removes almost everything except configuration files.
#
clean:
	(cd src;       make clean)
	(cd squid;     make clean)
	(cd testsuite; make clean)
	-rm -f *.o *~ Makefile.bak core TAGS gmon.out

# "make distclean" leaves a pristine source distribution.
#
distclean:
	-rm -rf binaries
	-rm config.log config.status
	-rm -rf autom4te.cache
	-rm -f *.o *~ Makefile.bak core TAGS gmon.out
	-rm Makefile
	(cd src;       make distclean)
	(cd squid;     make distclean)
	(cd testsuite; make distclean)


# "make binclean" is special: it cleans up and leaves only a binary
#       distribution behind, including configured Makefiles.
#
binclean:
	(cd src;       make binclean)
	(cd squid;     make binclean)
	(cd testsuite; make binclean)
	-rm -f *.o *~ Makefile.bak core TAGS gmon.out
	-rm config.log config.status
	-rm -rf autom4te.cache

# doc:  build the Userguide and on-line manual
#
doc:
	(cd documentation/userguide; make)

# dist: build a new distribution directory in hmmer-$RELEASE
#       Exports from the CVS repository.
#       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.
#       Virtually identical to squid's make dist -- keep them in sync!
dist:	
	# Delete old versions of the same release
	#
	@if test -d ${BASENAME}-$(RELEASE);        then rm -rf ${BASENAME}-$(RELEASE);        fi
	@if test -e ${BASENAME}-$(RELEASE).tar;    then rm -f  ${BASENAME}-$(RELEASE).tar;    fi
	@if test -e ${BASENAME}-$(RELEASE).tar.Z;  then rm -f  ${BASENAME}-$(RELEASE).tar.Z;  fi
	@if test -e ${BASENAME}-$(RELEASE).tar.gz; then rm -f  ${BASENAME}-$(RELEASE).tar.gz; fi
	# 
	# CVS tag and extract.  -F: allow more than one "make dist" per rel
	# prep: must have done "cvs commit", and CVSROOT must be set
	# We also need the squid library, so tag and export it too.
	#
	cvs tag -F $(RELCODE)
	cvs export -r $(RELCODE) -d ${BASENAME}-${RELEASE} ${BASENAME}
	cvs rtag -F ${RELCODE} squid
	(cd ${BASENAME}-${RELEASE}; cvs export -r ${RELCODE} -d squid squid)
	# 
	# We won't include the ssdk in the distro, but we need a 
	# working copy of it temporarily, for rmanprocess.pl 
	# (when making the user guide); we also need to put a copy of sqc 
	# in testsuite. 
	#
	cp ssdk/sqc ${BASENAME}-${RELEASE}/testsuite/
	mkdir ${BASENAME}-${RELEASE}/ssdk
	cp ssdk/rmanprocess.pl ${BASENAME}-${RELEASE}/ssdk/
	# 
	# Make the configure scripts from configure.ac
	#
	(cd ${BASENAME}-${RELEASE};       autoconf)
	(cd ${BASENAME}-${RELEASE}/squid; autoconf)
	#
	# We need a basic squid Makefile, so we can later do
	# a "make implode" in squid. We'll delete it later.
	#
	(cd ${BASENAME}-${RELEASE}/squid; ./configure)
	# 
	# Include the appropriate license files and release notes
	#
	cp  Licenses/LICENSE.$(LICENSETAG)   ${BASENAME}-$(RELEASE)/LICENSE
	cp  Licenses/COPYING.$(LICENSETAG)   ${BASENAME}-$(RELEASE)/COPYRIGHT
	-cp Release-Notes/RELEASE-$(RELEASE) ${BASENAME}-$(RELEASE)/NOTES
	#
	# Attach license stamps on files that need 'em (replace LICENSE keyword everywhere)
	#
	find ${BASENAME}-${RELEASE} -type f -exec ssdk/sedition-pp LICENSE Licenses/$(LICENSETAG) {} \;
	#
	# All other automated keyword replacements are in the documentation
	# or README type files.
	# 
	find ${BASENAME}-${RELEASE}/documentation -type f -exec ssdk/sedition RELEASE ${RELEASE} RELEASEDATE ${RELEASEDATE} PACKAGE ${PACKAGE} COPYRIGHT ${COPYRIGHT} LICENSELINE ${LICENSELINE} {} \;
	ssdk/sedition RELEASE ${RELEASE} RELEASEDATE ${RELEASEDATE} COPYRIGHT ${COPYRIGHT} ${BASENAME}-${RELEASE}/00README
	ssdk/sedition RELEASE ${RELEASE} ${BASENAME}-${RELEASE}/INSTALL
	ssdk/sedition COPYRIGHT ${COPYRIGHT} ${BASENAME}-${RELEASE}/COPYRIGHT
	#
	# Compilation of the documentation.
	# Documentation is not provided in source form.
	# We make it from the distro version, because we've done the proper 
	# keyword substitutions there.
	#
	(cd ${BASENAME}-${RELEASE}/documentation/userguide; make)
	cp -f ${BASENAME}-${RELEASE}/documentation/userguide/Userguide.pdf $(BASENAME)-$(RELEASE)/
	# 
	# Finish the man pages off, adding necessary boilerplate.
	# This must be done *after* the user guide is created, since the
	# user guide steals and uses the pre-boilerplate man pages.
	#
	for prog in $(PROGS); do\
	   cat ${BASENAME}-${RELEASE}/documentation/man/boilerplate >> ${BASENAME}-${RELEASE}/documentation/man/$$prog.man;\
	done
	-rm -f ${BASENAME}-${RELEASE}/documentation/man/boilerplate
	#
	# Remove CVS-controlled files/directories that don't belong in 
	# the distro
	#
	-rm -rf ${BASENAME}-${RELEASE}/Bugs
	-rm -rf ${BASENAME}-${RELEASE}/CHECKLIST
	-rm -rf ${BASENAME}-${RELEASE}/Internal-Notes
	-rm -rf ${BASENAME}-${RELEASE}/Licenses
	-rm -rf ${BASENAME}-${RELEASE}/MAILING_LIST
	-rm -rf ${BASENAME}-${RELEASE}/Release-Notes
	-rm -rf ${BASENAME}-${RELEASE}/configure.ac
	-rm -rf ${BASENAME}-${RELEASE}/autom4te.cache 
	-rm -rf ${BASENAME}-${RELEASE}/documentation/userguide
	-rm -rf ${BASENAME}-${RELEASE}/squid/Licenses
	-rm -rf ${BASENAME}-${RELEASE}/squid/LOG
	-rm -rf ${BASENAME}-${RELEASE}/squid/configure.ac
	-rm -rf ${BASENAME}-${RELEASE}/ssdk
	(cd ${BASENAME}-${RELEASE}/squid; make implode)
	(cd ${BASENAME}-${RELEASE}/squid; make distclean)
	#
	# Set file permissions
	#
	find ${BASENAME}-${RELEASE} -type f -exec chmod +r {} \;
	chmod +x ${BASENAME}-${RELEASE}/testsuite/sqc
	#
	# Packaging commands
	#
	tar cvf ${BASENAME}-${RELEASE}.tar ${BASENAME}-${RELEASE}
	$(COMPRESS) ${BASENAME}-$(RELEASE).tar


# make ftpdist: install FTP source distribution. Assumes a "make dist"
#               has already succeeded and left the uncompressed
#               directory.
#
ftpdist:
	mkdir -p ${FTPDIR}
	cp -f hmmer-$(RELEASE)/00README         ${FTPDIR}
	cp -f hmmer-$(RELEASE)/COPYRIGHT        ${FTPDIR}
	cp -f hmmer-$(RELEASE)/INSTALL          ${FTPDIR}
	cp -f hmmer-$(RELEASE)/LICENSE          ${FTPDIR}
	cp -f hmmer-$(RELEASE)/NOTES            ${FTPDIR}
	cp -f hmmer-$(RELEASE)/Userguide.pdf    ${FTPDIR}
	cp -f hmmer-$(RELEASE).tar.gz           ${FTPDIR}

# make stable: Set up the FTP site symlink to the current stable HMMER release.
#
stable:
	(cd ${FTPDIR}; \rm -f CURRENT; ln -s ${RELEASE} CURRENT)

# make optcheck:
#    Check that all program options are documented in man pages,
#    and tested in sqc scripts, by running ssdk's checkoptions.pl 
#    script on each program. 
#    
optcheck:
	@echo Checking options for consistency and documentation...
	@for prog in $(PROGS); do\
	   ssdk/checkoptions.pl src/$$prog documentation/man/$$prog.man testsuite/exercises.sqc testsuite/exercises-threaded.sqc testsuite/exercises-pvm.sqc;\
	done