2 # PostgreSQL top level makefile
9 include $(top_builddir
)/src
/Makefile.global
11 $(call recurse
,all install,src config
)
14 +@echo
"All of PostgreSQL successfully made. Ready to install."
19 $(call recurse
,world
,doc src config contrib
,all)
21 +@echo
"PostgreSQL, contrib, and documentation successfully made. Ready to install."
23 # build src/ before contrib/
24 world-contrib-recurse
: world-src-recurse
30 +@echo
"PostgreSQL installation complete."
33 $(MAKE
) -C doc
install
35 $(call recurse
,install-world
,doc src config contrib
,install)
37 +@echo
"PostgreSQL, contrib, and documentation installation complete."
39 # build src/ before contrib/
40 install-world-contrib-recurse
: install-world-src-recurse
42 $(call recurse
,installdirs uninstall coverage init-po update-po
,doc src config
)
44 $(call recurse
,distprep
,doc src config contrib
)
46 # clean, distclean, etc should apply to contrib too, even though
47 # it's not built by default
48 $(call recurse
,clean,doc contrib src config
)
50 # Garbage from autoconf:
51 @
rm -rf autom4te.cache
/
53 # Important: distclean `src' last, otherwise Makefile.global
54 # will be gone too soon.
55 distclean maintainer-clean
:
60 rm -f config.cache config.log config.status GNUmakefile
61 # Garbage from autoconf:
62 @
rm -rf autom4te.cache
/
66 check installcheck installcheck-parallel
:
67 $(MAKE
) -C src
/test/regress
$@
69 $(call recurse
,check-world
,src
/test src
/pl src
/interfaces
/ecpg contrib
,check)
71 $(call recurse
,installcheck-world
,src
/test src
/pl src
/interfaces
/ecpg contrib
,installcheck)
73 $(call recurse
,maintainer-check
,doc src config contrib
)
75 GNUmakefile
: GNUmakefile.in
$(top_builddir
)/config.status
79 ##########################################################################
81 distdir
= postgresql-
$(VERSION
)
83 garbage
= =* "#"* .
"#"* *~
* *.orig
*.rej core postgresql-
*
85 dist: $(distdir
).
tar.gz
$(distdir
).
tar.bz2
88 $(distdir
).
tar: distdir
89 $(TAR
) chf
$@
$(distdir
)
91 .INTERMEDIATE
: $(distdir
).
tar
97 rm -rf
$(distdir
)* $(dummy
)
98 for x in
`cd $(top_srcdir) && find . \( -name CVS -prune \) -o \( -name .git -prune \) -o -print`; do \
99 file
=`expr X$$x : 'X\./\(.*\)'`; \
100 if
test -d
"$(top_srcdir)/$$file" ; then \
101 mkdir
"$(distdir)/$$file" && chmod
777 "$(distdir)/$$file"; \
103 ln
"$(top_srcdir)/$$file" "$(distdir)/$$file" >/dev
/null
2>&1 \
104 || cp
"$(top_srcdir)/$$file" "$(distdir)/$$file"; \
107 $(MAKE
) -C
$(distdir
) distprep
108 $(MAKE
) -C
$(distdir
)/doc
/src
/sgml
/ HISTORY INSTALL regress_README
109 cp
$(distdir
)/doc
/src
/sgml
/HISTORY
$(distdir
)/
110 cp
$(distdir
)/doc
/src
/sgml
/INSTALL
$(distdir
)/
111 cp
$(distdir
)/doc
/src
/sgml
/regress_README
$(distdir
)/src
/test/regress
/README
112 $(MAKE
) -C
$(distdir
) distclean
113 rm -f
$(distdir
)/README.git
118 $(GZIP
) -d
-c
$(distdir
).
tar.gz |
$(TAR
) xf
-
119 install_prefix
=`cd $(dummy) && pwd`; \
121 && .
/configure
--prefix="$$install_prefix"
122 $(MAKE
) -C
$(distdir
) -q distprep
123 $(MAKE
) -C
$(distdir
)
124 $(MAKE
) -C
$(distdir
) install
125 $(MAKE
) -C
$(distdir
) uninstall
126 @echo
"checking whether \`$(MAKE) uninstall' works"
127 test `find $(dummy) ! -type d | wc -l` -eq
0
128 $(MAKE
) -C
$(distdir
) dist
129 # Room for improvement: Check here whether this distribution tarball
130 # is sufficiently similar to the original one.
131 rm -rf
$(distdir
) $(dummy
)
132 @echo
"Distribution integrity checks out."
134 .PHONY
: dist distdir distcheck docs install-docs world check-world install-world installcheck-world