| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: make.1,v 1.277 2020/02/03 15:47:03 kamil Exp $ | | 1 | .\" $NetBSD: make.1,v 1.278 2020/02/03 22:25:17 uwe Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 1990, 1993 | | 3 | .\" Copyright (c) 1990, 1993 |
4 | .\" The Regents of the University of California. All rights reserved. | | 4 | .\" The Regents of the University of California. All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" Redistribution and use in source and binary forms, with or without | | 6 | .\" Redistribution and use in source and binary forms, with or without |
7 | .\" modification, are permitted provided that the following conditions | | 7 | .\" modification, are permitted provided that the following conditions |
8 | .\" are met: | | 8 | .\" are met: |
9 | .\" 1. Redistributions of source code must retain the above copyright | | 9 | .\" 1. Redistributions of source code must retain the above copyright |
10 | .\" notice, this list of conditions and the following disclaimer. | | 10 | .\" notice, this list of conditions and the following disclaimer. |
11 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 11 | .\" 2. Redistributions in binary form must reproduce the above copyright |
12 | .\" notice, this list of conditions and the following disclaimer in the | | 12 | .\" notice, this list of conditions and the following disclaimer in the |
13 | .\" documentation and/or other materials provided with the distribution. | | 13 | .\" documentation and/or other materials provided with the distribution. |
14 | .\" 3. Neither the name of the University nor the names of its contributors | | 14 | .\" 3. Neither the name of the University nor the names of its contributors |
| @@ -262,35 +262,35 @@ When compatibility mode is off, all comm | | | @@ -262,35 +262,35 @@ When compatibility mode is off, all comm |
262 | target are executed in a single shell invocation as opposed to the | | 262 | target are executed in a single shell invocation as opposed to the |
263 | traditional one shell invocation per line. | | 263 | traditional one shell invocation per line. |
264 | This can break traditional scripts which change directories on each | | 264 | This can break traditional scripts which change directories on each |
265 | command invocation and then expect to start with a fresh environment | | 265 | command invocation and then expect to start with a fresh environment |
266 | on the next line. | | 266 | on the next line. |
267 | It is more efficient to correct the scripts rather than turn backwards | | 267 | It is more efficient to correct the scripts rather than turn backwards |
268 | compatibility on. | | 268 | compatibility on. |
269 | .It Fl k | | 269 | .It Fl k |
270 | Continue processing after errors are encountered, but only on those targets | | 270 | Continue processing after errors are encountered, but only on those targets |
271 | that do not depend on the target whose creation caused the error. | | 271 | that do not depend on the target whose creation caused the error. |
272 | .It Fl m Ar directory | | 272 | .It Fl m Ar directory |
273 | Specify a directory in which to search for sys.mk and makefiles included | | 273 | Specify a directory in which to search for sys.mk and makefiles included |
274 | via the | | 274 | via the |
275 | .Pf < Ar file Ns > Ns -style | | 275 | .Li \&< Ns Ar file Ns Li \&> Ns -style |
276 | include statement. | | 276 | include statement. |
277 | The | | 277 | The |
278 | .Fl m | | 278 | .Fl m |
279 | option can be used multiple times to form a search path. | | 279 | option can be used multiple times to form a search path. |
280 | This path will override the default system include path: /usr/share/mk. | | 280 | This path will override the default system include path: /usr/share/mk. |
281 | Furthermore the system include path will be appended to the search path used | | 281 | Furthermore the system include path will be appended to the search path used |
282 | for | | 282 | for |
283 | .Pf \*q Ar file Ns \*q Ns -style | | 283 | .Li \*q Ns Ar file Ns Li \*q Ns -style |
284 | include statements (see the | | 284 | include statements (see the |
285 | .Fl I | | 285 | .Fl I |
286 | option). | | 286 | option). |
287 | .Pp | | 287 | .Pp |
288 | If a file or directory name in the | | 288 | If a file or directory name in the |
289 | .Fl m | | 289 | .Fl m |
290 | argument (or the | | 290 | argument (or the |
291 | .Ev MAKESYSPATH | | 291 | .Ev MAKESYSPATH |
292 | environment variable) starts with the string | | 292 | environment variable) starts with the string |
293 | .Qq \&.../ | | 293 | .Qq \&.../ |
294 | then | | 294 | then |
295 | .Nm | | 295 | .Nm |
296 | will search for the specified file or directory named in the remaining part | | 296 | will search for the specified file or directory named in the remaining part |
| @@ -1612,29 +1612,29 @@ in Bourne shell. | | | @@ -1612,29 +1612,29 @@ in Bourne shell. |
1612 | .It Cm \&# | | 1612 | .It Cm \&# |
1613 | Returns the number of words in the value. | | 1613 | Returns the number of words in the value. |
1614 | .El \" :[range] | | 1614 | .El \" :[range] |
1615 | .El | | 1615 | .El |
1616 | .Sh INCLUDE STATEMENTS, CONDITIONALS AND FOR LOOPS | | 1616 | .Sh INCLUDE STATEMENTS, CONDITIONALS AND FOR LOOPS |
1617 | Makefile inclusion, conditional structures and for loops reminiscent | | 1617 | Makefile inclusion, conditional structures and for loops reminiscent |
1618 | of the C programming language are provided in | | 1618 | of the C programming language are provided in |
1619 | .Nm . | | 1619 | .Nm . |
1620 | All such structures are identified by a line beginning with a single | | 1620 | All such structures are identified by a line beginning with a single |
1621 | dot | | 1621 | dot |
1622 | .Pq Ql \&. | | 1622 | .Pq Ql \&. |
1623 | character. | | 1623 | character. |
1624 | Files are included with either | | 1624 | Files are included with either |
1625 | .Cm \&.include Pf < Ar file Ns > | | 1625 | .Cm \&.include \&< Ns Ar file Ns Cm \&> |
1626 | or | | 1626 | or |
1627 | .Cm \&.include Pf \*q Ar file Ns \*q . | | 1627 | .Cm \&.include \&\*q Ns Ar file Ns Cm \&\*q . |
1628 | Variables between the angle brackets or double quotes are expanded | | 1628 | Variables between the angle brackets or double quotes are expanded |
1629 | to form the file name. | | 1629 | to form the file name. |
1630 | If angle brackets are used, the included makefile is expected to be in | | 1630 | If angle brackets are used, the included makefile is expected to be in |
1631 | the system makefile directory. | | 1631 | the system makefile directory. |
1632 | If double quotes are used, the including makefile's directory and any | | 1632 | If double quotes are used, the including makefile's directory and any |
1633 | directories specified using the | | 1633 | directories specified using the |
1634 | .Fl I | | 1634 | .Fl I |
1635 | option are searched before the system | | 1635 | option are searched before the system |
1636 | makefile directory. | | 1636 | makefile directory. |
1637 | For compatibility with other versions of | | 1637 | For compatibility with other versions of |
1638 | .Nm | | 1638 | .Nm |
1639 | .Ql include file ... | | 1639 | .Ql include file ... |
1640 | is also accepted. | | 1640 | is also accepted. |