Permalink
Browse files

docs/usage: document --make option

  - document --make option for install/uninstall/check commands

  - fix usage lines which mention --pg_config option to use PROG instead of PATH
    placeholder
  • Loading branch information...
1 parent 2571954 commit dd5ce399f7726d2f73e61a9ab0482f56bdf163ca @andreypopp andreypopp committed with Aug 8, 2012
Showing with 11 additions and 3 deletions.
  1. +11 −3 docs/usage.rst
View
@@ -79,7 +79,8 @@ Usage:
:class: pgxn-install
pgxn install [--help] [--stable | --testing | --unstable]
- [--pg_config *PATH*] [--sudo [*PROG*] | --nosudo]
+ [--pg_config *PROG*] [--make *PROG*]
+ [--sudo [*PROG*] | --nosudo]
*SPEC*
The program takes a `package specification`_ identifying the distribution to
@@ -97,6 +98,11 @@ commands are implemented.
.. _PGXS: http://www.postgresql.org/docs/current/static/extend-pgxs.html
+PGXS_ relies on a presence of GNU Make — in most systems it's
+usually installed as ``gmake`` or ``make`` executable. If it's not the case you
+should provide path to GNU Make (or just simply a different executable name)
+using ``--make`` option.
+
If there are many PostgreSQL installations on the system, the extension will
be built and installed against the instance whose :program:`pg_config` is
first found on the :envvar:`PATH`. A different instance can be specified using
@@ -131,7 +137,8 @@ Usage:
:class: pgxn-check
pgxn check [--help] [--stable | --testing | --unstable]
- [--pg_config *PATH*] [-d *DBNAME*] [-h *HOST*] [-p *PORT*] [-U *NAME*]
+ [--pg_config *PROG*] [--make *PROG*]
+ [-d *DBNAME*] [-h *HOST*] [-p *PORT*] [-U *NAME*]
*SPEC*
The command takes a `package specification`_ identifying the distribution to
@@ -179,7 +186,8 @@ Usage:
:class: pgxn-uninstall
pgxn uninstall [--help] [--stable | --testing | --unstable]
- [--pg_config *PATH*] [--sudo [*PROG*] | --nosudo]
+ [--pg_config *PROG*] [--make *PROG*]
+ [--sudo [*PROG*] | --nosudo]
*SPEC*
The command does the opposite of the install_ command, removing a

0 comments on commit dd5ce39

Please sign in to comment.