Remove unneeded nbtree latestRemovedXid comments.
[pgsql.git] / GNUmakefile.in
blob2352fc1171aece54e44c71e7e46f16d390d587ec
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 docs:
14 $(MAKE) -C doc all
16 $(call recurse,world,doc src config contrib,all)
18 # build src/ before contrib/
19 world-contrib-recurse: world-src-recurse
21 $(call recurse,world-bin,src config contrib,all)
23 # build src/ before contrib/
24 world-bin-contrib-recurse: world-bin-src-recurse
26 html man:
27 $(MAKE) -C doc $@
29 install-docs:
30 $(MAKE) -C doc install
32 $(call recurse,install-world,doc src config contrib,install)
34 # build src/ before contrib/
35 install-world-contrib-recurse: install-world-src-recurse
37 $(call recurse,install-world-bin,src config contrib,install)
39 # build src/ before contrib/
40 install-world-bin-contrib-recurse: install-world-bin-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-tests: | temp-install
67 check check-tests installcheck installcheck-parallel installcheck-tests: CHECKPREP_TOP=src/test/regress
68 check check-tests installcheck installcheck-parallel installcheck-tests: submake-generated-headers
69 $(MAKE) -C src/test/regress $@
71 $(call recurse,check-world,src/test src/pl src/interfaces/ecpg contrib src/bin,check)
72 $(call recurse,checkprep, src/test src/pl src/interfaces/ecpg contrib src/bin)
74 $(call recurse,installcheck-world,src/test src/pl src/interfaces/ecpg contrib src/bin,installcheck)
75 $(call recurse,install-tests,src/test/regress,install-tests)
77 GNUmakefile: GNUmakefile.in $(top_builddir)/config.status
78 ./config.status $@
80 update-unicode: | submake-generated-headers submake-libpgport
81 $(MAKE) -C src/common/unicode $@
82 $(MAKE) -C contrib/unaccent $@
85 ##########################################################################
87 distdir = postgresql-$(VERSION)
88 dummy = =install=
90 dist: $(distdir).tar.gz $(distdir).tar.bz2
91 rm -rf $(distdir)
93 $(distdir).tar: distdir
94 $(TAR) chf $@ $(distdir)
96 .INTERMEDIATE: $(distdir).tar
98 distdir-location:
99 @echo $(distdir)
101 distdir:
102 rm -rf $(distdir)* $(dummy)
103 for x in `cd $(top_srcdir) && find . \( -name CVS -prune \) -o \( -name .git -prune \) -o -print`; do \
104 file=`expr X$$x : 'X\./\(.*\)'`; \
105 if test -d "$(top_srcdir)/$$file" ; then \
106 mkdir "$(distdir)/$$file" && chmod 777 "$(distdir)/$$file"; \
107 else \
108 ln "$(top_srcdir)/$$file" "$(distdir)/$$file" >/dev/null 2>&1 \
109 || cp "$(top_srcdir)/$$file" "$(distdir)/$$file"; \
110 fi || exit; \
111 done
112 $(MAKE) -C $(distdir) distprep
113 $(MAKE) -C $(distdir)/doc/src/sgml/ INSTALL
114 cp $(distdir)/doc/src/sgml/INSTALL $(distdir)/
115 $(MAKE) -C $(distdir) distclean
116 rm -f $(distdir)/README.git
118 distcheck: dist
119 rm -rf $(dummy)
120 mkdir $(dummy)
121 $(GZIP) -d -c $(distdir).tar.gz | $(TAR) xf -
122 install_prefix=`cd $(dummy) && pwd`; \
123 cd $(distdir) \
124 && ./configure --prefix="$$install_prefix"
125 $(MAKE) -C $(distdir) -q distprep
126 $(MAKE) -C $(distdir)
127 $(MAKE) -C $(distdir) install
128 $(MAKE) -C $(distdir) uninstall
129 @echo "checking whether \`$(MAKE) uninstall' works"
130 test `find $(dummy) ! -type d | wc -l` -eq 0
131 $(MAKE) -C $(distdir) dist
132 # Room for improvement: Check here whether this distribution tarball
133 # is sufficiently similar to the original one.
134 rm -rf $(distdir) $(dummy)
135 @echo "Distribution integrity checks out."
137 headerscheck: submake-generated-headers
138 $(top_srcdir)/src/tools/pginclude/headerscheck $(top_srcdir) $(abs_top_builddir)
140 cpluspluscheck: submake-generated-headers
141 $(top_srcdir)/src/tools/pginclude/cpluspluscheck $(top_srcdir) $(abs_top_builddir)
143 .PHONY: dist distdir distcheck docs install-docs world check-world install-world installcheck-world headerscheck cpluspluscheck