Changeset 24 for branches/FREEBSD/src/kmk/make.1
- Timestamp:
- Nov 26, 2002, 10:24:54 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/FREEBSD/src/kmk/make.1
r10 r24 30 30 .\" SUCH DAMAGE. 31 31 .\" 32 .\" @(#)make.1 8.8 (Berkeley) 6/13/9533 .\" $FreeBSD: src/usr.bin/make/make.1,v 1. 59 2002/09/27 09:21:07 ruExp $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 $ 34 34 .\" 35 .Dd June 13, 199535 .Dd March 19, 1994 36 36 .Dt MAKE 1 37 37 .Os … … 42 42 .Nm 43 43 .Op Fl BPSXeiknqrstv 44 .Op Fl C Ar directory45 44 .Op Fl D Ar variable 46 45 .Op Fl d Ar flags … … 63 62 files and programs. 64 63 The first of 65 .Ql Pa BSDmakefile ,66 64 .Ql Pa makefile 67 65 and … … 90 88 .Fl j 91 89 is used. 92 .It Fl C Ar directory93 Change to94 .Ar directory95 while running.96 90 .It Fl D Ar variable 97 91 Define … … 178 172 that do not depend on the target whose creation caused the error. 179 173 .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. 174 Specify a directory in which to search for sys.mk and makefiles included 175 via the <...> style. 183 176 Multiple directories can be added to form a search path. 184 177 This path will override the default system include path: … … 519 512 is unable to change into any of the remaining three directories, 520 513 then the current directory is used. 521 .Pp522 The523 .Nm524 utility sets525 .Va .OBJDIR526 to the canonical path given by527 .Xr getcwd 3 .528 514 .It Va .MAKEFLAGS 529 515 The environment variable … … 551 537 .Va .MAKEFLAGS 552 538 provided for backward compatibility. 539 .It Ev PWD 540 Alternate path to the current directory. 541 Supported if built with WANT_ENV_PWD defined. 542 .Nm 543 normally sets 544 .Ql Va .CURDIR 545 to the canonical path given by 546 .Xr getcwd 3 . 547 However, if the environment variable 548 .Ev PWD 549 is set and gives a path to the current directory, then 550 .Nm 551 sets 552 .Ql Va .CURDIR 553 to the value of 554 .Ev PWD 555 instead. 556 .Ev PWD 557 is always set to the value of 558 .Ql Va .OBJDIR 559 for all programs which 560 .Nm 561 executes. 553 562 .It Va .TARGETS 554 563 List of targets … … 580 589 These directories will be searched for source files by 581 590 .Nm 582 after it has finished parsing all input makefiles. 591 after 592 .Nm 593 has finished parsing all input makefiles. 583 594 .El 584 595 .Pp … … 700 711 .Pq Ql \&$ , 701 712 not a preceding dollar sign as is usual. 713 .It Cm T 714 Replaces each word in the variable with its last component. 702 715 .It Ar old_string=new_string 703 716 This is the … … 720 733 to be replaced in 721 734 .Ar new_string 722 .It Cm T723 Replaces each word in the variable with its last component.724 735 .It Cm U 725 736 Converts variable to upper-case letters. … … 853 864 .Bl -tag -width "Cm XX" 854 865 .It Cm \&|\&| 855 logical 856 .Tn OR 866 logical OR 857 867 .It Cm \&&& 858 868 Logical … … 1107 1117 Disable parallel mode. 1108 1118 .It Ic .NO_PARALLEL 1109 Same as above, for compatibility with other 1110 .Nm pmake 1111 variants. 1119 Same as above, for compatibility with other pmake variants. 1112 1120 .It Ic .ORDER 1113 1121 The named targets are made in sequence. … … 1191 1199 .Ev MAKEFLAGS , 1192 1200 .Ev MAKEOBJDIR , 1201 .Ev MAKEOBJDIRPREFIX , 1193 1202 and 1194 .Ev MAKEOBJDIRPREFIX.1203 .Ev PWD . 1195 1204 .Sh FILES 1196 1205 .Bl -tag -width /usr/share/doc/psd/12.make -compact … … 1245 1254 .Pp 1246 1255 For loops are expanded before tests, so a fragment such as: 1247 .Bd -literal -offset indent1256 .Bd -literal 1248 1257 \&.for TMACHINE in ${SHARED_ARCHS} 1249 1258 \&.if ${TMACHINE} = ${MACHINE} … … 1252 1261 \&.endfor 1253 1262 .Ed 1254 .Pp1255 1263 won't work, and should be rewritten the other way around. 1256 .Pp1257 The parsing code is broken with respect to handling a semicolon1258 after a colon, so a fragment like this will fail:1259 .Bd -literal -offset indent1260 HDRS= foo.h bar.h1261 1262 all:1263 \&.for h in ${HDRS:S;^;${.CURDIR}/;}1264 ...1265 \&.endfor1266 .Ed1267 1264 .Sh SEE ALSO 1268 1265 .Xr mkdep 1 , … … 1276 1273 A 1277 1274 .Nm 1278 command appeared in PWB UNIX. 1275 command appeared in 1276 .At v7 .
Note:
See TracChangeset
for help on using the changeset viewer.