~launchpad-committers/ubuntu/lucid/slony1/ppa-8.4

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
# ----------
# Makefile for Slony-I
#
#	Copyright (c) 2003-2004, PostgreSQL Global Development Group
#	Author: Jan Wieck, Afilias USA INC.
#
# $Id: GNUmakefile.in,v 1.29.2.3 2007-10-24 17:08:23 devrim Exp $
# ----------

top_builddir = .
include $(top_builddir)/Makefile.global
BZIP = bzip2 --best

DEFAULTBUILDS=src tools

ifeq (@with_docs@, yes)
DEFAULTBUILDS+=" doc"
endif

DISTFILES = aclocal.m4 \
  config.h.in \
  configure \
  COPYRIGHT \
  README \
  UPGRADING \
  HISTORY-1.1 \
  INSTALL \
  SAMPLE \
  Makefile \
  Makefile.global.in \
  GNUmakefile.in \
  @PACKAGE_NAME@.spec \
  @PACKAGE_NAME@.spec.in \
  $(wildcard config/*) \
  $(wildcard src/*) \
  $(wildcard doc/*) \
  $(wildcard share/*) \
  $(wildcard makefiles/*)

CVSIGNORES = doc/implementation/.cvsignore doc/concept/.cvsignore \
	src/ducttape/.cvsignore src/xxid/.cvsignore \
	src/slon/.cvsignore src/slonik/.cvsignore src/backend/.cvsignore \
	.cvsignore

all:
	@for subdir in $(DEFAULTBUILDS) ; do \
	  $(MAKE) -C $$subdir $@ || exit; \
    done && \
	echo "All of Slony-I is successfully made. Ready to install"

install	installdirs:
	@for subdir in $(DEFAULTBUILDS) ; do \
	  $(MAKE) -C $$subdir $@ || exit; \
    done && \
	echo "All of Slony-I is successfully installed"

clean:
	@for subdir in $(DEFAULTBUILDS) ; do \
	  $(MAKE) -C $$subdir $@ || exit; \
    done ;\
      rm -f postgres.imp

distclean: clean
	rm -f Makefile.global Makefile.port
	rm -f GNUmakefile
	rm -f config.log config.status config.h
	rm -f @PACKAGE_NAME@.spec
	rm -f @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.bz2
	rm -f postgres.imp
	rm -rf autom4te.cache
	rm -f $(CVSIGNORES)
	chmod 0644 tests/one-offs/bug1538/README tools/configure-replication.txt

maintainer-clean: distclean
	rm -rf configure autom4te.cache

dist:	distdir

distdir := @PACKAGE_NAME@-@PACKAGE_VERSION@
dummy	:= =install=
garbage := =*  "#"*  ."#"*  *~*  *.orig  *.rej  core  @PACKAGE_NAME@-*

dist 	:= $(distdir).tar.bz2

distdir:
	-rm -rf $(distdir)* $(dummy)
	for x in `cd $(top_builddir) && find . -name CVS -prune -o -print`; do \
	  file=`expr X$$x : 'X\./\(.*\)'`; \
	  if test -d "$(top_builddir)/$$file" ; then \
	    mkdir "$(distdir)/$$file" && chmod 777 "$(distdir)/$$file"; \
	  else \
	    ln "$(top_builddir)/$$file" "$(distdir)/$$file" >/dev/null 2>&1 \
	      || cp "$(top_builddir)/$$file" "$(distdir)/$$file"; \
	  fi || exit; \
	done

dist:	distdir
	$(TAR) cf @PACKAGE_NAME@-@PACKAGE_VERSION@.tar $(distdir)
	$(BZIP) @PACKAGE_NAME@-@PACKAGE_VERSION@.tar
	-rm -rf $(distdir)

rpm: dist

	rpmbuild -ta @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.bz2

.PHONY: install