After using the configure command, you may begin compiling the PostgreSQL source by entering the gmake command.

Example 2-6. Compiling the Source with GNU Make

[root@host postgresql-7.1.2]# gmake
gmake -C doc all
gmake[1]: Entering directory `/usr/local/src/postgresql-7.1.2/doc'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/usr/local/src/postgresql-7.1.2/doc'
gmake -C src all
gmake[1]: Entering directory `/usr/local/src/postgresql-7.1.2/src'
gmake -C backend all
gmake[2]: Entering directory `/usr/local/src/postgresql-7.1.2/src/backend'
prereqdir=`cd parser/ >/dev/null && pwd` && \
  cd ../../src/include/parser/ && rm -f parse.h && \
  ln -s $prereqdir/parse.h .
gmake -C utils fmgroids.h
gmake[3]: Entering directory `/usr/local/src/postgresql-7.1.2/src/backend/utils'
Note Make on Linux-Based Systems

Remember that, on Linux-based systems, you can usually just type make in place of gmake .

Note BSD users

On BSD Systems, GNU Make is called gnumake rather than gmake .

At this point, depending on the speed of your machine, you may want to get some coffee, because the PostgreSQL compilation could take from 10 minutes, an hour, or more. After the compilation has finished, the following message should appear:

All of PostgreSQL is successfully made.  Ready to install.