From 6680df87dc92eb6f1b80a068296c42295460dd25 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 30 May 2016 11:58:50 +0200 Subject: Macros auch mit "%" beenden, kleinere Korrekturen --- Make.1.in | 39 ++++++++++++++++++--------------------- 1 file changed, 18 insertions(+), 21 deletions(-) (limited to 'Make.1.in') 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 -- cgit v1.2.3-54-g00ecf