summaryrefslogtreecommitdiff
path: root/Make.1.in
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-05-30 11:58:50 +0200
committerErich Eckner <git@eckner.net>2016-05-30 11:58:50 +0200
commit6680df87dc92eb6f1b80a068296c42295460dd25 (patch)
treef66fa3b08e8d2bae13a99806cbaf69ff5f50a37e /Make.1.in
parented29bd3cd6f2be81bee62027c27f9ffd6f8cbe0a (diff)
downloadMake-6680df87dc92eb6f1b80a068296c42295460dd25.tar.xz
Macros auch mit "%" beenden, kleinere Korrekturen
Diffstat (limited to 'Make.1.in')
-rw-r--r--Make.1.in39
1 files changed, 18 insertions, 21 deletions
diff --git a/Make.1.in b/Make.1.in
index 766e8de..1060668 100644
--- a/Make.1.in
+++ b/Make.1.in
@@ -63,37 +63,34 @@ Commands on one line are concatenated with \fB&&\fP instead of \fB;\fP \- to use
.SH SUBSTITUTIONS
Some substitutions and macros are recognized.
Obviously, substitutions marked with \fB(*)\fP are only available in COMMAND- and TARGET-DEFINITION lines.
+Number parameters may be omitted from back to front and default to \fI0\fP unless otherwise noted.
.TP
-.B "%nurmit'filePart'" (*)
-only execute command / generate target name from source file if name of source file contains \fIfilePart\fP
+.B "%nurmit\fIn\fP'filePart'%" (*)
+only execute command / generate target name from source file if name of \fIn\fP-th source file contains \fIfilePart\fP
.TP
-.B "%nurohne'filePart'" (*)
-opposite of \fB%nurmit'filePart'\fP
+.B "%nurohne\fIn\fP'filePart'%" (*)
+opposite of \fB%nurmit'filePart'%\fP
.TP
-.B "%in" (*)
-file name and path of source file
+.B "%in\fIn\fP%" (*)
+file name and path of \fIn\fP-th source file
.TP
-.B "%ifile" (*)
-file name of source file
+.B "%ifile\fIn\fP%" (*)
+file name of \fIn\fP-th source file
.TP
-.B "%basename" (*)
-file name of source file without extension(s)
+.B "%basename\fIn\fP%" (*)
+file name of \fIn\fP-th source file without extension(s)
.TP
-.B "%dirname(num1,num2)" (*)
-components \fInum1\fP upto \fInum2\fP of path to source file.
-Negative numbers are counted from the back - e.g. \fB-1\fP is the last path component, etc.
-\fInum2\fP may be omitted, it defaults to \fB-1\fP.
+.B "%dirname\fIn1\fP,\fIn2\fP,\fIn3\fP%" (*)
+components \fIn1\fP upto \fIn2\fP of path to \fIn3\fP-th source file.
+Negative numbers \fIn1\fP or \fIn2\fP are counted from the back - e.g. \fB-1\fP is the last path component, etc.
+If omitted, \fIn2\fP defaults to \fI-1\fP.
.TP
-.B "%dirname" (*)
-path so source file.
-Identical to \fB%dirname(0)\fP.
-.TP
-.B "%DIRNAME"
+.B "%DIRNAME%"
path to \fIMachdatei\fP
.TP
-.B "%num'string'"
+.B "%num'string'%"
last decimal number in \fIstring\fP.
-E.g. \fB%num'abc123def456ghi'\fP becomes \fB456\fP.
+E.g. \fB%num'abc123def456ghi'%\fP becomes \fB456\fP.
.SH AUTHOR
.nf
Erich Eckner <opensource at eckner dot net>