Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 147 lines (120 sloc) 3.699 kb
7265ea4 @petere Moved configure script from src/ to the top level directory. Moved
petere authored
1 #
2 # PostgreSQL top level makefile
3 #
537855f testing $PostgreSQL$ tag
PostgreSQL Daemon authored
4 # $PostgreSQL$
7265ea4 @petere Moved configure script from src/ to the top level directory. Moved
petere authored
5 #
6
ee081a3 @petere Makefile cleanup for interface tree. Now essentially with all the
petere authored
7 subdir =
7265ea4 @petere Moved configure script from src/ to the top level directory. Moved
petere authored
8 top_builddir = .
f7e86e0 @petere Fix relative path references so that make knowns which dependencies r…
petere authored
9 include $(top_builddir)/src/Makefile.global
7265ea4 @petere Moved configure script from src/ to the top level directory. Moved
petere authored
10
11 all:
8a92333 @petere Ouch, that should be `$(MAKE) -C', not `make -C' ...
petere authored
12 $(MAKE) -C src all
1571bb7 @petere PostgreSQL extension makefile framework ("pgxs"), by Fabien Coelho, with
petere authored
13 $(MAKE) -C config all
7265ea4 @petere Moved configure script from src/ to the top level directory. Moved
petere authored
14 @echo "All of PostgreSQL successfully made. Ready to install."
15
5791a76 @petere Separate targets "make docs" and "make install-docs" for the document…
petere authored
16 docs:
17 $(MAKE) -C doc all
18
5a87f14 @adunstan Add new make targets "world", "install-world" and "installcheck-world…
adunstan authored
19 world:
5791a76 @petere Separate targets "make docs" and "make install-docs" for the document…
petere authored
20 $(MAKE) -C doc all
5a87f14 @adunstan Add new make targets "world", "install-world" and "installcheck-world…
adunstan authored
21 $(MAKE) -C src all
22 $(MAKE) -C config all
23 $(MAKE) -C contrib all
5791a76 @petere Separate targets "make docs" and "make install-docs" for the document…
petere authored
24 @echo "PostgreSQL, contrib, and documentation successfully made. Ready to install."
5a87f14 @adunstan Add new make targets "world", "install-world" and "installcheck-world…
adunstan authored
25
88d51c9 @petere Ship documentation without intermediate tarballs
petere authored
26 html man:
27 $(MAKE) -C doc $@
28
7265ea4 @petere Moved configure script from src/ to the top level directory. Moved
petere authored
29 install:
9512749 @bmomjian please find attached an alternate submission which addresses open item
bmomjian authored
30 $(MAKE) -C src $@
31 $(MAKE) -C config $@
a86d6e2 @petere Remove registration message, after discussion concluded that it was of
petere authored
32 @echo "PostgreSQL installation complete."
7265ea4 @petere Moved configure script from src/ to the top level directory. Moved
petere authored
33
5791a76 @petere Separate targets "make docs" and "make install-docs" for the document…
petere authored
34 install-docs:
35 $(MAKE) -C doc install
36
5a87f14 @adunstan Add new make targets "world", "install-world" and "installcheck-world…
adunstan authored
37 install-world:
38 $(MAKE) -C doc install
39 $(MAKE) -C src install
40 $(MAKE) -C config install
41 $(MAKE) -C contrib install
5791a76 @petere Separate targets "make docs" and "make install-docs" for the document…
petere authored
42 @echo "PostgreSQL, contrib, and documentation installation complete."
5a87f14 @adunstan Add new make targets "world", "install-world" and "installcheck-world…
adunstan authored
43
cfca5cc @petere Expand test coverage support to entire tree
petere authored
44 installdirs uninstall coverage:
9bae06e @petere End users shouldn't have to invoke a separate command to install the
petere authored
45 $(MAKE) -C doc $@
ee081a3 @petere Makefile cleanup for interface tree. Now essentially with all the
petere authored
46 $(MAKE) -C src $@
1571bb7 @petere PostgreSQL extension makefile framework ("pgxs"), by Fabien Coelho, with
petere authored
47 $(MAKE) -C config $@
ee081a3 @petere Makefile cleanup for interface tree. Now essentially with all the
petere authored
48
9f2c97f @petere Put flex'ed and bison'ed files in contrib in the distribution tarball…
petere authored
49 distprep:
50 $(MAKE) -C doc $@
51 $(MAKE) -C src $@
52 $(MAKE) -C config $@
53 $(MAKE) -C contrib $@
54
a2ad195 Seems like make clean or make distclean should clean out contrib
Tom Lane authored
55 # clean, distclean, etc should apply to contrib too, even though
56 # it's not built by default
57 clean:
58 $(MAKE) -C doc $@
59 $(MAKE) -C contrib $@
60 $(MAKE) -C src $@
1571bb7 @petere PostgreSQL extension makefile framework ("pgxs"), by Fabien Coelho, with
petere authored
61 $(MAKE) -C config $@
ae7cdc8 @petere Upgrade to Autoconf version 2.53. Replaced many custom macro
petere authored
62 # Garbage from autoconf:
63 @rm -rf autom4te.cache/
a2ad195 Seems like make clean or make distclean should clean out contrib
Tom Lane authored
64
65 # Important: distclean `src' last, otherwise Makefile.global
9bae06e @petere End users shouldn't have to invoke a separate command to install the
petere authored
66 # will be gone too soon.
ee081a3 @petere Makefile cleanup for interface tree. Now essentially with all the
petere authored
67 distclean maintainer-clean:
b7f381e @petere Catch all errors in for and while loops in makefiles. Don't ignore any
petere authored
68 $(MAKE) -C doc $@
69 $(MAKE) -C contrib $@
70 $(MAKE) -C config $@
71 $(MAKE) -C src $@
72 rm -f config.cache config.log config.status GNUmakefile
ae7cdc8 @petere Upgrade to Autoconf version 2.53. Replaced many custom macro
petere authored
73 # Garbage from autoconf:
74 @rm -rf autom4te.cache/
7265ea4 @petere Moved configure script from src/ to the top level directory. Moved
petere authored
75
314f75e @petere "installcheck" doesn't need to depend on "all" since we depend on the…
petere authored
76 check: all
77
9306be0 @adunstan Add installcheck-parallel target to top level makefiles.
adunstan authored
78 check installcheck installcheck-parallel:
1fef669 @petere New unified regression test driver, test/regress makefile cleanup,
petere authored
79 $(MAKE) -C src/test $@
7265ea4 @petere Moved configure script from src/ to the top level directory. Moved
petere authored
80
5a87f14 @adunstan Add new make targets "world", "install-world" and "installcheck-world…
adunstan authored
81 installcheck-world:
82 $(MAKE) -C src/test installcheck
83 $(MAKE) -C src/pl installcheck
5fc4326 @adunstan Fix thinko in new installcheck-world target
adunstan authored
84 $(MAKE) -C src/interfaces/ecpg installcheck
5a87f14 @adunstan Add new make targets "world", "install-world" and "installcheck-world…
adunstan authored
85 $(MAKE) -C contrib installcheck
86
df0cde5 @petere Moved the intricacies of the perl interface build into its own makefile
petere authored
87 GNUmakefile: GNUmakefile.in $(top_builddir)/config.status
ae7cdc8 @petere Upgrade to Autoconf version 2.53. Replaced many custom macro
petere authored
88 ./config.status $@
df0cde5 @petere Moved the intricacies of the perl interface build into its own makefile
petere authored
89
90
dc3dad1 @petere Add distprep target to take some of the job of the release_prep script.
petere authored
91 ##########################################################################
92
86f8fd1 @petere Replace useless uses of := by = in makefiles.
petere authored
93 distdir = postgresql-$(VERSION)
94 dummy = =install=
95 garbage = =* "#"* ."#"* *~* *.orig *.rej core postgresql-*
dc3dad1 @petere Add distprep target to take some of the job of the release_prep script.
petere authored
96
ade9e38 @petere Build bzip2 tarball in dist target as well
petere authored
97 dist: $(distdir).tar.gz $(distdir).tar.bz2
b7f381e @petere Catch all errors in for and while loops in makefiles. Don't ignore any
petere authored
98 rm -rf $(distdir)
dc3dad1 @petere Add distprep target to take some of the job of the release_prep script.
petere authored
99
100 $(distdir).tar: distdir
101 $(TAR) chf $@ $(distdir)
102
ade9e38 @petere Build bzip2 tarball in dist target as well
petere authored
103 .INTERMEDIATE: $(distdir).tar
104
27413cf @alvherre Be able to easily figure out the target directory of "make dist".
alvherre authored
105 distdir-location:
106 @echo $(distdir)
107
b816790 @petere coupla minor fixes in the `make dist' support code
petere authored
108 distdir:
b7f381e @petere Catch all errors in for and while loops in makefiles. Don't ignore any
petere authored
109 rm -rf $(distdir)* $(dummy)
ff9beec @bmomjian Modify distdir rule to skip .git directory.
bmomjian authored
110 for x in `cd $(top_srcdir) && find . \( -name CVS -prune \) -o \( -name .git -prune \) -o -print`; do \
b816790 @petere coupla minor fixes in the `make dist' support code
petere authored
111 file=`expr X$$x : 'X\./\(.*\)'`; \
dc3dad1 @petere Add distprep target to take some of the job of the release_prep script.
petere authored
112 if test -d "$(top_srcdir)/$$file" ; then \
113 mkdir "$(distdir)/$$file" && chmod 777 "$(distdir)/$$file"; \
114 else \
b816790 @petere coupla minor fixes in the `make dist' support code
petere authored
115 ln "$(top_srcdir)/$$file" "$(distdir)/$$file" >/dev/null 2>&1 \
116 || cp "$(top_srcdir)/$$file" "$(distdir)/$$file"; \
dc3dad1 @petere Add distprep target to take some of the job of the release_prep script.
petere authored
117 fi || exit; \
118 done
b816790 @petere coupla minor fixes in the `make dist' support code
petere authored
119 $(MAKE) -C $(distdir) distprep
4ad7814 @petere Build src/test/regress/README during tarball making like the other
petere authored
120 $(MAKE) -C $(distdir)/doc/src/sgml/ HISTORY INSTALL regress_README
121 cp $(distdir)/doc/src/sgml/HISTORY $(distdir)/
122 cp $(distdir)/doc/src/sgml/INSTALL $(distdir)/
123 cp $(distdir)/doc/src/sgml/regress_README $(distdir)/src/test/regress/README
dc3dad1 @petere Add distprep target to take some of the job of the release_prep script.
petere authored
124 $(MAKE) -C $(distdir) distclean
1b7f7b4 @petere Remove README.CVS when making a distribution.
petere authored
125 rm -f $(distdir)/README.CVS
dc3dad1 @petere Add distprep target to take some of the job of the release_prep script.
petere authored
126
ade9e38 @petere Build bzip2 tarball in dist target as well
petere authored
127 distcheck: dist
b7f381e @petere Catch all errors in for and while loops in makefiles. Don't ignore any
petere authored
128 rm -rf $(dummy)
dc3dad1 @petere Add distprep target to take some of the job of the release_prep script.
petere authored
129 mkdir $(dummy)
ade9e38 @petere Build bzip2 tarball in dist target as well
petere authored
130 $(GZIP) -d -c $(distdir).tar.gz | $(TAR) xf -
dc3dad1 @petere Add distprep target to take some of the job of the release_prep script.
petere authored
131 install_prefix=`cd $(dummy) && pwd`; \
132 cd $(distdir) \
133 && ./configure --prefix="$$install_prefix"
134 $(MAKE) -C $(distdir) -q distprep
135 $(MAKE) -C $(distdir)
136 $(MAKE) -C $(distdir) install
137 $(MAKE) -C $(distdir) uninstall
138 @echo "checking whether \`$(MAKE) uninstall' works"
3b9e51b @petere Use more portable syntax for 'find'.
petere authored
139 test `find $(dummy) ! -type d | wc -l` -eq 0
dc3dad1 @petere Add distprep target to take some of the job of the release_prep script.
petere authored
140 $(MAKE) -C $(distdir) dist
141 # Room for improvement: Check here whether this distribution tarball
142 # is sufficiently similar to the original one.
b7f381e @petere Catch all errors in for and while loops in makefiles. Don't ignore any
petere authored
143 rm -rf $(distdir) $(dummy)
dc3dad1 @petere Add distprep target to take some of the job of the release_prep script.
petere authored
144 @echo "Distribution integrity checks out."
145
5791a76 @petere Separate targets "make docs" and "make install-docs" for the document…
petere authored
146 .PHONY: dist distdir distcheck docs install-docs
Something went wrong with that request. Please try again.