Ignore:
Timestamp:
Nov 26, 2002, 10:24:54 PM (23 years ago)
Author:
bird
Message:

Import of RELENG_4_7_0_RELEASE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/FREEBSD/src/kmk/make.1

    r10 r24  
    3030.\" SUCH DAMAGE.
    3131.\"
    32 .\"     @(#)make.1      8.8 (Berkeley) 6/13/95
    33 .\" $FreeBSD: src/usr.bin/make/make.1,v 1.59 2002/09/27 09:21:07 ru Exp $
     32.\"     from: @(#)make.1        8.4 (Berkeley) 3/19/94
     33.\" $FreeBSD: src/usr.bin/make/make.1,v 1.29.2.14 2002/09/09 19:06:16 archie Exp $
    3434.\"
    35 .Dd June 13, 1995
     35.Dd March 19, 1994
    3636.Dt MAKE 1
    3737.Os
     
    4242.Nm
    4343.Op Fl BPSXeiknqrstv
    44 .Op Fl C Ar directory
    4544.Op Fl D Ar variable
    4645.Op Fl d Ar flags
     
    6362files and programs.
    6463The first of
    65 .Ql Pa BSDmakefile ,
    6664.Ql Pa makefile
    6765and
     
    9088.Fl j
    9189is used.
    92 .It Fl C Ar directory
    93 Change to
    94 .Ar directory
    95 while running.
    9690.It Fl D Ar variable
    9791Define
     
    178172that do not depend on the target whose creation caused the error.
    179173.It Fl m Ar directory
    180 Specify a directory in which to search for
    181 .Pa sys.mk
    182 and makefiles included via the <...> style.
     174Specify a directory in which to search for sys.mk and makefiles included
     175via the <...> style.
    183176Multiple directories can be added to form a search path.
    184177This path will override the default system include path:
     
    519512is unable to change into any of the remaining three directories,
    520513then the current directory is used.
    521 .Pp
    522 The
    523 .Nm
    524 utility sets
    525 .Va .OBJDIR
    526 to the canonical path given by
    527 .Xr getcwd 3 .
    528514.It Va .MAKEFLAGS
    529515The environment variable
     
    551537.Va .MAKEFLAGS
    552538provided for backward compatibility.
     539.It Ev PWD
     540Alternate path to the current directory.
     541Supported if built with WANT_ENV_PWD defined.
     542.Nm
     543normally sets
     544.Ql Va .CURDIR
     545to the canonical path given by
     546.Xr getcwd 3 .
     547However, if the environment variable
     548.Ev PWD
     549is set and gives a path to the current directory, then
     550.Nm
     551sets
     552.Ql Va .CURDIR
     553to the value of
     554.Ev PWD
     555instead.
     556.Ev PWD
     557is always set to the value of
     558.Ql Va .OBJDIR
     559for all programs which
     560.Nm
     561executes.
    553562.It Va .TARGETS
    554563List of targets
     
    580589These directories will be searched for source files by
    581590.Nm
    582 after it has finished parsing all input makefiles.
     591after
     592.Nm
     593has finished parsing all input makefiles.
    583594.El
    584595.Pp
     
    700711.Pq Ql \&$ ,
    701712not a preceding dollar sign as is usual.
     713.It Cm T
     714Replaces each word in the variable with its last component.
    702715.It Ar old_string=new_string
    703716This is the
     
    720733to be replaced in
    721734.Ar new_string
    722 .It Cm T
    723 Replaces each word in the variable with its last component.
    724735.It Cm U
    725736Converts variable to upper-case letters.
     
    853864.Bl -tag -width "Cm XX"
    854865.It Cm \&|\&|
    855 logical
    856 .Tn OR
     866logical OR
    857867.It Cm \&&&
    858868Logical
     
    11071117Disable parallel mode.
    11081118.It Ic .NO_PARALLEL
    1109 Same as above, for compatibility with other
    1110 .Nm pmake
    1111 variants.
     1119Same as above, for compatibility with other pmake variants.
    11121120.It Ic .ORDER
    11131121The named targets are made in sequence.
     
    11911199.Ev MAKEFLAGS ,
    11921200.Ev MAKEOBJDIR ,
     1201.Ev MAKEOBJDIRPREFIX ,
    11931202and
    1194 .Ev MAKEOBJDIRPREFIX .
     1203.Ev PWD .
    11951204.Sh FILES
    11961205.Bl -tag -width /usr/share/doc/psd/12.make -compact
     
    12451254.Pp
    12461255For loops are expanded before tests, so a fragment such as:
    1247 .Bd -literal -offset indent
     1256.Bd -literal
    12481257\&.for TMACHINE in ${SHARED_ARCHS}
    12491258\&.if ${TMACHINE} = ${MACHINE}
     
    12521261\&.endfor
    12531262.Ed
    1254 .Pp
    12551263won't work, and should be rewritten the other way around.
    1256 .Pp
    1257 The parsing code is broken with respect to handling a semicolon
    1258 after a colon, so a fragment like this will fail:
    1259 .Bd -literal -offset indent
    1260 HDRS=   foo.h bar.h
    1261 
    1262 all:
    1263 \&.for h in ${HDRS:S;^;${.CURDIR}/;}
    1264      ...
    1265 \&.endfor
    1266 .Ed
    12671264.Sh SEE ALSO
    12681265.Xr mkdep 1 ,
     
    12761273A
    12771274.Nm
    1278 command appeared in PWB UNIX.
     1275command appeared in
     1276.At v7 .
Note: See TracChangeset for help on using the changeset viewer.