aboutsummaryrefslogtreecommitdiff
path: root/build.1
diff options
context:
space:
mode:
Diffstat (limited to 'build.1')
-rw-r--r--build.116
1 files changed, 7 insertions, 9 deletions
diff --git a/build.1 b/build.1
index 10ae999..63e46e7 100644
--- a/build.1
+++ b/build.1
@@ -55,8 +55,9 @@ searches for a
.Em target :
.Bl -tag -width indent
.It target
-.br
">" <filename without whitespace>
+.br
+"-o " <filename without whitespace>
.El
.Pp
The last target found will be counted
@@ -89,7 +90,7 @@ starts with the following text,
.Bd -literal -offset indent
/**
* To build this program, use the following invocation:
- * $ cc -O2 -o prg prg.c # > prg
+ * $ cc -O2 -o prg prg.c
*/
.Ed
.Pp
@@ -99,19 +100,16 @@ $ build prg.c
.Ed
.Pp
will build
-.Pa prg .
-(Because
-.Xr cc 1
-does not print the built file on standard output,
-a commented
-.Ql > prg
-is necessary to set the target correctly.
+.Pa prg ,
+if it is older than
+.Pa prg.c .
.Pp
Assuming that the file
.Pa doc.t
starts with the following text,
.Bd -literal -offset indent
\&.\\" This document is built with the following shell commands:
+\&.\\" $ export LC_ALL=en_US.UTF-8
\&.\\" $ refer -p refs doc.t | troff -ms | dpost > doc.ps
\&.\\" $ ps2pdf doc.ps > doc.pdf
\&.\\" $ rm doc.ps