WAL-log the extension of a new empty MV heap which is being populated.
[pgsql.git] / GNUmakefile.in
blob17b1b3b5a4080821b308ad6f0e813a246cfa2296
2 # PostgreSQL top level makefile
4 # GNUmakefile.in
7 subdir =
8 top_builddir = .
9 include $(top_builddir)/src/Makefile.global
11 $(call recurse,all install,src config)
13 all:
14 +@echo "All of PostgreSQL successfully made. Ready to install."
16 docs:
17 $(MAKE) -C doc all
19 $(call recurse,world,doc src config contrib,all)
20 world:
21 +@echo "PostgreSQL, contrib, and documentation successfully made. Ready to install."
23 # build src/ before contrib/
24 world-contrib-recurse: world-src-recurse
26 html man:
27 $(MAKE) -C doc $@
29 install:
30 +@echo "PostgreSQL installation complete."
32 install-docs:
33 $(MAKE) -C doc install
35 $(call recurse,install-world,doc src config contrib,install)
36 install-world:
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)
49 clean:
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:
56 $(MAKE) -C doc $@
57 $(MAKE) -C contrib $@
58 $(MAKE) -C config $@
59 $(MAKE) -C src $@
60 rm -f config.cache config.log config.status GNUmakefile
61 # Garbage from autoconf:
62 @rm -rf autom4te.cache/
64 check: all
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
76 ./config.status $@
79 ##########################################################################
81 distdir = postgresql-$(VERSION)
82 dummy = =install=
83 garbage = =* "#"* ."#"* *~* *.orig *.rej core postgresql-*
85 dist: $(distdir).tar.gz $(distdir).tar.bz2
86 rm -rf $(distdir)
88 $(distdir).tar: distdir
89 $(TAR) chf $@ $(distdir)
91 .INTERMEDIATE: $(distdir).tar
93 distdir-location:
94 @echo $(distdir)
96 distdir:
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"; \
102 else \
103 ln "$(top_srcdir)/$$file" "$(distdir)/$$file" >/dev/null 2>&1 \
104 || cp "$(top_srcdir)/$$file" "$(distdir)/$$file"; \
105 fi || exit; \
106 done
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
115 distcheck: dist
116 rm -rf $(dummy)
117 mkdir $(dummy)
118 $(GZIP) -d -c $(distdir).tar.gz | $(TAR) xf -
119 install_prefix=`cd $(dummy) && pwd`; \
120 cd $(distdir) \
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