diff options
author | John Ankarström <john@ankarstrom.se> | 2021-07-11 13:11:53 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-07-11 13:11:53 +0200 |
commit | 68cd2dc506e7440baf1fa5467b84212a8a6a4913 (patch) | |
tree | 30a454f36c0c66e45ed1dbbbb6ec25b537b10ebb /build.1 | |
parent | 0596b07e2470d9e0444df5ea1a08997367202c18 (diff) | |
download | build-68cd2dc506e7440baf1fa5467b84212a8a6a4913.tar.gz |
Support "-o " targets
Diffstat (limited to 'build.1')
-rw-r--r-- | build.1 | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -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 |