PROJECT = cluster VERSION = 1.1 PREFIX = /usr/machine BINDIR = $(PREFIX)/bin SBINDIR = $(PREFIX)/sbin TARGETS = dist clcmd clcmd-ignore STARGETS = vip_setup INSTALL_SCRIPT = $(INSTALL) -m 755 all: $(TARGETS) clcmd-ignore: clcmd grep -v -x 'set -e' clcmd >$@ install: all test -d $(BINDIR) || mkdir -p $(BINDIR) $(INSTALL_SCRIPT) $(TARGETS) $(BINDIR) test -d $(SBINDIR) || mkdir -p $(SBINDIR) $(INSTALL_SCRIPT) $(STARGETS) $(SBINDIR) put: for host in mailout1 mailout2; do \ scp -p SMTP root@$${host}:/etc/ha.d/resource.d/; \ scp -p smtp_vips root@$${host}:/usr/mail/bin/; \ done for host in mail1 mail2 mail3 mail5 mail10; do \ scp -p EXIM CYRUS root@$${host}:/etc/ha.d/resource.d/; \ done put.mysql: for host in mysql2; do \ scp -p MySQL root@$${host}:/etc/ha.d/resource.d/; \ done clean: rm -f clcmd-ignore distribute: clean cd ..; tar cf - $(PROJECT)-$(VERSION) | gzip -9 >$(PROJECT)-$(VERSION).tar.gz