summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/make.1
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2008-07-30 21:18:38 +0000
committered <ed@FreeBSD.org>2008-07-30 21:18:38 +0000
commit7383a7e483c4eb82dcc2467fae1a2e59931f700d (patch)
treeaa5645765b80e98ee35c6998b3bbd0a030a509ea /usr.bin/make/make.1
parent746c7fb6aab7b5162ba5e64a1e721c75e0a8d7ec (diff)
downloadFreeBSD-src-7383a7e483c4eb82dcc2467fae1a2e59931f700d.zip
FreeBSD-src-7383a7e483c4eb82dcc2467fae1a2e59931f700d.tar.gz
Add POSIX -p flag to make(1).
This article [1] describes the -p flag for make(1): Write to standard output the complete set of macro definitions and target descriptions. The output format is unspecified. We already support a similar flag (-d g1), but unlike -p, it still executes commands. Our implementation just turns it into -d g1, but also sets flag `printGraphOnly', which will cause make(1) to skip execution. [1] http://www.opengroup.org/onlinepubs/009695399/utilities/make.html Reviewed by: imp PR: standards/99960
Diffstat (limited to 'usr.bin/make/make.1')
-rw-r--r--usr.bin/make/make.111
1 files changed, 10 insertions, 1 deletions
diff --git a/usr.bin/make/make.1 b/usr.bin/make/make.1
index 173aef3..44421e5 100644
--- a/usr.bin/make/make.1
+++ b/usr.bin/make/make.1
@@ -40,7 +40,7 @@
.Nd maintain program dependencies
.Sh SYNOPSIS
.Nm
-.Op Fl ABPSXeiknqrstv
+.Op Fl ABPSXeiknpqrstv
.Op Fl C Ar directory
.Op Fl D Ar variable
.Op Fl d Ar flags
@@ -249,6 +249,15 @@ instead of mixing the output of parallel jobs together.
This option has no effect unless
.Fl j
is used too.
+.It Fl p
+Only print the input graph, not executing any commands.
+The output is the same as
+.Fl d Ar g1 .
+When combined with
+.Fl f Pa /dev/null ,
+only the builtin rules of
+.Nm
+are displayed.
.It Fl q
Do not execute any commands, but exit 0 if the specified targets are
up-to-date and 1, otherwise.
OpenPOWER on IntegriCloud