Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 129 lines (99 sloc) 3.613 kb
5b9d0d9 @petere Moved configure script from src/ to the top level directory. Moved
petere authored
1 #
2 # PostgreSQL top level makefile
3 #
9f2e211 @mhagander Remove cvs keywords from all files.
mhagander authored
4 # GNUmakefile.in
5b9d0d9 @petere Moved configure script from src/ to the top level directory. Moved
petere authored
5 #
6
44f64dd @petere Makefile cleanup for interface tree. Now essentially with all the
petere authored
7 subdir =
5b9d0d9 @petere Moved configure script from src/ to the top level directory. Moved
petere authored
8 top_builddir = .
424f0ed @petere Fix relative path references so that make knowns which dependencies refe...
petere authored
9 include $(top_builddir)/src/Makefile.global
5b9d0d9 @petere Moved configure script from src/ to the top level directory. Moved
petere authored
10
19e231b @petere Improved parallel make support
petere authored
11 $(call recurse,all install,src config)
12
5b9d0d9 @petere Moved configure script from src/ to the top level directory. Moved
petere authored
13 all:
19e231b @petere Improved parallel make support
petere authored
14 +@echo "All of PostgreSQL successfully made. Ready to install."
5b9d0d9 @petere Moved configure script from src/ to the top level directory. Moved
petere authored
15
29ccc32 @petere Separate targets "make docs" and "make install-docs" for the documentati...
petere authored
16 docs:
87502bc @koichi-szk This commit adds Postgres-XC reference manual.
koichi-szk authored
17 $(MAKE) -C doc-xc all
29ccc32 @petere Separate targets "make docs" and "make install-docs" for the documentati...
petere authored
18
ceaf339 @michaelpq Support for "make world"
michaelpq authored
19 $(call recurse,world,doc-xc src config contrib,all)
7523960 @adunstan Add new make targets "world", "install-world" and "installcheck-world" t...
adunstan authored
20 world:
19e231b @petere Improved parallel make support
petere authored
21 +@echo "PostgreSQL, contrib, and documentation successfully made. Ready to install."
7523960 @adunstan Add new make targets "world", "install-world" and "installcheck-world" t...
adunstan authored
22
ed92088 @petere Ship documentation without intermediate tarballs
petere authored
23 html man:
87502bc @koichi-szk This commit adds Postgres-XC reference manual.
koichi-szk authored
24 $(MAKE) -C doc-xc $@
ed92088 @petere Ship documentation without intermediate tarballs
petere authored
25
5b9d0d9 @petere Moved configure script from src/ to the top level directory. Moved
petere authored
26 install:
19e231b @petere Improved parallel make support
petere authored
27 +@echo "PostgreSQL installation complete."
5b9d0d9 @petere Moved configure script from src/ to the top level directory. Moved
petere authored
28
29ccc32 @petere Separate targets "make docs" and "make install-docs" for the documentati...
petere authored
29 install-docs:
87502bc @koichi-szk This commit adds Postgres-XC reference manual.
koichi-szk authored
30 $(MAKE) -C doc-xc install
29ccc32 @petere Separate targets "make docs" and "make install-docs" for the documentati...
petere authored
31
ceaf339 @michaelpq Support for "make world"
michaelpq authored
32 $(call recurse,install-world,doc-xc src config contrib,install)
7523960 @adunstan Add new make targets "world", "install-world" and "installcheck-world" t...
adunstan authored
33 install-world:
19e231b @petere Improved parallel make support
petere authored
34 +@echo "PostgreSQL, contrib, and documentation installation complete."
7523960 @adunstan Add new make targets "world", "install-world" and "installcheck-world" t...
adunstan authored
35
ceaf339 @michaelpq Support for "make world"
michaelpq authored
36 $(call recurse,installdirs uninstall coverage,doc-xc src config)
44f64dd @petere Makefile cleanup for interface tree. Now essentially with all the
petere authored
37
ceaf339 @michaelpq Support for "make world"
michaelpq authored
38 $(call recurse,distprep,doc-xc src config contrib)
c8c864c @petere Put flex'ed and bison'ed files in contrib in the distribution tarball, a...
petere authored
39
2bf2ee7 Seems like make clean or make distclean should clean out contrib
Tom Lane authored
40 # clean, distclean, etc should apply to contrib too, even though
41 # it's not built by default
ceaf339 @michaelpq Support for "make world"
michaelpq authored
42 $(call recurse,clean,doc-xc contrib src config)
2bf2ee7 Seems like make clean or make distclean should clean out contrib
Tom Lane authored
43 clean:
7c1ff35 @petere Upgrade to Autoconf version 2.53. Replaced many custom macro
petere authored
44 # Garbage from autoconf:
45 @rm -rf autom4te.cache/
2bf2ee7 Seems like make clean or make distclean should clean out contrib
Tom Lane authored
46
47 # Important: distclean `src' last, otherwise Makefile.global
44eaafe @petere End users shouldn't have to invoke a separate command to install the
petere authored
48 # will be gone too soon.
44f64dd @petere Makefile cleanup for interface tree. Now essentially with all the
petere authored
49 distclean maintainer-clean:
87502bc @koichi-szk This commit adds Postgres-XC reference manual.
koichi-szk authored
50 $(MAKE) -C doc-xc $@
8c87cc3 @petere Catch all errors in for and while loops in makefiles. Don't ignore any
petere authored
51 $(MAKE) -C contrib $@
52 $(MAKE) -C config $@
53 $(MAKE) -C src $@
54 rm -f config.cache config.log config.status GNUmakefile
7c1ff35 @petere Upgrade to Autoconf version 2.53. Replaced many custom macro
petere authored
55 # Garbage from autoconf:
56 @rm -rf autom4te.cache/
5b9d0d9 @petere Moved configure script from src/ to the top level directory. Moved
petere authored
57
de1af06 @petere "installcheck" doesn't need to depend on "all" since we depend on the us...
petere authored
58 check: all
59
1be4390 @adunstan Add installcheck-parallel target to top level makefiles.
adunstan authored
60 check installcheck installcheck-parallel:
6f64c2e @petere New unified regression test driver, test/regress makefile cleanup,
petere authored
61 $(MAKE) -C src/test $@
5b9d0d9 @petere Moved configure script from src/ to the top level directory. Moved
petere authored
62
f8ebe3b @petere Support "make check" in contrib
petere authored
63 $(call recurse,check-world,src/test src/pl src/interfaces/ecpg contrib,check)
2fd7706 @petere Allow make check in PL directories
petere authored
64
19e231b @petere Improved parallel make support
petere authored
65 $(call recurse,installcheck-world,src/test src/pl src/interfaces/ecpg contrib,installcheck)
7523960 @adunstan Add new make targets "world", "install-world" and "installcheck-world" t...
adunstan authored
66
ceaf339 @michaelpq Support for "make world"
michaelpq authored
67 $(call recurse,maintainer-check,doc-xc src config contrib)
6c0dfc0 @petere Add maintainer-check target
petere authored
68
6de89c9 @petere Moved the intricacies of the perl interface build into its own makefile
petere authored
69 GNUmakefile: GNUmakefile.in $(top_builddir)/config.status
7c1ff35 @petere Upgrade to Autoconf version 2.53. Replaced many custom macro
petere authored
70 ./config.status $@
6de89c9 @petere Moved the intricacies of the perl interface build into its own makefile
petere authored
71
72
3216309 @petere Add distprep target to take some of the job of the release_prep script.
petere authored
73 ##########################################################################
74
c138b96 @petere Replace useless uses of := by = in makefiles.
petere authored
75 distdir = postgresql-$(VERSION)
76 dummy = =install=
77 garbage = =* "#"* ."#"* *~* *.orig *.rej core postgresql-*
3216309 @petere Add distprep target to take some of the job of the release_prep script.
petere authored
78
a4d03bb @petere Build bzip2 tarball in dist target as well
petere authored
79 dist: $(distdir).tar.gz $(distdir).tar.bz2
8c87cc3 @petere Catch all errors in for and while loops in makefiles. Don't ignore any
petere authored
80 rm -rf $(distdir)
3216309 @petere Add distprep target to take some of the job of the release_prep script.
petere authored
81
82 $(distdir).tar: distdir
83 $(TAR) chf $@ $(distdir)
84
a4d03bb @petere Build bzip2 tarball in dist target as well
petere authored
85 .INTERMEDIATE: $(distdir).tar
86
3a00c0a @alvherre Be able to easily figure out the target directory of "make dist".
alvherre authored
87 distdir-location:
88 @echo $(distdir)
89
81ddc46 @petere coupla minor fixes in the `make dist' support code
petere authored
90 distdir:
8c87cc3 @petere Catch all errors in for and while loops in makefiles. Don't ignore any
petere authored
91 rm -rf $(distdir)* $(dummy)
9173d75 @bmomjian Modify distdir rule to skip .git directory.
bmomjian authored
92 for x in `cd $(top_srcdir) && find . \( -name CVS -prune \) -o \( -name .git -prune \) -o -print`; do \
81ddc46 @petere coupla minor fixes in the `make dist' support code
petere authored
93 file=`expr X$$x : 'X\./\(.*\)'`; \
3216309 @petere Add distprep target to take some of the job of the release_prep script.
petere authored
94 if test -d "$(top_srcdir)/$$file" ; then \
95 mkdir "$(distdir)/$$file" && chmod 777 "$(distdir)/$$file"; \
96 else \
81ddc46 @petere coupla minor fixes in the `make dist' support code
petere authored
97 ln "$(top_srcdir)/$$file" "$(distdir)/$$file" >/dev/null 2>&1 \
98 || cp "$(top_srcdir)/$$file" "$(distdir)/$$file"; \
3216309 @petere Add distprep target to take some of the job of the release_prep script.
petere authored
99 fi || exit; \
100 done
81ddc46 @petere coupla minor fixes in the `make dist' support code
petere authored
101 $(MAKE) -C $(distdir) distprep
0bc2a8c @petere Build src/test/regress/README during tarball making like the other
petere authored
102 $(MAKE) -C $(distdir)/doc/src/sgml/ HISTORY INSTALL regress_README
103 cp $(distdir)/doc/src/sgml/HISTORY $(distdir)/
104 cp $(distdir)/doc/src/sgml/INSTALL $(distdir)/
105 cp $(distdir)/doc/src/sgml/regress_README $(distdir)/src/test/regress/README
3216309 @petere Add distprep target to take some of the job of the release_prep script.
petere authored
106 $(MAKE) -C $(distdir) distclean
3977618 @mhagander Rename README.CVS to README.git and change references in it.
mhagander authored
107 rm -f $(distdir)/README.git
3216309 @petere Add distprep target to take some of the job of the release_prep script.
petere authored
108
a4d03bb @petere Build bzip2 tarball in dist target as well
petere authored
109 distcheck: dist
8c87cc3 @petere Catch all errors in for and while loops in makefiles. Don't ignore any
petere authored
110 rm -rf $(dummy)
3216309 @petere Add distprep target to take some of the job of the release_prep script.
petere authored
111 mkdir $(dummy)
a4d03bb @petere Build bzip2 tarball in dist target as well
petere authored
112 $(GZIP) -d -c $(distdir).tar.gz | $(TAR) xf -
3216309 @petere Add distprep target to take some of the job of the release_prep script.
petere authored
113 install_prefix=`cd $(dummy) && pwd`; \
114 cd $(distdir) \
115 && ./configure --prefix="$$install_prefix"
116 $(MAKE) -C $(distdir) -q distprep
117 $(MAKE) -C $(distdir)
118 $(MAKE) -C $(distdir) install
119 $(MAKE) -C $(distdir) uninstall
120 @echo "checking whether \`$(MAKE) uninstall' works"
ca88243 @petere Use more portable syntax for 'find'.
petere authored
121 test `find $(dummy) ! -type d | wc -l` -eq 0
3216309 @petere Add distprep target to take some of the job of the release_prep script.
petere authored
122 $(MAKE) -C $(distdir) dist
123 # Room for improvement: Check here whether this distribution tarball
124 # is sufficiently similar to the original one.
8c87cc3 @petere Catch all errors in for and while loops in makefiles. Don't ignore any
petere authored
125 rm -rf $(distdir) $(dummy)
3216309 @petere Add distprep target to take some of the job of the release_prep script.
petere authored
126 @echo "Distribution integrity checks out."
127
2fd7706 @petere Allow make check in PL directories
petere authored
128 .PHONY: dist distdir distcheck docs install-docs world check-world install-world installcheck-world
Something went wrong with that request. Please try again.