Fix minor nbtree page deletion buffer lock issue.
[pgsql.git] / GNUmakefile.in
blobee636e3b5053b0aac0277b679b4bd456c6a938ef
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 init-po update-po,doc src config)
44 $(call recurse,distprep coverage,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 rm -rf tmp_install/
51 # Garbage from autoconf:
52 @rm -rf autom4te.cache/
54 # Important: distclean `src' last, otherwise Makefile.global
55 # will be gone too soon.
56 distclean maintainer-clean:
57 $(MAKE) -C doc $@
58 $(MAKE) -C contrib $@
59 $(MAKE) -C config $@
60 $(MAKE) -C src $@
61 rm -rf tmp_install/
62 # Garbage from autoconf:
63 @rm -rf autom4te.cache/
64 rm -f config.cache config.log config.status GNUmakefile
66 check check-tests installcheck installcheck-parallel installcheck-tests: CHECKPREP_TOP=src/test/regress
67 check check-tests installcheck installcheck-parallel installcheck-tests: submake-generated-headers
68 $(MAKE) -C src/test/regress $@
70 $(call recurse,check-world,src/test src/pl src/interfaces/ecpg contrib src/bin,check)
71 $(call recurse,checkprep, src/test src/pl src/interfaces/ecpg contrib src/bin)
73 $(call recurse,installcheck-world,src/test src/pl src/interfaces/ecpg contrib src/bin,installcheck)
75 GNUmakefile: GNUmakefile.in $(top_builddir)/config.status
76 ./config.status $@
78 update-unicode: | submake-generated-headers submake-libpgport
79 $(MAKE) -C src/common/unicode $@
80 $(MAKE) -C contrib/unaccent $@
83 ##########################################################################
85 distdir = postgresql-$(VERSION)
86 dummy = =install=
88 dist: $(distdir).tar.gz $(distdir).tar.bz2
89 rm -rf $(distdir)
91 $(distdir).tar: distdir
92 $(TAR) chf $@ $(distdir)
94 .INTERMEDIATE: $(distdir).tar
96 distdir-location:
97 @echo $(distdir)
99 distdir:
100 rm -rf $(distdir)* $(dummy)
101 for x in `cd $(top_srcdir) && find . \( -name CVS -prune \) -o \( -name .git -prune \) -o -print`; do \
102 file=`expr X$$x : 'X\./\(.*\)'`; \
103 if test -d "$(top_srcdir)/$$file" ; then \
104 mkdir "$(distdir)/$$file" && chmod 777 "$(distdir)/$$file"; \
105 else \
106 ln "$(top_srcdir)/$$file" "$(distdir)/$$file" >/dev/null 2>&1 \
107 || cp "$(top_srcdir)/$$file" "$(distdir)/$$file"; \
108 fi || exit; \
109 done
110 $(MAKE) -C $(distdir) distprep
111 $(MAKE) -C $(distdir)/doc/src/sgml/ INSTALL
112 cp $(distdir)/doc/src/sgml/INSTALL $(distdir)/
113 $(MAKE) -C $(distdir) distclean
114 rm -f $(distdir)/README.git
116 distcheck: dist
117 rm -rf $(dummy)
118 mkdir $(dummy)
119 $(GZIP) -d -c $(distdir).tar.gz | $(TAR) xf -
120 install_prefix=`cd $(dummy) && pwd`; \
121 cd $(distdir) \
122 && ./configure --prefix="$$install_prefix"
123 $(MAKE) -C $(distdir) -q distprep
124 $(MAKE) -C $(distdir)
125 $(MAKE) -C $(distdir) install
126 $(MAKE) -C $(distdir) uninstall
127 @echo "checking whether \`$(MAKE) uninstall' works"
128 test `find $(dummy) ! -type d | wc -l` -eq 0
129 $(MAKE) -C $(distdir) dist
130 # Room for improvement: Check here whether this distribution tarball
131 # is sufficiently similar to the original one.
132 rm -rf $(distdir) $(dummy)
133 @echo "Distribution integrity checks out."
135 headerscheck: submake-generated-headers
136 $(top_srcdir)/src/tools/pginclude/headerscheck $(top_srcdir) $(abs_top_builddir)
138 cpluspluscheck: submake-generated-headers
139 $(top_srcdir)/src/tools/pginclude/cpluspluscheck $(top_srcdir) $(abs_top_builddir)
141 .PHONY: dist distdir distcheck docs install-docs world check-world install-world installcheck-world headerscheck cpluspluscheck