From: Andrew Dunstan Date: Thu, 1 Jul 2021 18:51:54 +0000 (-0400) Subject: Add new make targets world-bin and install-world-bin X-Git-Tag: REL9_6_23~47 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=cbd5d7c852dcab56c7907ba07d45ef97eb28e158;p=postgresql.git Add new make targets world-bin and install-world-bin These are the same as world and install-world respectively, but without building or installing the documentation. There are many reasons for wanting to be able to do this, including speed, lack of documentation building tools, and wanting to build other formats of the documentation. Plans for simplifying the buildfarm client code include using these targets. Backpatch to all live branches. Discussion: https://postgr.es/m/6a421136-d462-b043-a8eb-e75b2861f3df@dunslane.net --- diff --git a/GNUmakefile.in b/GNUmakefile.in index b97d75e6c2e..30066ee279f 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -23,6 +23,11 @@ world: # build src/ before contrib/ world-contrib-recurse: world-src-recurse +$(call recurse,world-bin,src config contrib,all) + +# build src/ before contrib/ +world-bin-contrib-recurse: world-bin-src-recurse + html man: $(MAKE) -C doc $@ @@ -39,6 +44,11 @@ install-world: # build src/ before contrib/ install-world-contrib-recurse: install-world-src-recurse +$(call recurse,install-world-bin,src config contrib,install) + +# build src/ before contrib/ +install-world-bin-contrib-recurse: install-world-bin-src-recurse + $(call recurse,installdirs uninstall coverage init-po update-po,doc src config) $(call recurse,distprep,doc src config contrib) diff --git a/doc/src/sgml/installation.sgml b/doc/src/sgml/installation.sgml index 6b6adf736a5..4d4f13b4987 100644 --- a/doc/src/sgml/installation.sgml +++ b/doc/src/sgml/installation.sgml @@ -1547,6 +1547,15 @@ All of PostgreSQL successfully made. Ready to install. The last line displayed should be: PostgreSQL, contrib, and documentation successfully made. Ready to install. + + + + + If you want to build everything that can be built, including the + additional modules (contrib), but without + the documentation, type instead: + +make world-bin @@ -1618,6 +1627,12 @@ PostgreSQL, contrib, and documentation successfully made. Ready to install. This also installs the documentation. + + If you built the world without the documentation above, type instead: + +make install-world-bin + + You can use make install-strip instead of make install to strip the executable files and