Debian Codegraph @

Makefile.in

raw ◀ ▶
Source reconstructed at patch state 0 of 3 — not the installed (fully patched) source.
3 Debian patches touch this file
1 # Top level Makefile for HMMER3
2 #
3 # On most systems, to build H3 you should only need:
4 # % ./configure; make
5 #
6 # Optionally, you can run a test suite:
7 # % make check
8 #
9 # Optionally, you can install programs and man pages more permanently:
10 # % make install
11 #
12 # Optionally, you can install some small tools ("miniapps") from our Easel library:
13 # % (cd easel; make install)
14 #
15 # For more information, see the Installation section in the User's Guide.
16 #
17
18
19 # VPATH and shell configuration
20 #
21 top_srcdir = @top_srcdir@
22 srcdir = @srcdir@
23 VPATH = @srcdir@
24 SHELL = /bin/sh
25
26 # location of easel
27 ESLDIR = @HMMER_ESLDIR@
28
29 # location of libdivsufsort for suffix array creation
30 SADIR = @HMMER_SADIR@
31
32
33 # Package information
34 #
35 PACKAGE = @PACKAGE_NAME@
36 PACKAGE_VERSION = @PACKAGE_VERSION@
37 PACKAGE_TARNAME = @PACKAGE_TARNAME@
38
39 # Installation targets
40 #
41 prefix = @prefix@
42 exec_prefix = @exec_prefix@
43 datarootdir = @datarootdir@
44 bindir = @bindir@
45 libdir = @libdir@
46 includedir = @includedir@
47 mandir = @mandir@
48 docdir = @docdir@
49 pdfdir = @pdfdir@
50 mandir = @mandir@
51 man1dir = ${mandir}/man1
52 man1ext = .1
53
54 # Compiler configuration
55 #
56 CC = @CC@
57 CFLAGS = @CFLAGS@
58 PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
59 NEON_CFLAGS = @NEON_CFLAGS@
60 SSE_CFLAGS = @SSE_CFLAGS@
61 VMX_CFLAGS = @VMX_CFLAGS@
62 LDFLAGS = -static @LDFLAGS@
63 CPPFLAGS = @CPPFLAGS@
64
65 # Other tools
66 #
67 AR = @AR@
68 RANLIB = @RANLIB@
69 INSTALL = @INSTALL@
70
71 # beautification magic stolen from git
72 #
73 QUIET_SUBDIR0 = +${MAKE} -C #space separator after -c
74 QUIET_SUBDIR1 =
75 ifndef V
76 QUIET = @
77 QUIET_CC = @echo ' ' CC $@;
78 QUIET_GEN = @echo ' ' GEN $@;
79 QUIET_AR = @echo ' ' AR $@;
80 QUIET_SUBDIR0 = +@subdir=
81 QUIET_SUBDIR1 = ; echo ' ' SUBDIR $$subdir; \
82 ${MAKE} -s -C $$subdir
83 endif
84
85 .PHONY: all dev check pdf install install-strip uninstall clean distclean TAGS
86
87 # all: Compile all documented executables.
88 # (Excludes test programs.)
89 #
90 all:
91 ${QUIET_SUBDIR0}${ESLDIR} ${QUIET_SUBDIR1} all
92 ${QUIET_SUBDIR0}${SADIR} ${QUIET_SUBDIR1} all
93 ${QUIET_SUBDIR0}src ${QUIET_SUBDIR1} all
94 ${QUIET_SUBDIR0}profmark ${QUIET_SUBDIR1} all
95
96 # dev: compile all executables, including drivers.
97 #
98 dev:
99 ${QUIET_SUBDIR0}${ESLDIR} ${QUIET_SUBDIR1} dev
100 ${QUIET_SUBDIR0}${SADIR} ${QUIET_SUBDIR1} all
101 ${QUIET_SUBDIR0}src ${QUIET_SUBDIR1} dev
102 ${QUIET_SUBDIR0}profmark ${QUIET_SUBDIR1} dev
103
104 # tests: compile all test drivers for 'make check'
105 #
106 tests:
107 ${QUIET_SUBDIR0}${ESLDIR} ${QUIET_SUBDIR1} tests
108 ${QUIET_SUBDIR0}src ${QUIET_SUBDIR1} tests
109
110 # check: Run test suites.
111 #
112 check:
113 @command -v python3 >/dev/null 2>&1 || { echo >&2 "python3 is required for 'make check', but is not in your PATH. Aborting."; exit 1; }
114 ${QUIET_SUBDIR0}${ESLDIR} ${QUIET_SUBDIR1} tests
115 ${QUIET_SUBDIR0}${SADIR} ${QUIET_SUBDIR1} all
116 ${QUIET_SUBDIR0}src ${QUIET_SUBDIR1} tests
117 ${QUIET_SUBDIR0}${ESLDIR} ${QUIET_SUBDIR1} check
118 ${QUIET_SUBDIR0}testsuite ${QUIET_SUBDIR1} check
119
120 # pdf: compile the User Guides.
121 #
122 pdf:
123 ${QUIET_SUBDIR0}documentation ${QUIET_SUBDIR1} pdf
124
125 # install: binaries in ${bindir}/, man pages in ${man1dir}/
126 # Creates these directories if they don't exist.
127 #
128 # Prefix paths with optional ${DESTDIR}, which
129 # downstream packagers may set on make command line when
130 # building packages.
131 #
132 # Does not use quiet beautification magic; always verbose.
133 install: all
134 if [ ! -d ${DESTDIR}${bindir} ]; then ${INSTALL} -d ${DESTDIR}${bindir}; fi
135 if [ ! -d ${DESTDIR}${man1dir} ]; then ${INSTALL} -d ${DESTDIR}${man1dir}; fi
136 ${MAKE} -C src install
137 ${MAKE} -C documentation install
138
139 # install-strip: same as install, but strip binaries
140 #
141 install-strip: all
142 if [ ! -d ${DESTDIR}${bindir} ]; then ${INSTALL} -d ${DESTDIR}${bindir}; fi
143 if [ ! -d ${DESTDIR}${man1dir} ]; then ${INSTALL} -d ${DESTDIR}${man1dir}; fi
144 ${MAKE} -C src install-strip
145 ${MAKE} -C documentation install
146
147 # uninstall: reverses the steps of "make install".
148 #
149 uninstall:
150 ${MAKE} -C src uninstall
151 ${MAKE} -C documentation uninstall
152
153 # "make clean" removes almost everything except configuration files.
154 #
155 clean:
156 ${QUIET_SUBDIR0}src ${QUIET_SUBDIR1} clean
157 ${QUIET_SUBDIR0}profmark ${QUIET_SUBDIR1} clean
158 ${QUIET_SUBDIR0}testsuite ${QUIET_SUBDIR1} clean
159 ${QUIET_SUBDIR0}documentation ${QUIET_SUBDIR1} clean
160 ${QUIET_SUBDIR0}${ESLDIR} ${QUIET_SUBDIR1} clean
161 ${QUIET_SUBDIR0}${SADIR} ${QUIET_SUBDIR1} clean
162 ${QUIET}-rm -f *.o *~ Makefile.bak core TAGS TAGS.part gmon.out
163 ifndef V
164 @echo ' ' CLEAN hmmer
165 endif
166
167 # "make distclean" leaves a pristine source distribution.
168 #
169 distclean:
170 ${QUIET_SUBDIR0}src ${QUIET_SUBDIR1} distclean
171 ${QUIET_SUBDIR0}profmark ${QUIET_SUBDIR1} distclean
172 ${QUIET_SUBDIR0}testsuite ${QUIET_SUBDIR1} distclean
173 ${QUIET_SUBDIR0}documentation ${QUIET_SUBDIR1} distclean
174 ${QUIET_SUBDIR0}${ESLDIR} ${QUIET_SUBDIR1} distclean
175 ${QUIET_SUBDIR0}${SADIR} ${QUIET_SUBDIR1} distclean
176 ${QUIET}-rm -f config.log config.status
177 ${QUIET}-rm -rf autom4te.cache
178 ${QUIET}-rm -f *.o *~ Makefile.bak core TAGS TAGS.part gmon.out
179 ${QUIET}-rm -f cscope.po.out cscope.out cscope.in.out cscope.files
180 ${QUIET}-rm -f src/impl
181 ${QUIET}-rm Makefile
182 ifndef V
183 @echo ' ' CLEAN hmmer
184 endif
185
186 TAGS:
187 ./makeTAGS.sh