summaryrefslogtreecommitdiff
path: root/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Dynamically find correct installation docs in Makefile.Daniel Gustafsson2022-01-191-1/+7
| | | | | | | | | | | | | | The base Makefile will output help to the user when invoking make in an unconfigured tree, the help was however always referring to a file which may not be present as it's only in tarballs. Dynamically check for the presence of the INSTALL file and fall back on README.git when it's not available (which is the case of Git checkouts). Reported-by: Tim McNamara <tim@mcnamara.nz> Reviewed-by: Magnus Hagander <magnus@hagander.net> Reviewed-by: Peter Eisentraut <peter.eisentraut@enterprisedb.com> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/730dae39-abaa-4140-893b-95d732fed003@www.fastmail.com
* Don't unset MAKEFLAGS in non-GNU Makefile.Thomas Munro2019-06-251-1/+1
| | | | | | | | It's useful to be able to pass down options like -s and -j. Back-patch to 9.5, like commit a76200de. Discussion: https://postgr.es/m/CA%2BhUKG%2Be1M8-BbL%3DPqhTp6oO6XPO6%2Bs9WGQMLfbuZ%3DG9CtzyXg%40mail.gmail.com
* Fix non-GNU makefiles for AIX make.Noah Misch2017-11-301-0/+4
| | | | | | Invoking the Makefile without an explicit target was building every possible target instead of just the "all" target. Back-patch to 9.3 (all supported versions).
* Prevent passing down MAKELEVEL/MAKEFLAGS from non-GNU make to GNU make.Tom Lane2017-08-091-0/+1
| | | | | | | | | | | | | | | | | | | FreeBSD's make, for one, sets the MAKELEVEL environment variable when invoking commands. In the special Makefile we provide to hand off control from a non-GNU make to GNU make, this causes GNU make to think it is a child make invocation rather than top-level. That interferes with the hack added in commit dcae5facc to cause the temp-install tree to be made only by the top-level invocation of gmake. Unset the variable to prevent that. Likewise unset MAKEFLAGS, which FreeBSD's make also sets, and which could easily confuse gmake. There are no reports of actual trouble from that, but it seems better to be proactive. Back-patch to 9.5 where dcae5facc came in. Thomas Munro, hacked a bit more by me Discussion: https://postgr.es/m/CAEepm=1ueww35AXTkt1A3gyzZUqv5XCzh8RUNvJZAQAW=eOhVw@mail.gmail.com
* Allow make check in PL directoriesPeter Eisentraut2011-02-151-1/+1
| | | | | Also add make check-world target, and refactor pg_regress invocation code in makefiles a bit.
* Add new make targets "world", "install-world" and "installcheck-world" to ↵Andrew Dunstan2010-01-281-1/+1
| | | | | | | build, install and check just about everything. In addition to everything built installed and tested by all, install and installcheck targets, these build HTML Docs, build and test contrib, and test PLs and ECPG.
* Revert brainfart: Of course the wildcard only works in GNU make itself.Peter Eisentraut2009-12-231-1/+1
| | | | Instead, add a few targets that were missing.
* Replace target list by a wildcard, so that this workaround makefilePeter Eisentraut2009-12-231-1/+1
| | | | also works transparently for lesser used targets.
* Remove remains of old depend target.Peter Eisentraut2007-01-201-1/+1
|
* Add installcheck-parallel target to top level makefiles.Andrew Dunstan2006-08-181-1/+1
|
* please find attached an alternate submission which addresses open itemBruce Momjian2004-10-061-1/+1
| | | | | | | | | | | | | "make pgxs install by default". It is up to the committers to chose. (1) there is only one "install" target. no more "install-all-headers". it simplifies/changes several makefiles. (2) the documentation reflects the change. (3) a minor fix on pgxs to use a nicer patch without a double slash. Fabien Coelho
* Restructure the key include files per recent pghackers discussion: thereTom Lane2001-02-101-1/+1
| | | | | | | | | | | are now separate files "postgres.h" and "postgres_fe.h", which are meant to be the primary include files for backend .c files and frontend .c files respectively. By default, only include files meant for frontend use are installed into the installation include directory. There is a new make target 'make install-all-headers' that adds the whole content of the src/include tree to the installed fileset, for use by people who want to develop server-side code without keeping the complete source tree on hand. Cleaned up a whole lot of crufty and inconsistent header inclusions.
* Fix unportable use of '!' in shell commands.Peter Eisentraut2000-12-301-1/+1
|
* Fix GNU make detection.Peter Eisentraut2000-11-061-3/+3
| | | | | | (The test 'make --version' with FreeBSD make (and potentially others) would just reinvoke make on the same Makefile, resulting in an infinite loop.)
* Makeover for Unixware 7.1.1Peter Eisentraut2000-10-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile: Add more standard targets. Improve shell redirection in GNU make detection. * src/backend/access/transam/rmgr.c: Fix incorrect(?) C. * src/backend/libpq/pqcomm.c (StreamConnection): Work around accept() bug. * src/include/port/unixware.h: ...with help from here. * src/backend/nodes/print.c (plannode_type): Remove some "break"s after "return"s. * src/backend/tcop/dest.c (DestToFunction): ditto. * src/backend/nodes/readfuncs.c: Add proper prototypes. * src/backend/utils/adt/numutils.c (pg_atoi): Cope specially with strtol() setting EINVAL. This saves us from creating an extra set of regression test output for the affected systems. * src/include/storage/s_lock.h (tas): Correct prototype. * src/interfaces/libpq/fe-connect.c (parseServiceInfo): Don't use variable as dimension in array definition. * src/makefiles/Makefile.unixware: Add support for GCC. * src/template/unixware: same here * src/test/regress/expected/abstime-solaris-1947.out: Adjust whitespace. * src/test/regress/expected/horology-solaris-1947.out: Part of this file was evidently missing. * src/test/regress/pg_regress.sh: Fix shell. mkdir -p returns non-zero if the directory exists. * src/test/regress/resultmap: Add entries for Unixware.
* Put back old Makefiles, in pgsql and pgsql/src.Bruce Momjian2000-06-121-0/+36
|
* Remove Makefile. Now generated by configure.Bruce Momjian2000-06-121-16/+0
|
* Add makefile to warn about not using gmake.Bruce Momjian2000-06-121-34/+14
|
* Fix typo.Tom Lane2000-06-111-2/+2
|
* Moved the intricacies of the perl interface build into its own makefilePeter Eisentraut2000-06-101-14/+34
| | | | | | | | | | | | | | | | | | that now functions as a wrapper around the MakeMaker stuff. It might even behave sensically when we have separate build dirs. Same for plperl, which of course still doesn't work very well. Made sure that plperl respects the choice of --libdir. Added --with-python to automatically build and install the Python interface. Works similarly to the Perl5 stuff. Moved the burden of the distclean targets lower down into the source tree. Eventually, each make file should have its own. Added automatic remaking of makefiles and configure. Currently only for the top-level because of a bug(?) in Autoconf. Use GNU `missing' to work around missing autoconf and aclocal. Start factoring out macros into their own config/*.m4 files to increase readability and organization.
* If we're gonna have people running make from the top directory now,Tom Lane2000-06-091-0/+16
we'd better have a Makefile here to prevent the mistake of using vannilla make instead of gmake. (But let's leave src/Makefile where it is, too.)