Skip to content

Commit 8694a1c

Browse files
committed
Document need to clear MAKELEVEL when invoking PG build from a makefile.
Since commit 3b8f6e7, failure to do this would lead to submake-generated-headers not doing anything, so that references to generated or symlinked headers would fail. Previous to that, the omission only led to temp-install not doing anything, which apparently affects many fewer people (doesn't anybody use "make check" in their build rules??). Hence, backpatch to v11 but not further. Per complaints from Christoph Berg, Jakob Egger, and others.
1 parent b284262 commit 8694a1c

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

doc/src/sgml/installation.sgml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1599,12 +1599,13 @@ su - postgres
15991599
<title>Build</title>
16001600

16011601
<para>
1602-
To start the build, type:
1602+
To start the build, type either of:
16031603
<screen>
16041604
<userinput>make</userinput>
1605+
<userinput>make all</userinput>
16051606
</screen>
1606-
(Remember to use <acronym>GNU</acronym> <application>make</application>.) The build
1607-
will take a few minutes depending on your
1607+
(Remember to use <acronym>GNU</acronym> <application>make</application>.)
1608+
The build will take a few minutes depending on your
16081609
hardware. The last line displayed should be:
16091610
<screen>
16101611
All of PostgreSQL successfully made. Ready to install.
@@ -1623,6 +1624,18 @@ All of PostgreSQL successfully made. Ready to install.
16231624
PostgreSQL, contrib, and documentation successfully made. Ready to install.
16241625
</screen>
16251626
</para>
1627+
1628+
<para>
1629+
If you want to invoke the build from another makefile rather than
1630+
manually, you must unset <varname>MAKELEVEL</varname> or set it to zero,
1631+
for instance like this:
1632+
<programlisting>
1633+
build-postgresql:
1634+
$(MAKE) -C postgresql MAKELEVEL=0 all
1635+
</programlisting>
1636+
Failure to do that can lead to strange error messages, typically about
1637+
missing header files.
1638+
</para>
16261639
</step>
16271640

16281641
<step>

0 commit comments

Comments
 (0)