2 # PostgreSQL top level makefile
9 include $(top_builddir
)/src
/Makefile.global
14 @echo
"All of PostgreSQL successfully made. Ready to install."
23 $(MAKE
) -C contrib
all
24 @echo
"PostgreSQL, contrib, and documentation successfully made. Ready to install."
32 @echo
"PostgreSQL installation complete."
35 $(MAKE
) -C doc
install
38 $(MAKE
) -C doc
install
39 $(MAKE
) -C src
install
40 $(MAKE
) -C config
install
41 $(MAKE
) -C contrib
install
42 @echo
"PostgreSQL, contrib, and documentation installation complete."
44 installdirs uninstall coverage
:
55 # clean, distclean, etc should apply to contrib too, even though
56 # it's not built by default
62 # Garbage from autoconf:
63 @
rm -rf autom4te.cache
/
65 # Important: distclean `src' last, otherwise Makefile.global
66 # will be gone too soon.
67 distclean maintainer-clean
:
72 rm -f config.cache config.log config.status GNUmakefile
73 # Garbage from autoconf:
74 @
rm -rf autom4te.cache
/
78 check installcheck installcheck-parallel
:
79 $(MAKE
) -C src
/test $@
82 $(MAKE
) -C src
/test installcheck
83 $(MAKE
) -C src
/pl
installcheck
84 $(MAKE
) -C src
/interfaces
/ecpg
installcheck
85 $(MAKE
) -C contrib
installcheck
87 GNUmakefile
: GNUmakefile.in
$(top_builddir
)/config.status
91 ##########################################################################
93 distdir
= postgresql-
$(VERSION
)
95 garbage
= =* "#"* .
"#"* *~
* *.orig
*.rej core postgresql-
*
97 dist: $(distdir
).
tar.gz
$(distdir
).
tar.bz2
100 $(distdir
).
tar: distdir
101 $(TAR
) chf
$@
$(distdir
)
103 .INTERMEDIATE
: $(distdir
).
tar
109 rm -rf
$(distdir
)* $(dummy
)
110 for x in
`cd $(top_srcdir) && find . \( -name CVS -prune \) -o \( -name .git -prune \) -o -print`; do \
111 file
=`expr X$$x : 'X\./\(.*\)'`; \
112 if
test -d
"$(top_srcdir)/$$file" ; then \
113 mkdir
"$(distdir)/$$file" && chmod
777 "$(distdir)/$$file"; \
115 ln
"$(top_srcdir)/$$file" "$(distdir)/$$file" >/dev
/null
2>&1 \
116 || cp
"$(top_srcdir)/$$file" "$(distdir)/$$file"; \
119 $(MAKE
) -C
$(distdir
) distprep
120 $(MAKE
) -C
$(distdir
)/doc
/src
/sgml
/ HISTORY INSTALL regress_README
121 cp
$(distdir
)/doc
/src
/sgml
/HISTORY
$(distdir
)/
122 cp
$(distdir
)/doc
/src
/sgml
/INSTALL
$(distdir
)/
123 cp
$(distdir
)/doc
/src
/sgml
/regress_README
$(distdir
)/src
/test/regress
/README
124 $(MAKE
) -C
$(distdir
) distclean
125 rm -f
$(distdir
)/README.CVS
130 $(GZIP
) -d
-c
$(distdir
).
tar.gz |
$(TAR
) xf
-
131 install_prefix
=`cd $(dummy) && pwd`; \
133 && .
/configure
--prefix="$$install_prefix"
134 $(MAKE
) -C
$(distdir
) -q distprep
135 $(MAKE
) -C
$(distdir
)
136 $(MAKE
) -C
$(distdir
) install
137 $(MAKE
) -C
$(distdir
) uninstall
138 @echo
"checking whether \`$(MAKE) uninstall' works"
139 test `find $(dummy) ! -type d | wc -l` -eq
0
140 $(MAKE
) -C
$(distdir
) dist
141 # Room for improvement: Check here whether this distribution tarball
142 # is sufficiently similar to the original one.
143 rm -rf
$(distdir
) $(dummy
)
144 @echo
"Distribution integrity checks out."
146 .PHONY
: dist distdir distcheck docs install-docs