9 exec_prefix = @
exec_prefix@
10 datarootdir
= @datarootdir@
11 includedir = @
includedir@
17 localstatedir
= @localstatedir@
20 VPATH
= @
srcdir@
:@tdbdir@
:@tallocdir@
:@libreplacedir@
:@poptdir@
:@teventdir@
:
26 XSLTPROC
= /usr
/bin
/xsltproc
27 INSTALLCMD
= @INSTALL@
29 POPT_LIBS
= @POPT_LIBS@
30 POPT_CFLAGS
= @POPT_CFLAGS@
33 TALLOC_LIBS
= @TALLOC_LIBS@
34 TALLOC_CFLAGS
= @TALLOC_CFLAGS@
35 TALLOC_OBJ
= @TALLOC_OBJ@
37 TEVENT_LIBS
= @TEVENT_LIBS@
38 TEVENT_CFLAGS
= @TEVENT_CFLAGS@
39 TEVENT_OBJ
= @TEVENT_OBJ@
42 TDB_CFLAGS
= @TDB_CFLAGS@
45 SOCKET_WRAPPER_OBJ
= @SOCKET_WRAPPER_OBJS@
47 PMDA_LIBS
= -lpcp
-lpcp_pmda
48 PMDA_INSTALL
= @CTDB_PMDA_INSTALL@
49 PMDA_DEST_DIR
= /var
/lib
/pcp
/pmdas
51 CFLAGS
=@CPPFLAGS@
-g
-I
$(srcdir)/include -Iinclude
-Ilib
-Ilib
/util
-I
$(srcdir) \
52 $(TALLOC_CFLAGS
) $(TEVENT_CFLAGS
) $(TDB_CFLAGS
) -I@libreplacedir@ \
53 -DVARDIR
=\"$(localstatedir
)\" -DETCDIR
=\"$(etcdir
)\" \
54 -DLOGDIR
=\"$(logdir
)\" -DBINDIR
=\"$(bindir)\" \
55 -DSOCKPATH
=\"$(sockpath
)\" \
56 -DUSE_MMAP
=1 -DTEVENT_DEPRECATED_QUIET
=1 @CFLAGS@
-Wno-format-zero-length
$(POPT_CFLAGS
) \
59 LDSHFLAGS
=-fPIC
-shared
60 #LDSHFLAGS=-fPIC -shared -Wl,-Bsymbolic -Wl,-z,relo -Wl,-Bsymbolic-funtions -Wl,--as-needed -Wl,-z,defs
61 SHLD
=${CC} ${CFLAGS} ${LDSHFLAGS} -o
$@
63 LIB_FLAGS
=@LDFLAGS@
-Llib @LIBS@
$(POPT_LIBS
) $(TALLOC_LIBS
) $(TEVENT_LIBS
) $(TDB_LIBS
) \
64 @INFINIBAND_LIBS@ @CTDB_PCAP_LDFLAGS@
66 CTDB_VERSION_H
= include/ctdb_version.h
68 UTIL_OBJ
= lib
/util
/idtree.o lib
/util
/db_wrap.o lib
/util
/strlist.o lib
/util
/util.o \
69 lib
/util
/util_time.o lib
/util
/util_file.o lib
/util
/fault.o lib
/util
/substitute.o \
72 CTDB_COMMON_OBJ
= common
/ctdb_io.o common
/ctdb_util.o \
73 common
/ctdb_ltdb.o common
/ctdb_message.o common
/cmdline.o \
74 lib
/util
/debug.o common
/rb_tree.o @CTDB_SYSTEM_OBJ@ common
/system_common.o \
75 common
/ctdb_logging.o common
/ctdb_fork.o
77 CTDB_LIB_OBJ
= libctdb
/ctdb.o libctdb
/io_elem.o libctdb
/local_tdb.o \
78 libctdb
/messages.o libctdb
/sync.o libctdb
/control.o \
79 libctdb
/logging.o
$(SOCKET_WRAPPER_OBJ
)
81 CTDB_TCP_OBJ
= tcp
/tcp_connect.o tcp
/tcp_io.o tcp
/tcp_init.o
83 CTDB_CLIENT_OBJ
= client
/ctdb_client.o \
84 $(CTDB_COMMON_OBJ
) $(POPT_OBJ
) $(UTIL_OBJ
) $(TALLOC_OBJ
) $(TDB_OBJ
) \
85 @LIBREPLACEOBJ@
$(EXTRA_OBJ
) $(TEVENT_OBJ
) $(SOCKET_WRAPPER_OBJ
)
87 CTDB_SERVER_OBJ
= server
/ctdbd.o server
/ctdb_daemon.o \
88 server
/ctdb_recoverd.o server
/ctdb_recover.o server
/ctdb_freeze.o \
89 server
/ctdb_tunables.o server
/ctdb_monitor.o server
/ctdb_server.o \
90 server
/ctdb_control.o server
/ctdb_call.o server
/ctdb_ltdb_server.o \
91 server
/ctdb_traverse.o server
/eventscript.o server
/ctdb_takeover.o \
92 server
/ctdb_serverids.o server
/ctdb_persistent.o \
93 server
/ctdb_keepalive.o server
/ctdb_logging.o server
/ctdb_uptime.o \
94 server
/ctdb_vacuum.o server
/ctdb_banning.o server
/ctdb_statistics.o \
95 server
/ctdb_update_record.o server
/ctdb_lock.o \
96 $(CTDB_CLIENT_OBJ
) $(CTDB_TCP_OBJ
) @INFINIBAND_WRAPPER_OBJ@
98 TEST_BINS
=tests
/bin
/ctdb_bench tests
/bin
/ctdb_fetch tests
/bin
/ctdb_fetch_one \
99 tests
/bin
/ctdb_fetch_lock_once \
100 tests
/bin
/ctdb_fetch_readonly_once tests
/bin
/ctdb_fetch_readonly_loop \
101 tests
/bin
/ctdb_store tests
/bin
/ctdb_trackingdb_test \
102 tests
/bin
/ctdb_randrec tests
/bin
/ctdb_persistent \
103 tests
/bin
/ctdb_traverse tests
/bin
/rb_test tests
/bin
/ctdb_transaction \
104 tests
/bin
/ctdb_takeover_tests tests
/bin
/ctdb_update_record \
105 tests
/bin
/ctdb_update_record_persistent \
106 tests
/bin
/ctdb_tool_libctdb tests
/bin
/ctdb_tool_stubby \
107 tests
/bin
/ctdb_porting_tests \
110 BINS
= bin
/ctdb @CTDB_SCSI_IO@ bin
/smnotify bin
/ping_pong bin
/ltdbtool \
111 bin
/ctdb_lock_helper @CTDB_PMDA@
115 DIRS
= lib bin tests
/bin
119 all: showflags dirs
$(CTDB_VERSION_H
) $(CTDB_SERVER_OBJ
) $(CTDB_CLIENT_OBJ
) $(CTDB_LIB_OBJ
) $(BINS
) $(SBINS
) $(TEST_BINS
)
122 @echo
'ctdb will be compiled with flags:'
123 @echo
' CFLAGS = $(CFLAGS)'
124 @echo
' LIBS = $(LIB_FLAGS)'
127 @echo
"ctdb will be installed into:"
128 @echo
" prefix: $(prefix)"
129 @echo
" bindir: $(bindir)"
130 @echo
" sbindir: $(sbindir)"
131 @echo
" libdir: $(libdir)"
132 @echo
" vardir: $(localstatedir)"
133 @echo
" logdir: $(logdir)"
134 @echo
" mandir: $(mandir)"
135 @echo
" etcdir: $(etcdir)"
139 @mkdir
-p
`dirname $@`
140 @
$(CC
) $(CFLAGS
) -c
$< -o
$@
147 @.
/packaging
/mkversion.sh
149 bin
/ctdbd
: $(CTDB_SERVER_OBJ
)
151 @
$(CC
) $(CFLAGS
) -o
$@
$(CTDB_SERVER_OBJ
) $(LIB_FLAGS
)
153 libctdb
/libctdb.a
: $(CTDB_LIB_OBJ
)
156 @
$(AR
) $(ARFLAGS
) libctdb
/libctdb.a
$(CTDB_LIB_OBJ
)
157 @
$(RANLIB
) libctdb
/libctdb.a
159 libctdb
/libctdb.so
.0: $(CTDB_LIB_OBJ
)
161 @
$(SHLD
) -Wl
,-soname
=libctdb.so
.0 $(CTDB_LIB_OBJ
)
163 libctdb
/libctdb.so
: libctdb
/libctdb.so
.0
165 -@
rm -f libctdb
/libctdb.so
166 @ln
-s libctdb.so
.0 libctdb
/libctdb.so
168 bin
/scsi_io
: $(CTDB_CLIENT_OBJ
) utils
/scsi_io
/scsi_io.o
170 @
$(CC
) $(CFLAGS
) -o
$@ utils
/scsi_io
/scsi_io.o
$(CTDB_CLIENT_OBJ
) $(LIB_FLAGS
)
172 bin
/ctdb
: $(CTDB_CLIENT_OBJ
) tools
/ctdb.o tools
/ctdb_vacuum.o libctdb
/libctdb.a
174 @
$(CC
) $(CFLAGS
) -o
$@ tools
/ctdb.o tools
/ctdb_vacuum.o
$(CTDB_CLIENT_OBJ
) $(LIB_FLAGS
) libctdb
/libctdb.a
176 bin
/ltdbtool
: tools
/ltdbtool.o
$(TDB_OBJ
)
178 @
$(CC
) $(CFLAGS
) -o
$@
$+ $(TDB_LIBS
) $(LIB_FLAGS
)
180 bin
/ctdb_lock_helper
: server
/ctdb_lock_helper.o lib
/util
/util_file.o
$(TALLOC_OBJ
) $(TDB_OBJ
)
182 @
$(CC
) $(CFLAGS
) -o
$@
$+ $(TDB_LIBS
) $(LIB_FLAGS
)
184 bin
/smnotify
: utils
/smnotify
/gen_xdr.o utils
/smnotify
/gen_smnotify.o utils
/smnotify
/smnotify.o
$(POPT_OBJ
)
186 @
$(CC
) $(CFLAGS
) -o
$@ utils
/smnotify
/smnotify.o utils
/smnotify
/gen_xdr.o utils
/smnotify
/gen_smnotify.o
$(POPT_OBJ
) $(LIB_FLAGS
)
188 utils
/smnotify
/smnotify.o
: utils
/smnotify
/smnotify.c utils
/smnotify
/smnotify.h
190 utils
/smnotify
/smnotify.h
: utils
/smnotify
/smnotify.x
192 rpcgen
-h utils
/smnotify
/smnotify.x
> utils
/smnotify
/smnotify.h
194 utils
/smnotify
/gen_xdr.c
: utils
/smnotify
/smnotify.x utils
/smnotify
/smnotify.h
196 rpcgen
-c utils
/smnotify
/smnotify.x | grep
-Ev
'^[[:space:]]+register int32_t \*buf;' > utils
/smnotify
/gen_xdr.c
198 utils
/smnotify
/gen_smnotify.c
: utils
/smnotify
/smnotify.x utils
/smnotify
/smnotify.h
200 rpcgen
-l utils
/smnotify
/smnotify.x
> utils
/smnotify
/gen_smnotify.c
202 bin
/ping_pong
: utils
/ping_pong
/ping_pong.o
204 @
$(CC
) $(CFLAGS
) -o
$@ utils
/ping_pong
/ping_pong.o
$(LIB_FLAGS
)
206 bin
/pmdactdb
: $(CTDB_CLIENT_OBJ
) utils
/pmda
/pmda_ctdb.o
208 @
$(CC
) $(CFLAGS
) -o
$@ utils
/pmda
/pmda_ctdb.o
$(CTDB_CLIENT_OBJ
) $(LIB_FLAGS
) $(PMDA_LIBS
)
210 tests
/bin
/rb_test
: $(CTDB_CLIENT_OBJ
) tests
/src
/rb_test.o
212 @
$(CC
) $(CFLAGS
) -o
$@ tests
/src
/rb_test.o
$(CTDB_CLIENT_OBJ
) $(LIB_FLAGS
)
214 tests
/bin
/ctdb_bench
: $(CTDB_CLIENT_OBJ
) tests
/src
/ctdb_bench.o
216 @
$(CC
) $(CFLAGS
) -o
$@ tests
/src
/ctdb_bench.o
$(CTDB_CLIENT_OBJ
) $(LIB_FLAGS
)
218 tests
/bin
/ctdb_fetch
: $(CTDB_CLIENT_OBJ
) tests
/src
/ctdb_fetch.o
220 @
$(CC
) $(CFLAGS
) -o
$@ tests
/src
/ctdb_fetch.o
$(CTDB_CLIENT_OBJ
) $(LIB_FLAGS
)
222 tests
/bin
/ctdb_fetch_one
: $(CTDB_CLIENT_OBJ
) tests
/src
/ctdb_fetch_one.o
224 @
$(CC
) $(CFLAGS
) -o
$@ tests
/src
/ctdb_fetch_one.o
$(CTDB_CLIENT_OBJ
) $(LIB_FLAGS
)
226 tests
/bin
/ctdb_fetch_lock_once
: libctdb
/libctdb.a tests
/src
/ctdb_fetch_lock_once.o
228 @
$(CC
) $(CFLAGS
) -o
$@ tests
/src
/ctdb_fetch_lock_once.o
$(TDB_OBJ
) $(POPT_OBJ
) libctdb
/libctdb.a
$(LIB_FLAGS
)
230 tests
/bin
/ctdb_fetch_readonly_once
: libctdb
/libctdb.a tests
/src
/ctdb_fetch_readonly_once.o
232 @
$(CC
) $(CFLAGS
) -o
$@ tests
/src
/ctdb_fetch_readonly_once.o
$(TDB_OBJ
) $(POPT_OBJ
) libctdb
/libctdb.a
$(LIB_FLAGS
)
234 tests
/bin
/ctdb_fetch_readonly_loop
: $(CTDB_CLIENT_OBJ
) tests
/src
/ctdb_fetch_readonly_loop.o
236 @
$(CC
) $(CFLAGS
) -o
$@ tests
/src
/ctdb_fetch_readonly_loop.o
$(CTDB_CLIENT_OBJ
) $(LIB_FLAGS
)
238 tests
/bin
/ctdb_trackingdb_test
: $(CTDB_CLIENT_OBJ
) tests
/src
/ctdb_trackingdb_test.o
240 @
$(CC
) $(CFLAGS
) -o
$@ tests
/src
/ctdb_trackingdb_test.o
$(CTDB_CLIENT_OBJ
) $(LIB_FLAGS
)
242 tests
/bin
/ctdb_update_record
: $(CTDB_CLIENT_OBJ
) tests
/src
/ctdb_update_record.o
244 @
$(CC
) $(CFLAGS
) -o
$@ tests
/src
/ctdb_update_record.o
$(CTDB_CLIENT_OBJ
) $(LIB_FLAGS
)
246 tests
/bin
/ctdb_update_record_persistent
: $(CTDB_CLIENT_OBJ
) tests
/src
/ctdb_update_record_persistent.o
248 @
$(CC
) $(CFLAGS
) -o
$@ tests
/src
/ctdb_update_record_persistent.o
$(CTDB_CLIENT_OBJ
) $(LIB_FLAGS
)
250 tests
/bin
/ctdb_store
: $(CTDB_CLIENT_OBJ
) tests
/src
/ctdb_store.o
252 @
$(CC
) $(CFLAGS
) -o
$@ tests
/src
/ctdb_store.o
$(CTDB_CLIENT_OBJ
) $(LIB_FLAGS
)
254 tests
/bin
/ctdb_traverse
: $(CTDB_CLIENT_OBJ
) tests
/src
/ctdb_traverse.o
256 @
$(CC
) $(CFLAGS
) -o
$@ tests
/src
/ctdb_traverse.o
$(CTDB_CLIENT_OBJ
) $(LIB_FLAGS
)
258 tests
/bin
/ctdb_randrec
: $(CTDB_CLIENT_OBJ
) tests
/src
/ctdb_randrec.o
260 @
$(CC
) $(CFLAGS
) -o
$@ tests
/src
/ctdb_randrec.o
$(CTDB_CLIENT_OBJ
) $(LIB_FLAGS
)
262 tests
/bin
/ctdb_persistent
: $(CTDB_CLIENT_OBJ
) tests
/src
/ctdb_persistent.o
264 @
$(CC
) $(CFLAGS
) -o
$@ tests
/src
/ctdb_persistent.o
$(CTDB_CLIENT_OBJ
) $(LIB_FLAGS
)
266 tests
/bin
/ctdb_porting_tests
: $(CTDB_CLIENT_OBJ
) tests
/src
/ctdb_porting_tests.o
268 @
$(CC
) $(CFLAGS
) -o
$@ tests
/src
/ctdb_porting_tests.o
$(CTDB_CLIENT_OBJ
) $(LIB_FLAGS
)
270 tests
/bin
/ctdb_transaction
: $(CTDB_CLIENT_OBJ
) tests
/src
/ctdb_transaction.o
272 @
$(CC
) $(CFLAGS
) -o
$@ tests
/src
/ctdb_transaction.o
$(CTDB_CLIENT_OBJ
) $(LIB_FLAGS
)
274 CTDB_SERVER_MOST_OBJ
= $(CTDB_SERVER_OBJ
:server
/ctdbd.o
=)
275 CTDBD_TEST_C
= $(CTDB_SERVER_MOST_OBJ
:.o
=.c
) tests
/src
/ctdbd_test.c
277 CTDB_TEST_C
= $(CTDB_CLIENT_OBJ
:.o
=.c
) tools
/ctdb.c tools
/ctdb_vacuum.c tests
/src
/ctdb_test.c
279 CTDB_TEST_OBJ
= $(TALLOC_OBJ
) $(TDB_OBJ
) \
280 @CTDB_SYSTEM_OBJ@ @LIBREPLACEOBJ@
$(EXTRA_OBJ
) $(TEVENT_OBJ
) $(SOCKET_WRAPPER_OBJ
)
282 tests
/src
/ctdb_takeover_tests.o
: tests
/src
/ctdb_takeover_tests.c
$(CTDBD_TEST_C
)
284 tests
/bin
/ctdb_takeover_tests
: $(CTDB_TEST_OBJ
) tests
/src
/ctdb_takeover_tests.o
286 @
$(CC
) $(CFLAGS
) -o
$@ tests
/src
/ctdb_takeover_tests.o
$(CTDB_TEST_OBJ
) $(LIB_FLAGS
)
288 tests
/src
/ctdb_tool_libctdb.o
: tests
/src
/ctdb_tool_libctdb.c tests
/src
/libctdb_test.c
$(CTDB_TEST_C
)
290 tests
/bin
/ctdb_tool_libctdb
: $(CTDB_TEST_OBJ
) tests
/src
/ctdb_tool_libctdb.o
292 @
$(CC
) $(CFLAGS
) -o
$@ tests
/src
/ctdb_tool_libctdb.o
$(CTDB_TEST_OBJ
) $(POPT_OBJ
) $(LIB_FLAGS
)
294 tests
/src
/ctdb_tool_stubby.o
: tests
/src
/ctdb_tool_stubby.c tests
/src
/libctdb_test.c
$(CTDB_TEST_C
)
296 tests
/bin
/ctdb_tool_stubby
: $(CTDB_TEST_OBJ
) tests
/src
/ctdb_tool_stubby.o
298 @
$(CC
) $(CFLAGS
) -o
$@ tests
/src
/ctdb_tool_stubby.o
$(CTDB_TEST_OBJ
) $(POPT_OBJ
) $(LIB_FLAGS
)
300 tests
/bin
/ibwrapper_test
: $(CTDB_CLIENT_OBJ
) ib
/ibwrapper_test.o
302 @
$(CC
) $(CFLAGS
) -o
$@ ib
/ibwrapper_test.o
$(CTDB_CLIENT_OBJ
) $(LIB_FLAGS
)
308 rm -f
*.o
*/*.o
*/*.a
*/*/*.o
*/*~
309 rm -f utils
/smnotify
/gen_xdr.c
310 rm -f
$(BINS
) $(SBINS
) $(TEST_BINS
)
315 rm -f config.log config.status config.cache config.h
318 install: all manpages
$(PMDA_INSTALL
)
319 mkdir
-p
$(DESTDIR
)$(libdir)/pkgconfig
320 mkdir
-p
$(DESTDIR
)$(bindir)
321 mkdir
-p
$(DESTDIR
)$(sbindir
)
322 mkdir
-p
$(DESTDIR
)$(includedir)
323 mkdir
-p
$(DESTDIR
)$(etcdir
)/ctdb
324 mkdir
-p
$(DESTDIR
)$(etcdir
)/ctdb
/events.d
325 mkdir
-p
$(DESTDIR
)$(etcdir
)/ctdb
/nfs-rpc-checks.d
326 mkdir
-p
$(DESTDIR
)$(etcdir
)/sudoers.d
/
327 mkdir
-p
$(DESTDIR
)$(etcdir
)/ctdb
/notify.d
328 mkdir
-p
$(DESTDIR
)$(docdir
)/ctdb
329 ${INSTALLCMD} -m
644 ctdb.
pc $(DESTDIR
)$(libdir)/pkgconfig
330 ${INSTALLCMD} -m
755 bin
/ctdb
$(DESTDIR
)$(bindir)
331 ${INSTALLCMD} -m
755 bin
/ctdbd
$(DESTDIR
)$(sbindir
)
332 ${INSTALLCMD} -m
755 bin
/smnotify
$(DESTDIR
)$(bindir)
333 $(INSTALLCMD
) -m
755 bin
/ping_pong
$(DESTDIR
)$(bindir)
334 $(INSTALLCMD
) -m
755 bin
/ltdbtool
$(DESTDIR
)$(bindir)
335 $(INSTALLCMD
) -m
755 bin
/ctdb_lock_helper
$(DESTDIR
)$(bindir)
336 $(INSTALLCMD
) -m
755 libctdb
/libctdb.a
$(DESTDIR
)$(libdir)
337 ${INSTALLCMD} -m
644 include/ctdb.h
$(DESTDIR
)$(includedir)
338 ${INSTALLCMD} -m
644 include/ctdb_client.h
$(DESTDIR
)$(includedir)
339 ${INSTALLCMD} -m
644 include/ctdb_protocol.h
$(DESTDIR
)$(includedir)
340 ${INSTALLCMD} -m
644 include/ctdb_private.h
$(DESTDIR
)$(includedir) # for samba3
341 ${INSTALLCMD} -m
644 include/ctdb_typesafe_cb.h
$(DESTDIR
)$(includedir)
342 ${INSTALLCMD} -m
440 config
/ctdb.sudoers
$(DESTDIR
)$(etcdir
)/sudoers.d
/ctdb
343 ${INSTALLCMD} -m
644 config
/functions
$(DESTDIR
)$(etcdir
)/ctdb
344 ${INSTALLCMD} -m
755 config
/statd-callout
$(DESTDIR
)$(etcdir
)/ctdb
345 ${INSTALLCMD} -m
644 README
$(DESTDIR
)$(docdir
)/ctdb
/README
346 ${INSTALLCMD} -m
644 COPYING
$(DESTDIR
)$(docdir
)/ctdb
/COPYING
347 ${INSTALLCMD} -m
644 config
/events.d
/README
$(DESTDIR
)$(docdir
)/ctdb
/README.eventscripts
348 ${INSTALLCMD} -m
644 doc
/recovery-process.txt
$(DESTDIR
)$(docdir
)/ctdb
/recovery-process.txt
349 ${INSTALLCMD} -m
755 config
/events.d
/00.ctdb
$(DESTDIR
)$(etcdir
)/ctdb
/events.d
350 ${INSTALLCMD} -m
755 config
/events.d
/01.reclock
$(DESTDIR
)$(etcdir
)/ctdb
/events.d
351 ${INSTALLCMD} -m
755 config
/events.d
/10.interface
$(DESTDIR
)$(etcdir
)/ctdb
/events.d
352 ${INSTALLCMD} -m
755 config
/events.d
/11.natgw
$(DESTDIR
)$(etcdir
)/ctdb
/events.d
353 ${INSTALLCMD} -m
755 config
/events.d
/11.routing
$(DESTDIR
)$(etcdir
)/ctdb
/events.d
354 ${INSTALLCMD} -m
755 config
/events.d
/13.per_ip_routing
$(DESTDIR
)$(etcdir
)/ctdb
/events.d
355 ${INSTALLCMD} -m
644 config
/events.d
/20.multipathd
$(DESTDIR
)$(etcdir
)/ctdb
/events.d
356 ${INSTALLCMD} -m
644 config
/events.d
/31.clamd
$(DESTDIR
)$(etcdir
)/ctdb
/events.d
357 ${INSTALLCMD} -m
755 config
/events.d
/40.vsftpd
$(DESTDIR
)$(etcdir
)/ctdb
/events.d
358 ${INSTALLCMD} -m
644 config
/events.d
/40.fs_use
$(DESTDIR
)$(etcdir
)/ctdb
/events.d
359 ${INSTALLCMD} -m
755 config
/events.d
/41.httpd
$(DESTDIR
)$(etcdir
)/ctdb
/events.d
360 ${INSTALLCMD} -m
755 config
/events.d
/49.winbind
$(DESTDIR
)$(etcdir
)/ctdb
/events.d
361 ${INSTALLCMD} -m
755 config
/events.d
/50.samba
$(DESTDIR
)$(etcdir
)/ctdb
/events.d
362 ${INSTALLCMD} -m
755 config
/events.d
/60.nfs
$(DESTDIR
)$(etcdir
)/ctdb
/events.d
363 ${INSTALLCMD} -m
755 config
/events.d
/60.ganesha
$(DESTDIR
)$(etcdir
)/ctdb
/events.d
364 ${INSTALLCMD} -m
755 config
/events.d
/62.cnfs
$(DESTDIR
)$(etcdir
)/ctdb
/events.d
365 ${INSTALLCMD} -m
755 config
/events.d
/70.iscsi
$(DESTDIR
)$(etcdir
)/ctdb
/events.d
366 ${INSTALLCMD} -m
755 config
/events.d
/91.lvs
$(DESTDIR
)$(etcdir
)/ctdb
/events.d
367 ${INSTALLCMD} -m
644 config
/nfs-rpc-checks.d
/10.statd.
check $(DESTDIR
)$(etcdir
)/ctdb
/nfs-rpc-checks.d
/
368 ${INSTALLCMD} -m
644 config
/nfs-rpc-checks.d
/20.nfsd.
check $(DESTDIR
)$(etcdir
)/ctdb
/nfs-rpc-checks.d
/
369 ${INSTALLCMD} -m
644 config
/nfs-rpc-checks.d
/30.lockd.
check $(DESTDIR
)$(etcdir
)/ctdb
/nfs-rpc-checks.d
/
370 ${INSTALLCMD} -m
644 config
/nfs-rpc-checks.d
/40.mountd.
check $(DESTDIR
)$(etcdir
)/ctdb
/nfs-rpc-checks.d
/
371 ${INSTALLCMD} -m
644 config
/nfs-rpc-checks.d
/50.rquotad.
check $(DESTDIR
)$(etcdir
)/ctdb
/nfs-rpc-checks.d
/
372 ${INSTALLCMD} -m
755 tools
/ctdb_diagnostics
$(DESTDIR
)$(bindir)
373 ${INSTALLCMD} -m
755 tools
/onnode
$(DESTDIR
)$(bindir)
374 if
[ -f doc
/ctdb
.1 ];then
${INSTALLCMD} -d
$(DESTDIR
)$(mandir)/man1
; fi
375 if
[ -f doc
/ctdb
.1 ];then
${INSTALLCMD} -m
644 doc
/ctdb
.1 $(DESTDIR
)$(mandir)/man1
; fi
376 if
[ -f doc
/ctdbd
.1 ];then
${INSTALLCMD} -m
644 doc
/ctdbd
.1 $(DESTDIR
)$(mandir)/man1
; fi
377 if
[ -f doc
/onnode
.1 ];then
${INSTALLCMD} -m
644 doc
/onnode
.1 $(DESTDIR
)$(mandir)/man1
; fi
378 if
[ -f doc
/ltdbtool
.1 ]; then
${INSTALLCMD} -m
644 doc
/ltdbtool
.1 $(DESTDIR
)$(mandir)/man1
; fi
379 if
[ -f doc
/ping_pong
.1 ];then
${INSTALLCMD} -m
644 doc
/ping_pong
.1 $(DESTDIR
)$(mandir)/man1
; fi
380 if
[ -f doc
/ctdb
.1.html
];then
${INSTALLCMD} -m
644 doc
/ctdb
.1.html
$(DESTDIR
)$(docdir
)/ctdb
; fi
381 if
[ -f doc
/ctdbd
.1.html
];then
${INSTALLCMD} -m
644 doc
/ctdbd
.1.html
$(DESTDIR
)$(docdir
)/ctdb
; fi
382 if
[ -f doc
/onnode
.1.html
];then
${INSTALLCMD} -m
644 doc
/onnode
.1.html
$(DESTDIR
)$(docdir
)/ctdb
; fi
383 if
[ -f doc
/ltdbtool
.1.html
];then
${INSTALLCMD} -m
644 doc
/ltdbtool
.1.html
$(DESTDIR
)$(docdir
)/ctdb
; fi
384 if
[ -f doc
/ping_pong
.1.html
];then
${INSTALLCMD} -m
644 doc
/ping_pong
.1.html
$(DESTDIR
)$(docdir
)/ctdb
; fi
385 if
[ ! -f
$(DESTDIR
)$(etcdir
)/ctdb
/notify.sh
];then
${INSTALLCMD} -m
755 config
/notify.sh
$(DESTDIR
)$(etcdir
)/ctdb
; fi
386 if
[ ! -f
$(DESTDIR
)$(etcdir
)/ctdb
/notify.d
/README
];then
${INSTALLCMD} -m
755 config
/notify.d.README
$(DESTDIR
)$(etcdir
)/ctdb
/notify.d
/README
; fi
387 ${INSTALLCMD} -m
755 config
/debug-hung-script.sh
$(DESTDIR
)$(etcdir
)/ctdb
388 if
[ ! -f
$(DESTDIR
)$(etcdir
)/ctdb
/ctdb-crash-cleanup.sh
];then
${INSTALLCMD} -m
755 config
/ctdb-crash-cleanup.sh
$(DESTDIR
)$(etcdir
)/ctdb
; fi
389 if
[ ! -f
$(DESTDIR
)$(etcdir
)/ctdb
/gcore_trace.sh
];then
${INSTALLCMD} -m
755 config
/gcore_trace.sh
$(DESTDIR
)$(etcdir
)/ctdb
; fi
392 $(INSTALLCMD
) -m
755 -d
$(PMDA_DEST_DIR
)
393 $(INSTALLCMD
) -m
755 pmda
/Install pmda
/Remove
$(PMDA_DEST_DIR
)
394 $(INSTALLCMD
) -m
644 pmda
/pmns pmda
/domain.h pmda
/help pmda
/README
$(PMDA_DEST_DIR
)
395 $(INSTALLCMD
) -m
755 bin
/pmdactdb
$(PMDA_DEST_DIR
)
397 # Should use $(datarootdir) but older autoconfs don't do this. :-(
399 tests
/INSTALL
--destdir
=$(DESTDIR
) --datarootdir
=$(prefix)/share
--libdir=$(libdir) --bindir=$(bindir) --etcdir
=$(etcdir
)
402 tests
/run_tests.sh
-V tests
/var
405 tests
/run_cluster_tests.sh
408 VALGRIND
="valgrind -q --trace-children=yes" tests
/run_tests.sh
411 find .
-name
"*.[ch]" | xargs ctags
414 find .
-name
"*.[ch]" | xargs etags
416 realdistclean
: distclean
417 rm -f configure config.h.in ctdb.
pc