-
Notifications
You must be signed in to change notification settings - Fork 19
/
GNUmakefile.in
108 lines (89 loc) · 2.42 KB
/
GNUmakefile.in
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
107
108
# ----------
# Makefile for Slony-I
#
# Copyright (c) 2003-2009, PostgreSQL Global Development Group
# Author: Jan Wieck, Afilias USA INC.
#
#
# ----------
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 \
$(wildcard config/*) \
$(wildcard src/*) \
$(wildcard doc/*) \
$(wildcard share/*) \
$(wildcard makefiles/*)
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:
@for subdir in $(DEFAULTBUILDS) ; do \
$(MAKE) -C $$subdir $@ || exit; \
done ;\
rm -f Makefile.global Makefile.port
rm -f GNUmakefile
rm -f config.log config.status config.h
rm -f @[email protected]
rm -f @PACKAGE_NAME@-@[email protected]
rm -f postgres.imp
rm -rf autom4te.cache
maintainer-clean-internal:
@for subdir in $(DEFAULTBUILDS) ; do \
$(MAKE) -C $$subdir maintainer-clean || exit; \
done ;\
rm -rf configure autom4te.cache
maintainer-clean: maintainer-clean-internal distclean
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@-@[email protected] $(distdir)
$(BZIP) @PACKAGE_NAME@-@[email protected]
-rm -rf $(distdir)
rpm: dist
rpmbuild -ta @PACKAGE_NAME@-@[email protected]
.PHONY: install