From 8f5e5726134ce5b4bd436b16f367796d851df553 Mon Sep 17 00:00:00 2001 From: Manoj Srivastava Date: Sun, 27 Apr 2014 17:54:01 -0700 Subject: Imported Upstream version 3.5-36 --- jmake/jmake.man | 39 +++++++++++++++++++++++++++++++++------ 1 file changed, 33 insertions(+), 6 deletions(-) (limited to 'jmake/jmake.man') diff --git a/jmake/jmake.man b/jmake/jmake.man index 2125c0c..afd5e65 100644 --- a/jmake/jmake.man +++ b/jmake/jmake.man @@ -1,4 +1,4 @@ -''' $Id: jmake.man 3 2006-08-25 21:39:07Z rmanfredi $ +''' $Id: jmake.man 47 2010-11-28 22:23:13Z rmanfredi $ ''' ''' Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi ''' @@ -152,6 +152,33 @@ To implement a logical OR, see below. .RE .sp .IP 3) +Makefile target tests: +.sp +.RS +.IP \(bu +?\fItarget\fR?:: keeps iff \fItarget\fR is defined. +.IP \(bu +%\fItarget\fR%:: keeps iff \fItarget\fR is not defined. +.sp +A makefile \fItarget\fR is defined as a standalone target, for instance +the +.B depend.local +target, which would be defined as: +.sp +.in +5 +.nf +depend.local: +.sp +.in -5 +.fi +Also note that it is only valid for targets defined +.I so far +in the generated makefile. It is not a predicate that can be used +to test for targets that will eventually be defined later on in the +generation. +.RE +.sp +.IP 4) Commands: .sp .RS @@ -217,9 +244,9 @@ Here is a way to implement a logical OR: .in -5 .sp Actually, this is ugly, because the text has to appear twice. -Fortunately, I did not use it. :-) +Fortunately, I did not use that construct. :-) .sp -But actually, as you have surely already guessed, the best way to +Indeed, as you have surely already guessed, the best way to implement a logical OR is to use De Morgan's Law: .sp .in +5 @@ -233,7 +260,7 @@ text /* If SYMBOL or not TOKEN */ .sp .in -5 .fi -Who said they didn't care ? ;-) +Who said they didn't care about logic? ;-) .sp .PP Expansion is done with the \fIexpand\fR command. It has been provided to @@ -440,7 +467,7 @@ therefore depend on the configuration options chosen when \fIConfigure\fR was run. .RE .sp -.IP 4) +.IP 5) Initializations: .sp .RS @@ -450,7 +477,7 @@ Initializations: ++SYMBOL : Adds to the SYMBOL macro. .RE .sp -.IP 5) +.IP 6) User-defined variables: .sp The user may define CFLAGS, LDFLAGS or DPFLAGS as additional flags to be used -- cgit v1.2.3