2006-11-18 10:41:20 +11:00
#!gmake
2007-07-14 10:58:51 +10:00
2008-07-09 11:08:44 +10:00
2006-11-18 10:41:20 +11:00
CC = @CC@
2010-05-20 15:57:40 +09:30
AR = ar
ARFLAGS = cru
RANLIB = ranlib
2006-11-18 10:41:20 +11:00
prefix = @prefix@
exec_prefix = @exec_prefix@
datarootdir = @datarootdir@
includedir = @includedir@
2010-08-06 10:12:13 +02:00
docdir = @docdir@
2006-11-18 10:41:20 +11:00
libdir = @libdir@
bindir = @bindir@
2007-05-29 15:52:03 +10:00
sbindir = @sbindir@
2007-06-09 15:21:30 +10:00
mandir = @mandir@
2007-04-29 22:42:23 +02:00
localstatedir = @localstatedir@
2009-02-04 00:15:57 +01:00
logdir = @LOGDIR@
2010-08-18 09:16:31 +09:30
VPATH = @srcdir@:@tdbdir@:@tallocdir@:@libreplacedir@:@poptdir@:@teventdir@:
2006-11-18 10:41:20 +11:00
srcdir = @srcdir@
2007-05-29 15:20:41 +10:00
etcdir = @sysconfdir@
2006-11-18 10:41:20 +11:00
builddir = @builddir@
2007-05-27 16:48:18 -04:00
DESTDIR = /
2006-11-18 10:41:20 +11:00
EXTRA_OBJ = @EXTRA_OBJ@
2007-06-09 08:41:36 +10:00
XSLTPROC = /usr/bin/xsltproc
2007-06-09 15:21:30 +10:00
INSTALLCMD = @INSTALL@
2006-11-18 10:41:20 +11:00
2007-05-03 05:21:14 +10:00
POPT_LIBS = @POPT_LIBS@
POPT_CFLAGS = @POPT_CFLAGS@
POPT_OBJ = @POPT_OBJ@
2011-07-13 18:11:23 +02:00
PMDA_LIBS = -lpcp -lpcp_pmda
PMDA_INSTALL = @CTDB_PMDA_INSTALL@
PMDA_DEST_DIR = /var/lib/pcp/pmdas
2007-05-02 07:32:04 +10:00
CFLAGS = -g -I$( srcdir) /include -Iinclude -Ilib -Ilib/util -I$( srcdir) \
2006-11-18 10:41:20 +11:00
-I@tallocdir@ -I@tdbdir@/include -I@libreplacedir@ \
2008-10-15 01:08:29 +11:00
-DVARDIR= \" $( localstatedir) \" -DETCDIR= \" $( etcdir) \" \
2009-02-04 00:15:57 +01:00
-DLOGDIR= \" $( logdir) \" \
2011-11-10 14:10:21 +11:00
-DUSE_MMAP= 1 -DTEVENT_DEPRECATED_QUIET= 1 @CFLAGS@ -Wno-format-zero-length $( POPT_CFLAGS)
2006-11-18 10:41:20 +11:00
2007-07-14 15:16:52 +10:00
LIB_FLAGS = @LDFLAGS@ -Llib @LIBS@ $( POPT_LIBS) @INFINIBAND_LIBS@ @CTDB_PCAP_LDFLAGS@
2006-11-18 10:41:20 +11:00
2007-06-07 22:30:29 +10:00
UTIL_OBJ = lib/util/idtree.o lib/util/db_wrap.o lib/util/strlist.o lib/util/util.o \
2009-12-18 12:32:38 +01:00
lib/util/util_time.o lib/util/util_file.o lib/util/fault.o lib/util/substitute.o \
lib/util/signal.o
2006-11-18 10:41:20 +11:00
2007-06-07 22:30:29 +10:00
CTDB_COMMON_OBJ = common/ctdb_io.o common/ctdb_util.o \
2007-06-07 22:06:19 +10:00
common/ctdb_ltdb.o common/ctdb_message.o common/cmdline.o \
2009-11-18 12:44:18 +11:00
lib/util/debug.o common/rb_tree.o @CTDB_SYSTEM_OBJ@ common/system_common.o \
2010-06-02 09:43:16 +10:00
common/ctdb_logging.c
2010-05-20 15:57:40 +09:30
CTDB_LIB_OBJ = libctdb/ctdb.o libctdb/io_elem.o libctdb/local_tdb.o \
2010-06-04 20:27:03 +09:30
libctdb/messages.o libctdb/sync.o libctdb/control.o \
libctdb/logging.o
2007-05-25 17:04:13 +10:00
2006-11-28 11:51:33 +11:00
CTDB_TCP_OBJ = tcp/tcp_connect.o tcp/tcp_io.o tcp/tcp_init.o
2006-11-27 21:38:13 +11:00
2007-06-07 22:06:19 +10:00
CTDB_CLIENT_OBJ = client/ctdb_client.o \
2007-06-07 22:16:48 +10:00
$( CTDB_COMMON_OBJ) $( POPT_OBJ) $( UTIL_OBJ) @TALLOC_OBJ@ @TDB_OBJ@ \
2010-08-18 09:16:31 +09:30
@LIBREPLACEOBJ@ $( EXTRA_OBJ) @TEVENT_OBJ@
2007-06-07 22:06:19 +10:00
2007-06-07 22:16:48 +10:00
CTDB_SERVER_OBJ = server/ctdbd.o server/ctdb_daemon.o server/ctdb_lockwait.o \
server/ctdb_recoverd.o server/ctdb_recover.o server/ctdb_freeze.o \
server/ctdb_tunables.o server/ctdb_monitor.o server/ctdb_server.o \
server/ctdb_control.o server/ctdb_call.o server/ctdb_ltdb_server.o \
2007-07-04 16:51:13 +10:00
server/ctdb_traverse.o server/eventscript.o server/ctdb_takeover.o \
2007-09-21 12:24:02 +10:00
server/ctdb_serverids.o server/ctdb_persistent.o \
2009-07-28 17:45:31 +03:00
server/ctdb_keepalive.o server/ctdb_logging.o server/ctdb_uptime.o \
2010-09-29 12:13:05 +10:00
server/ctdb_vacuum.o server/ctdb_banning.o server/ctdb_statistics.o \
2007-07-04 16:52:38 +10:00
$( CTDB_CLIENT_OBJ) $( CTDB_TCP_OBJ) @INFINIBAND_WRAPPER_OBJ@
2006-11-18 10:41:20 +11:00
2009-12-15 12:14:49 +11:00
TEST_BINS = tests/bin/ctdb_bench tests/bin/ctdb_fetch tests/bin/ctdb_fetch_one \
2011-07-20 15:47:15 +10:00
tests/bin/ctdb_fetch_lock_once \
tests/bin/ctdb_fetch_readonly_once tests/bin/ctdb_fetch_readonly_loop \
2011-07-20 11:50:14 +10:00
tests/bin/ctdb_store tests/bin/ctdb_trackingdb_test \
2009-01-09 18:15:06 +11:00
tests/bin/ctdb_randrec tests/bin/ctdb_persistent \
tests/bin/ctdb_traverse tests/bin/rb_test tests/bin/ctdb_transaction \
2011-07-20 12:13:53 +10:00
tests/bin/ctdb_takeover_tests tests/bin/ctdb_update_record \
2007-08-08 11:21:18 +10:00
@INFINIBAND_BINS@
2011-07-13 18:11:23 +02:00
BINS = bin/ctdb @CTDB_SCSI_IO@ bin/smnotify bin/ping_pong bin/ltdbtool @CTDB_PMDA@
2007-05-29 15:52:03 +10:00
SBINS = bin/ctdbd
2006-11-18 10:41:20 +11:00
2009-01-09 18:15:06 +11:00
DIRS = lib bin tests/bin
2006-11-18 10:41:20 +11:00
2007-06-12 13:44:01 +10:00
.SUFFIXES : .c .o .h .1 .1.xml .1.html
2010-05-26 08:56:46 +10:00
all : showflags dirs doc $( CTDB_SERVER_OBJ ) $( CTDB_CLIENT_OBJ ) $( CTDB_LIB_OBJ ) $( BINS ) $( SBINS ) $( TEST_BINS )
2006-11-18 10:41:20 +11:00
showflags :
@echo 'ctdb will be compiled with flags:'
@echo ' CFLAGS = $(CFLAGS)'
@echo ' LIBS = $(LIBS)'
2009-02-04 00:22:01 +01:00
showlayout ::
@echo "ctdb will be installed into:"
@echo " prefix: $( prefix) "
@echo " bindir: $( bindir) "
@echo " sbindir: $( sbindir) "
@echo " libdir: $( libdir) "
@echo " vardir: $( localstatedir) "
@echo " logdir: $( logdir) "
@echo " mandir: $( mandir) "
@echo " etcdir: $( etcdir) "
2006-11-18 10:41:20 +11:00
.c.o :
@echo Compiling $* .c
@mkdir -p ` dirname $@ `
@$( CC) $( CFLAGS) -c $< -o $@
dirs :
@mkdir -p $( DIRS)
2007-06-07 22:06:19 +10:00
bin/ctdbd : $( CTDB_SERVER_OBJ )
2007-04-11 18:54:22 +10:00
@echo Linking $@
2007-06-07 22:06:19 +10:00
@$( CC) $( CFLAGS) -o $@ $( CTDB_SERVER_OBJ) $( LIB_FLAGS)
2007-04-11 18:54:22 +10:00
2010-05-20 15:57:40 +09:30
libctdb/libctdb.a : $( CTDB_LIB_OBJ )
@echo Linking $@
-rm -f libctdb.a
@$( AR) $( ARFLAGS) libctdb/libctdb.a $( CTDB_LIB_OBJ)
@$( RANLIB) libctdb/libctdb.a
2007-08-07 09:03:51 +10:00
bin/scsi_io : $( CTDB_CLIENT_OBJ ) utils /scsi_io /scsi_io .o
2007-07-02 16:13:31 +10:00
@echo Linking $@
2007-08-07 09:03:51 +10:00
@$( CC) $( CFLAGS) -o $@ utils/scsi_io/scsi_io.o $( CTDB_CLIENT_OBJ) $( LIB_FLAGS)
2007-07-02 16:13:31 +10:00
2010-06-02 10:37:00 +10:00
bin/ctdb : $( CTDB_CLIENT_OBJ ) tools /ctdb .o tools /ctdb_vacuum .o libctdb /libctdb .a
2007-04-26 14:27:49 +02:00
@echo Linking $@
2010-06-02 10:37:00 +10:00
@$( CC) $( CFLAGS) -o $@ tools/ctdb.o tools/ctdb_vacuum.o $( CTDB_CLIENT_OBJ) $( LIB_FLAGS) libctdb/libctdb.a
2007-04-26 14:27:49 +02:00
2011-04-14 12:51:59 +02:00
bin/ltdbtool : tools /ltdbtool .o @TDB_OBJ @
@echo Linking $@
@$( CC) $( CFLAGS) -o $@ $+
2009-05-20 08:59:00 +02:00
bin/smnotify : utils /smnotify /gen_xdr .o utils /smnotify /gen_smnotify .o utils /smnotify /smnotify .o $( POPT_OBJ )
2007-08-03 10:18:48 +10:00
@echo Linking $@
2007-08-15 07:59:01 +10:00
@$( CC) $( CFLAGS) -o $@ utils/smnotify/smnotify.o utils/smnotify/gen_xdr.o utils/smnotify/gen_smnotify.o $( POPT_OBJ) $( LIB_FLAGS)
2007-08-03 10:18:48 +10:00
2009-02-25 09:13:16 +11:00
utils/smnotify/smnotify.o : utils /smnotify /smnotify .c utils /smnotify /smnotify .h
2007-08-03 10:18:48 +10:00
utils/smnotify/smnotify.h : utils /smnotify /smnotify .x
@echo Generating $@
2007-08-15 07:59:01 +10:00
rpcgen -h utils/smnotify/smnotify.x > utils/smnotify/smnotify.h
2007-08-03 10:18:48 +10:00
utils/smnotify/gen_xdr.c : utils /smnotify /smnotify .x utils /smnotify /smnotify .h
@echo Generating $@
2011-11-10 15:12:25 +11:00
rpcgen -c utils/smnotify/smnotify.x | grep -Ev '^[[:space:]]+register int32_t \*buf;' > utils/smnotify/gen_xdr.c
2007-08-03 10:18:48 +10:00
utils/smnotify/gen_smnotify.c : utils /smnotify /smnotify .x utils /smnotify /smnotify .h
@echo Generating $@
2007-08-15 07:59:01 +10:00
rpcgen -l utils/smnotify/smnotify.x > utils/smnotify/gen_smnotify.c
2007-08-03 10:18:48 +10:00
2009-04-29 17:57:43 +02:00
bin/ping_pong : utils /ping_pong /ping_pong .o
@echo Linking $@
@$( CC) $( CFLAGS) -o $@ utils/ping_pong/ping_pong.o
2011-07-13 18:11:23 +02:00
bin/pmdactdb : $( CTDB_CLIENT_OBJ ) utils /pmda /pmda_ctdb .o
@echo Linking $@
@$( CC) $( CFLAGS) -o $@ utils/pmda/pmda_ctdb.o $( CTDB_CLIENT_OBJ) $( LIB_FLAGS) $( PMDA_LIBS)
2009-04-29 17:57:43 +02:00
2009-01-09 18:15:06 +11:00
tests/bin/rb_test : $( CTDB_CLIENT_OBJ ) tests /src /rb_test .o
2007-08-08 11:21:18 +10:00
@echo Linking $@
2008-11-21 19:01:48 +11:00
@$( CC) $( CFLAGS) -o $@ tests/src/rb_test.o $( CTDB_CLIENT_OBJ) $( LIB_FLAGS)
2007-08-08 11:21:18 +10:00
2009-01-09 18:15:06 +11:00
tests/bin/ctdb_bench : $( CTDB_CLIENT_OBJ ) tests /src /ctdb_bench .o
2006-12-19 16:27:03 +11:00
@echo Linking $@
2008-11-21 19:01:48 +11:00
@$( CC) $( CFLAGS) -o $@ tests/src/ctdb_bench.o $( CTDB_CLIENT_OBJ) $( LIB_FLAGS)
2006-12-19 16:27:03 +11:00
2009-01-09 18:15:06 +11:00
tests/bin/ctdb_fetch : $( CTDB_CLIENT_OBJ ) tests /src /ctdb_fetch .o
2007-04-05 13:18:31 +10:00
@echo Linking $@
2008-11-21 19:01:48 +11:00
@$( CC) $( CFLAGS) -o $@ tests/src/ctdb_fetch.o $( CTDB_CLIENT_OBJ) $( LIB_FLAGS)
2007-04-05 13:18:31 +10:00
2009-12-15 12:14:49 +11:00
tests/bin/ctdb_fetch_one : $( CTDB_CLIENT_OBJ ) tests /src /ctdb_fetch_one .o
@echo Linking $@
@$( CC) $( CFLAGS) -o $@ tests/src/ctdb_fetch_one.o $( CTDB_CLIENT_OBJ) $( LIB_FLAGS)
2011-08-23 15:13:40 +10:00
tests/bin/ctdb_fetch_lock_once : libctdb /libctdb .a tests /src /ctdb_fetch_lock_once .o
2011-01-24 07:39:33 +11:00
@echo Linking $@
2011-09-02 13:31:41 +10:00
@$( CC) $( CFLAGS) -o $@ tests/src/ctdb_fetch_lock_once.o @TDB_OBJ@ @POPT_OBJ@ libctdb/libctdb.a $( LIB_FLAGS)
2011-01-24 07:39:33 +11:00
2011-10-28 15:50:44 +11:00
tests/bin/ctdb_fetch_readonly_once : libctdb /libctdb .a tests /src /ctdb_fetch_readonly_once .o
2011-07-20 15:43:55 +10:00
@echo Linking $@
2011-10-28 15:50:44 +11:00
@$( CC) $( CFLAGS) -o $@ tests/src/ctdb_fetch_readonly_once.o @TDB_OBJ@ @POPT_OBJ@ libctdb/libctdb.a $( LIB_FLAGS)
2011-07-20 15:43:55 +10:00
2011-07-20 15:47:15 +10:00
tests/bin/ctdb_fetch_readonly_loop : $( CTDB_CLIENT_OBJ ) tests /src /ctdb_fetch_readonly_loop .o
@echo Linking $@
@$( CC) $( CFLAGS) -o $@ tests/src/ctdb_fetch_readonly_loop.o $( CTDB_CLIENT_OBJ) $( LIB_FLAGS)
2011-07-20 11:50:14 +10:00
tests/bin/ctdb_trackingdb_test : $( CTDB_CLIENT_OBJ ) tests /src /ctdb_trackingdb_test .o
@echo Linking $@
@$( CC) $( CFLAGS) -o $@ tests/src/ctdb_trackingdb_test.o $( CTDB_CLIENT_OBJ) $( LIB_FLAGS)
2011-07-20 12:13:53 +10:00
tests/bin/ctdb_update_record : $( CTDB_CLIENT_OBJ ) tests /src /ctdb_update_record .o
@echo Linking $@
@$( CC) $( CFLAGS) -o $@ tests/src/ctdb_update_record.o $( CTDB_CLIENT_OBJ) $( LIB_FLAGS)
2009-01-09 18:15:06 +11:00
tests/bin/ctdb_store : $( CTDB_CLIENT_OBJ ) tests /src /ctdb_store .o
2007-06-17 11:13:42 +10:00
@echo Linking $@
2008-11-21 19:01:48 +11:00
@$( CC) $( CFLAGS) -o $@ tests/src/ctdb_store.o $( CTDB_CLIENT_OBJ) $( LIB_FLAGS)
2007-06-17 11:13:42 +10:00
2009-01-09 18:15:06 +11:00
tests/bin/ctdb_traverse : $( CTDB_CLIENT_OBJ ) tests /src /ctdb_traverse .o
2008-01-29 11:39:06 +11:00
@echo Linking $@
2008-11-21 19:01:48 +11:00
@$( CC) $( CFLAGS) -o $@ tests/src/ctdb_traverse.o $( CTDB_CLIENT_OBJ) $( LIB_FLAGS)
2008-01-29 11:39:06 +11:00
2009-01-09 18:15:06 +11:00
tests/bin/ctdb_randrec : $( CTDB_CLIENT_OBJ ) tests /src /ctdb_randrec .o
2008-01-04 09:19:06 +11:00
@echo Linking $@
2008-11-21 19:01:48 +11:00
@$( CC) $( CFLAGS) -o $@ tests/src/ctdb_randrec.o $( CTDB_CLIENT_OBJ) $( LIB_FLAGS)
2008-01-04 09:19:06 +11:00
2009-01-09 18:15:06 +11:00
tests/bin/ctdb_persistent : $( CTDB_CLIENT_OBJ ) tests /src /ctdb_persistent .o
2007-09-21 12:24:02 +10:00
@echo Linking $@
2008-11-21 19:01:48 +11:00
@$( CC) $( CFLAGS) -o $@ tests/src/ctdb_persistent.o $( CTDB_CLIENT_OBJ) $( LIB_FLAGS)
2007-09-21 12:24:02 +10:00
2009-01-09 18:15:06 +11:00
tests/bin/ctdb_transaction : $( CTDB_CLIENT_OBJ ) tests /src /ctdb_transaction .o
2008-07-30 19:55:54 +10:00
@echo Linking $@
2008-11-21 19:01:48 +11:00
@$( CC) $( CFLAGS) -o $@ tests/src/ctdb_transaction.o $( CTDB_CLIENT_OBJ) $( LIB_FLAGS)
2008-07-30 19:55:54 +10:00
2011-07-28 15:22:42 +10:00
CTDB_TAKEOVER_OBJ = $( CTDB_SERVER_OBJ:server/ctdbd.o= )
tests/bin/ctdb_takeover_tests : $( CTDB_TAKEOVER_OBJ ) tests /src /ctdb_takeover_tests .o
@echo Linking $@
@$( CC) $( CFLAGS) -o $@ tests/src/ctdb_takeover_tests.o $( CTDB_TAKEOVER_OBJ) $( LIB_FLAGS)
2009-01-09 18:15:06 +11:00
tests/bin/ibwrapper_test : $( CTDB_CLIENT_OBJ ) ib /ibwrapper_test .o
2006-12-15 16:02:45 +01:00
@echo Linking $@
2007-06-07 22:06:19 +10:00
@$( CC) $( CFLAGS) -o $@ ib/ibwrapper_test.o $( CTDB_CLIENT_OBJ) $( LIB_FLAGS)
2006-12-15 16:02:45 +01:00
2007-06-12 13:44:01 +10:00
.1.xml.1 :
-test -z " $( XSLTPROC) " || $( XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
2007-06-09 08:41:36 +10:00
2007-06-12 13:44:01 +10:00
.1.xml.1.html :
-test -z " $( XSLTPROC) " || $( XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $<
2007-06-10 10:45:52 +10:00
2007-06-12 13:44:01 +10:00
doc : doc /ctdb .1 doc /ctdb .1.html \
doc/ctdbd.1 doc/ctdbd.1.html \
2011-05-04 14:14:54 +02:00
doc/onnode.1 doc/onnode.1.html \
2011-03-26 11:55:30 +01:00
doc/ltdbtool.1 doc/ltdbtool.1.html \
doc/ping_pong.1 doc/ping_pong.1.html
2007-06-10 10:45:52 +10:00
2006-11-18 10:41:20 +11:00
clean :
2010-05-20 15:57:40 +09:30
rm -f *.o */*.o */*.a */*/*.o */*~
2007-08-22 17:16:01 +10:00
rm -f utils/smnotify/gen_xdr.c
2007-06-02 13:16:11 +10:00
rm -f $( BINS) $( SBINS) $( TEST_BINS)
2006-11-18 10:41:20 +11:00
distclean : clean
rm -f *~ */*~
2006-12-15 16:02:45 +01:00
rm -rf bin
2006-12-18 17:58:29 +03:00
rm -f config.log config.status config.cache config.h
2006-11-18 10:41:20 +11:00
rm -f Makefile
2011-07-13 18:11:23 +02:00
install : all $( PMDA_INSTALL )
2009-04-08 09:21:11 +10:00
mkdir -p $( DESTDIR) $( libdir) /pkgconfig
2007-05-27 16:48:18 -04:00
mkdir -p $( DESTDIR) $( bindir)
2007-06-01 23:25:33 +10:00
mkdir -p $( DESTDIR) $( sbindir)
2007-05-27 16:48:18 -04:00
mkdir -p $( DESTDIR) $( includedir)
2007-06-01 21:10:49 +10:00
mkdir -p $( DESTDIR) $( etcdir) /ctdb
mkdir -p $( DESTDIR) $( etcdir) /ctdb/events.d
2008-07-09 11:08:44 +10:00
mkdir -p $( DESTDIR) $( docdir) /ctdb
2009-04-08 09:21:11 +10:00
${ INSTALLCMD } -m 644 ctdb.pc $( DESTDIR) $( libdir) /pkgconfig
2007-06-26 07:40:37 +10:00
${ INSTALLCMD } -m 755 bin/ctdb $( DESTDIR) $( bindir)
${ INSTALLCMD } -m 755 bin/ctdbd $( DESTDIR) $( sbindir)
2007-08-04 10:15:07 +10:00
${ INSTALLCMD } -m 755 bin/smnotify $( DESTDIR) $( bindir)
2009-04-29 17:57:43 +02:00
$( INSTALLCMD) -m 755 bin/ping_pong $( DESTDIR) $( bindir)
2011-05-04 13:44:59 +02:00
$( INSTALLCMD) -m 755 bin/ltdbtool $( DESTDIR) $( bindir)
2010-05-26 09:01:26 +10:00
$( INSTALLCMD) -m 755 libctdb/libctdb.a $( DESTDIR) $( libdir)
2010-05-20 15:57:40 +09:30
${ INSTALLCMD } -m 644 include/ctdb.h $( DESTDIR) $( includedir)
2010-05-20 15:18:30 +09:30
${ INSTALLCMD } -m 644 include/ctdb_client.h $( DESTDIR) $( includedir)
${ INSTALLCMD } -m 644 include/ctdb_protocol.h $( DESTDIR) $( includedir)
2007-06-26 07:40:37 +10:00
${ INSTALLCMD } -m 644 include/ctdb_private.h $( DESTDIR) $( includedir) # for samba3
2010-06-02 09:18:48 +10:00
${ INSTALLCMD } -m 644 include/ctdb_typesafe_cb.h $( DESTDIR) $( includedir)
2008-07-09 10:24:19 +10:00
${ INSTALLCMD } -m 644 config/functions $( DESTDIR) $( etcdir) /ctdb
2007-06-26 07:40:37 +10:00
${ INSTALLCMD } -m 755 config/statd-callout $( DESTDIR) $( etcdir) /ctdb
2010-01-20 11:10:48 +01:00
${ INSTALLCMD } -m 755 config/interface_modify.sh $( DESTDIR) $( etcdir) /ctdb
2009-01-19 09:42:48 +01:00
${ INSTALLCMD } -m 644 config/events.d/README $( DESTDIR) $( docdir) /ctdb/README.eventscripts
${ INSTALLCMD } -m 644 doc/recovery-process.txt $( DESTDIR) $( docdir) /ctdb/recovery-process.txt
2007-08-15 15:01:31 +10:00
${ INSTALLCMD } -m 755 config/events.d/00.ctdb $( DESTDIR) $( etcdir) /ctdb/events.d
2009-09-28 14:06:40 +10:00
${ INSTALLCMD } -m 755 config/events.d/01.reclock $( DESTDIR) $( etcdir) /ctdb/events.d
2007-06-26 07:40:37 +10:00
${ INSTALLCMD } -m 755 config/events.d/10.interface $( DESTDIR) $( etcdir) /ctdb/events.d
2009-03-31 20:00:00 +11:00
${ INSTALLCMD } -m 755 config/events.d/11.natgw $( DESTDIR) $( etcdir) /ctdb/events.d
2009-06-23 11:29:26 +10:00
${ INSTALLCMD } -m 755 config/events.d/11.routing $( DESTDIR) $( etcdir) /ctdb/events.d
2009-12-19 18:26:01 +01:00
${ INSTALLCMD } -m 755 config/events.d/13.per_ip_routing $( DESTDIR) $( etcdir) /ctdb/events.d
2009-10-26 10:22:00 +11:00
${ INSTALLCMD } -m 644 config/events.d/20.multipathd $( DESTDIR) $( etcdir) /ctdb/events.d
2009-05-25 12:02:36 +10:00
${ INSTALLCMD } -m 644 config/events.d/31.clamd $( DESTDIR) $( etcdir) /ctdb/events.d
2007-06-26 07:40:37 +10:00
${ INSTALLCMD } -m 755 config/events.d/40.vsftpd $( DESTDIR) $( etcdir) /ctdb/events.d
2011-08-11 10:00:53 +10:00
${ INSTALLCMD } -m 644 config/events.d/40.fs_use $( DESTDIR) $( etcdir) /ctdb/events.d
2008-01-11 10:44:16 +11:00
${ INSTALLCMD } -m 755 config/events.d/41.httpd $( DESTDIR) $( etcdir) /ctdb/events.d
2007-06-26 07:40:37 +10:00
${ INSTALLCMD } -m 755 config/events.d/50.samba $( DESTDIR) $( etcdir) /ctdb/events.d
${ INSTALLCMD } -m 755 config/events.d/60.nfs $( DESTDIR) $( etcdir) /ctdb/events.d
2010-12-06 11:30:24 +11:00
${ INSTALLCMD } -m 644 config/events.d/60.ganesha $( DESTDIR) $( etcdir) /ctdb/events.d
2010-05-04 13:56:55 +10:00
${ INSTALLCMD } -m 755 config/events.d/62.cnfs $( DESTDIR) $( etcdir) /ctdb/events.d
2008-02-06 14:00:04 +11:00
${ INSTALLCMD } -m 755 config/events.d/70.iscsi $( DESTDIR) $( etcdir) /ctdb/events.d
2008-01-09 08:50:03 +11:00
${ INSTALLCMD } -m 755 config/events.d/91.lvs $( DESTDIR) $( etcdir) /ctdb/events.d
2007-09-05 14:20:34 +10:00
${ INSTALLCMD } -m 755 tools/ctdb_diagnostics $( DESTDIR) $( bindir)
2008-07-09 14:23:02 +10:00
${ INSTALLCMD } -m 755 tools/onnode $( DESTDIR) $( bindir)
2007-06-09 15:21:30 +10:00
if [ -f doc/ctdb.1 ] ; then ${ INSTALLCMD } -d $( DESTDIR) $( mandir) /man1; fi
if [ -f doc/ctdb.1 ] ; then ${ INSTALLCMD } -m 644 doc/ctdb.1 $( DESTDIR) $( mandir) /man1; fi
2007-06-10 10:45:52 +10:00
if [ -f doc/ctdbd.1 ] ; then ${ INSTALLCMD } -m 644 doc/ctdbd.1 $( DESTDIR) $( mandir) /man1; fi
2007-06-12 13:44:01 +10:00
if [ -f doc/onnode.1 ] ; then ${ INSTALLCMD } -m 644 doc/onnode.1 $( DESTDIR) $( mandir) /man1; fi
2011-05-04 14:25:48 +02:00
if [ -f doc/ltdbtool.1 ] ; then ${ INSTALLCMD } -m 644 doc/ltdbtool.1 $( DESTDIR) $( mandir) /man1; fi
2011-03-26 11:55:30 +01:00
if [ -f doc/ping_pong.1 ] ; then ${ INSTALLCMD } -m 644 doc/ping_pong.1 $( DESTDIR) $( mandir) /man1; fi
2009-04-08 08:48:55 +10:00
if [ ! -f $( DESTDIR) $( etcdir) /ctdb/notify.sh ] ; then ${ INSTALLCMD } -m 755 config/notify.sh $( DESTDIR) $( etcdir) /ctdb; fi
2010-04-22 14:02:11 +10:00
if [ ! -f $( DESTDIR) $( etcdir) /ctdb/ctdb-crash-cleanup.sh ] ; then ${ INSTALLCMD } -m 755 config/ctdb-crash-cleanup.sh $( DESTDIR) $( etcdir) /ctdb; fi
2007-04-27 17:24:10 +02:00
2011-07-13 18:11:23 +02:00
install_pmda :
$( INSTALLCMD) -m 755 -d $( PMDA_DEST_DIR)
$( INSTALLCMD) -m 755 pmda/Install pmda/Remove $( PMDA_DEST_DIR)
$( INSTALLCMD) -m 644 pmda/pmns pmda/domain.h pmda/help pmda/README $( PMDA_DEST_DIR)
$( INSTALLCMD) -m 755 bin/pmdactdb $( PMDA_DEST_DIR)
2007-05-01 06:34:55 +10:00
test : all
2007-04-28 10:57:58 +02:00
tests/run_tests.sh
2007-05-01 06:34:55 +10:00
valgrindtest : all
2007-04-28 10:57:58 +02:00
VALGRIND = "valgrind -q --trace-children=yes" tests/run_tests.sh
2007-04-27 17:24:10 +02:00
2006-11-18 10:41:20 +11:00
realdistclean : distclean
2009-04-08 09:21:11 +10:00
rm -f configure config.h.in ctdb.pc