xref: /netbsd-src/usr.bin/make/make.1 (revision ae9172d6cd9432a6a1a56760d86b32c57a66c39c)
1.\" Copyright (c) 1990 The Regents of the University of California.
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\"    notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\"    notice, this list of conditions and the following disclaimer in the
11.\"    documentation and/or other materials provided with the distribution.
12.\" 3. All advertising materials mentioning features or use of this software
13.\"    must display the following acknowledgement:
14.\"	This product includes software developed by the University of
15.\"	California, Berkeley and its contributors.
16.\" 4. Neither the name of the University nor the names of its contributors
17.\"    may be used to endorse or promote products derived from this software
18.\"    without specific prior written permission.
19.\"
20.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\"	from: @(#)make.1	5.7 (Berkeley) 7/24/91
33.\"	$Id: make.1,v 1.6 1994/03/05 00:34:56 cgd Exp $
34.\"
35.Dd July 24, 1991
36.Dt MAKE 1
37.Os
38.Sh NAME
39.Nm make
40.Nd maintain program dependencies
41.Sh SYNOPSIS
42.Nm make
43.Op Fl eiknqrstv
44.Op Fl D Ar variable
45.Op Fl d Ar flags
46.Op Fl f Ar makefile
47.Op Fl I Ar directory
48.Bk -words
49.Op Fl j Ar max_jobs
50.Ek
51.Op Ar variable=value
52.Op Ar target ...
53.Sh DESCRIPTION
54.Nm Make
55is a program designed to simplify the maintenance of other programs.
56Its input is a list of specifications as to the files upon which programs
57and other files depend.
58If the file
59.Ql Pa makefile
60exists, it is read for this list of specifications.
61If it does not exist, the file
62.Ql Pa Makefile
63is read.
64If the file
65.Ql Pa .depend
66exists, it is read (see
67.Xr mkdep 1) .
68.Pp
69This manual page is intended as a reference document only.
70For a more thorough description of
71.Nm make
72and makefiles, please refer to
73.%T "Make \- A Tutorial" .
74.Pp
75The options are as follows:
76.Bl -tag -width Ds
77.It Fl D Ar variable
78Define Ar variable
79to be 1, in the global context.
80.It Fl d Ar flags
81Turn on debugging, and specify which portions of
82.Nm make
83are to print debugging information.
84.Ar Flags
85is one or more of the following:
86.Bl -tag -width Ds
87.It Ar A
88Print all possible debugging information;
89equivalent to specifying all of the debugging flags.
90.It Ar a
91Print debugging information about archive searching and caching.
92.It Ar c
93Print debugging information about conditional evaluation.
94.It Ar d
95Print debugging information about directory searching and caching.
96.It Ar "g1"
97Print the input graph before making anything.
98.It Ar "g2"
99Print the input graph after making everything, or before exiting
100on error.
101.It Ar j
102Print debugging information about running multiple shells.
103.It Ar m
104Print debugging information about making targets, including modification
105dates.
106.It Ar s
107Print debugging information about suffix-transformation rules.
108.It Ar t
109Print debugging information about target list maintenance.
110.It Ar v
111Print debugging information about variable assignment.
112.El
113.It Fl e
114Specify that environmental variables override macro assignments within
115makefiles.
116.It Fl f Ar makefile
117Specify a makefile to read instead of the default
118.Ql Pa makefile
119and
120.Ql Pa Makefile .
121If
122.Ar makefile
123is
124.Ql Fl ,
125standard input is read.
126Multiple makefile's may be specified, and are read in the order specified.
127.It Fl I Ar directory
128Specify a directory in which to search for makefiles and included makefiles.
129The system makefile directory is automatically included as part of this
130list.
131.It Fl i
132Ignore non-zero exit of shell commands in the makefile.
133Equivalent to specifying
134.Ql Fl
135before each command line in the makefile.
136.It Fl j Ar max_jobs
137Specify the maximum number of jobs that
138.Nm make
139may have running at any one time.
140.It Fl k
141Continue processing after errors are encountered, but only on those targets
142that do not depend on the target whose creation caused the error.
143.It Fl n
144Display the commands that would have been executed, but do not actually
145execute them.
146.It Fl q
147Do not execute any commands, but exit 0 if the specified targets are
148up-to-date and 1, otherwise.
149.It Fl r
150Do not use the built-in rules specified in the system makefile.
151.It Fl s
152Do not echo any commands as they are executed.
153Equivalent to specifying
154.Ql Ic @
155before each command line in the makefile.
156.It Fl t
157Rather than re-building a target as specified in the makefile, create it
158or update its modification time to make it appear up-to-date.
159.It Ar variable=value
160Set the value of the variable
161.Ar variable
162to
163.Ar value .
164.El
165.Pp
166There are seven different types of lines in a makefile: file dependency
167specifications, shell commands, variable assignments, include statements,
168conditional directives, for loops, and comments.
169.Pp
170In general, lines may be continued from one line to the next by ending
171them with a backslash
172.Pq Ql \e .
173The trailing newline character and initial whitespace on the following
174line are compressed into a single space.
175.Sh FILE DEPENDENCY SPECIFICATIONS
176Dependency lines consist of one or more targets, an operator, and zero
177or more sources.
178This creates a relationship where the targets ``depend'' on the sources
179and are usually created from them.
180The exact relationship between the target and the source is determined
181by the operator that separates them.
182The three operators are as follows:
183.Bl -tag -width flag
184.It Ic \&:
185A target is considered out-of-date if its modification time is less than
186those of any of its sources.
187Sources for a target accumulate over dependency lines when this operator
188is used.
189The target is removed if
190.Nm make
191is interrupted.
192.It Ic \&!
193Targets are always re-created, but not until all sources have been
194examined and re-created as necessary.
195Sources for a target accumulate over dependency lines when this operator
196is used.
197The target is removed if
198.Nm make
199is interrupted.
200.It Ic \&::
201If no sources are specified, the target is always re-created.
202Otherwise, a target is considered out-of-date if any of its sources has
203been modified more recently than the target.
204Sources for a target do not accumulate over dependency lines when this
205operator is used.
206The target will not be removed if
207.Nm make
208is interrupted.
209.El
210.Pp
211Targets and sources may contain the shell wildcard values
212.Ql ? ,
213.Ql * ,
214.Ql []
215and
216.Ql {} .
217The values
218.Ql ? ,
219.Ql *
220and
221.Ql []
222may only be used as part of the final
223component of the target or source, and must be used to describe existing
224files.
225The value
226.Ql {}
227need not necessarily be used to describe existing files.
228Expansion is in directory order, not alphabetically as done in the shell.
229.Sh SHELL COMMANDS
230Each target may have associated with it a series of shell commands, normally
231used to create the target.
232Each of the commands in this script
233.Em must
234be preceded by a tab.
235While any target may appear on a dependency line, only one of these
236dependencies may be followed by a creation script, unless the
237.Ql Ic ::
238operator is used.
239.Pp
240If the first or first two characters of the command line are
241.Ql Ic @
242and/or
243.Ql Ic \- ,
244the command is treated specially.
245A
246.Ql Ic @
247causes the command not to be echoed before it is executed.
248A
249.Ql Ic \-
250causes any non-zero exit status of the command line to be ignored.
251.Sh VARIABLE ASSIGNMENTS
252Variables in make are much like variables in the shell, and, by tradition,
253consist of all upper-case letters.
254The five operators that can be used to assign values to variables are as
255follows:
256.Bl -tag -width Ds
257.It Ic \&=
258Assign the value to the variable.
259Any previous value is overridden.
260.It Ic \&+=
261Append the value to the current value of the variable.
262.It Ic \&?=
263Assign the value to the variable if it is not already defined.
264.It Ic \&:=
265Assign with expansion, i.e. expand the value before assigning it
266to the variable.
267Normally, expansion is not done until the variable is referenced.
268.It Ic \&!=
269Expand the value and pass it to the shell for execution and assign
270the result to the variable.
271Any newlines in the result are replaced with spaces.
272.El
273.Pp
274Any white-space before the assigned
275.Ar value
276is removed; if the value is being appended, a single space is inserted
277between the previous contents of the variable and the appended value.
278.Pp
279Variables are expanded by surrounding the variable name with either
280curly braces
281.Pq Ql {}
282or parenthesis
283.Pq Ql ()
284and preceding it with
285a dollar sign
286.Pq Ql \&$ .
287If the variable name contains only a single letter, the surrounding
288braces or parenthesis are not required.
289This shorter form is not recommended.
290.Pp
291Variable substitution occurs at two distinct times, depending on where
292the variable is being used.
293Variables in dependency lines are expanded as the line is read.
294Variables in shell commands are expanded when the shell command is
295executed.
296.Pp
297The four different classes of variables (in order of increasing precedence)
298are:
299.Bl -tag -width Ds
300.It Environment variables
301Variables defined as part of
302.Nm make Ns 's
303environment.
304.It Global variables
305Variables defined in the makefile or in included makefiles.
306.It Command line variables
307Variables defined as part of the command line.
308.It Local variables
309Variables that are defined specific to a certain target.
310The seven local variables are as follows:
311.Bl -tag -width ".ARCHIVE"
312.It Va .ALLSRC
313The list of all sources for this target; also known as
314.Ql Va \&> .
315.It Va .ARCHIVE
316The name of the archive file.
317.It Va .IMPSRC
318The name/path of the source from which the target is to be transformed
319(the ``implied'' source); also known as
320.Ql Va \&< .
321.It Va .MEMBER
322The name of the archive member.
323.It Va .OODATE
324The list of sources for this target that were deemed out-of-date; also
325known as
326.Ql Va \&? .
327.It Va .PREFIX
328The file prefix of the file, containing only the file portion, no suffix
329or preceding directory components; also known as
330.Ql Va * .
331.It Va .TARGET
332The name of the target; also known as
333.Ql Va @ .
334.El
335.Pp
336The shorter forms
337.Ql Va @ ,
338.Ql Va ? ,
339.Ql Va \&>
340and
341.Ql Va *
342are permitted for backward
343compatibility with historical makefiles and are not recommended.
344The six variables
345.Ql Va "@F" ,
346.Ql Va "@D" ,
347.Ql Va "<F" ,
348.Ql Va "<D" ,
349.Ql Va "*F"
350and
351.Ql Va "*D"
352are
353permitted for compatibility with
354.At V
355makefiles and are not recommended.
356.Pp
357Four of the local variables may be used in sources on dependency lines
358because they expand to the proper value for each target on the line.
359These variables are
360.Ql Va .TARGET ,
361.Ql Va .PREFIX ,
362.Ql Va .ARCHIVE ,
363and
364.Ql Va .MEMBER .
365.Pp
366In addition,
367.Nm make
368sets or knows about the following variables:
369.Bl -tag -width MAKEFLAGS
370.It Va \&$
371A single dollar sign
372.Ql \&$ ,
373i.e.
374.Ql \&$$
375expands to a single dollar
376sign.
377.It Va .MAKE
378The name that
379.Nm make
380was executed with
381.Pq Va argv Op 0
382.It Va .CURDIR
383A path to the directory where
384.Nm make
385was executed.
386.It Va .OBJDIR
387A path to the directory where the targets are built.
388.It Ev MAKEFLAGS
389The environment variable
390.Ql Ev MAKEFLAGS
391may contain anything that
392may be specified on
393.Nm make Ns 's
394command line.
395Anything specified on
396.Nm make Ns 's
397command line is appended to the
398.Ql Ev MAKEFLAGS
399variable which is then
400entered into the environment for all programs which
401.Nm make
402executes.
403.El
404.Pp
405Variable expansion may be modified to select or modify each word of the
406variable (where a ``word'' is white-space delimited sequence of characters).
407The general format of a variable expansion is as follows:
408.Pp
409.Dl {variable[:modifier[:...]]}
410.Pp
411Each modifier begins with a colon and one of the following
412special characters.
413The colon may be escaped with a backslash
414.Pq Ql \e .
415.Bl -tag -width Cm E\&
416.It Cm E
417Replaces each word in the variable with its suffix.
418.It Cm H
419Replaces each word in the variable with everything but the last component.
420.It Cm M Ns Ar pattern
421Select only those words that match the rest of the modifier.
422The standard shell wildcard characters
423.Pf ( Ql * ,
424.Ql ? ,
425and
426.Ql Op )
427may
428be used.
429The wildcard characters may be escaped with a backslash
430.Pq Ql \e .
431.It Cm N Ns Ar pattern
432This is identical to
433.Ql Cm M ,
434but selects all words which do not match
435the rest of the modifier.
436.It Cm R
437Replaces each word in the variable with everything but its suffix.
438.Sm off
439.It Cm S No \&/ Ar old_pattern Xo
440.No \&/ Ar new_pattern
441.No \&/ Op Cm g
442.Xc
443.Sm on
444Modify the first occurrence of
445.Ar old_pattern
446in each word to be replaced with
447.Ar new_pattern .
448If a
449.Ql g
450is appended to the last slash of the pattern, all occurrences
451in each word are replaced.
452If
453.Ar old_pattern
454begins with a carat
455.Pq Ql ^ ,
456.Ar old_pattern
457is anchored at the beginning of each word.
458If
459.Ar old_pattern
460ends with a dollar sign
461.Pq Ql \&$ ,
462it is anchored at the end of each word.
463Inside
464.Ar new_string ,
465an ampersand
466.Pq Ql &
467is replaced by
468.Ar old_pattern .
469Any character may be used as a delimiter for the parts of the modifier
470string.
471The anchoring, ampersand and delimiter characters may be escaped with a
472backslash
473.Pq Ql \e .
474.Pp
475Variable expansion occurs in the normal fashion inside both
476.Ar old_string
477and
478.Ar new_string
479with the single exception that a backslash is used to prevent the expansion
480of a dollar sign
481.Pq Ql \&$
482not a preceding dollar sign as is usual.
483.It Cm T
484Replaces each word in the variable with its last component.
485.It Ar old_string=new_string
486This is the
487.At V
488style variable substitution.
489It must be the last modifier specified.
490If
491.Ar old_string
492or
493.Ar new_string
494do not contain the pattern matching character
495.Ar %
496then it is assumed that they are
497anchored at the end of each word, so only suffixes or entire
498words may be replaced. Otherwise
499.Ar %
500is the substring of
501.Ar old_string
502to be replaced in
503.Ar new_string
504.El
505.Sh INCLUDE STATEMENTS, CONDITIONALS AND FOR LOOPS
506Makefile inclusion, conditional structures and for loops  reminiscent
507of the C programming language are provided in
508.Nm make .
509All such structures are identified by a line beginning with a single
510dot
511.Pq Ql \&.
512character.
513Files are included with either
514.Ql .include <file>
515or
516.Ql .include \*qfile\*q .
517Variables between the angle brackets or double quotes are expanded
518to form the file name.
519If angle brackets are used, the included makefile is expected to be in
520the system makefile directory.
521If double quotes are used, the including makefile's directory and any
522directories specified using the
523.Fl I
524option are searched before the system
525makefile directory.
526.Pp
527Conditional expressions are also preceded by a single dot as the first
528character of a line.
529The possible conditionals are as follows:
530.Bl -tag -width Ds
531.It Ic .undef Ar variable
532Un-define the specified global variable.
533Only global variables may be un-defined.
534.It Xo
535.Ic \&.if
536.Oo \&! Oc Ns Ar expression
537.Op Ar operator expression ...
538.Xc
539Test the value of an expression.
540.It Xo
541.Ic .ifdef
542.Oo \&! Oc Ns Ar variable
543.Op Ar operator variable ...
544.Xc
545Test the value of an variable.
546.It Xo
547.Ic .ifndef
548.Oo \&! Oc Ns Ar variable
549.Op Ar operator variable ...
550.Xc
551Test the value of an variable.
552.It Xo
553.Ic .ifmake
554.Oo \&! Oc Ns Ar target
555.Op Ar operator target ...
556.Xc
557Test the the target being built.
558.It Xo
559.Ic .ifnmake
560.Oo \&! Oc Ar target
561.Op Ar operator target ...
562.Xc
563Test the target being built.
564.It Ic .else
565Reverse the sense of the last conditional.
566.It Xo
567.Ic .elif
568.Oo \&! Oc Ar expression
569.Op Ar operator expression ...
570.Xc
571A combination of
572.Ql Ic .else
573followed by
574.Ql Ic .if .
575.It Xo
576.Ic .elifdef
577.Oo \&! Oc Ns Ar variable
578.Op Ar operator variable ...
579.Xc
580A combination of
581.Ql Ic .else
582followed by
583.Ql Ic .ifdef .
584.It Xo
585.Ic .elifndef
586.Oo \&! Oc Ns Ar variable
587.Op Ar operator variable ...
588.Xc
589A combination of
590.Ql Ic .else
591followed by
592.Ql Ic .ifndef .
593.It Xo
594.Ic .elifmake
595.Oo \&! Oc Ns Ar target
596.Op Ar operator target ...
597.Xc
598A combination of
599.Ql Ic .else
600followed by
601.Ql Ic .ifmake .
602.It Xo
603.Ic .elifnmake
604.Oo \&! Oc Ns Ar target
605.Op Ar operator target ...
606.Xc
607A combination of
608.Ql Ic .else
609followed by
610.Ql Ic .ifnmake .
611.It Ic .endif
612End the body of the conditional.
613.El
614.Pp
615The
616.Ar operator
617may be any one of the following:
618.Bl -tag -width "Cm XX"
619.It Cm \&|\&|
620logical OR
621.It Cm \&&&
622Logical
623.Tn AND ;
624of higher precedence than
625.Dq .
626.El
627.Pp
628As in C,
629.Nm make
630will only evaluate a conditional as far as is necessary to determine
631its value.
632Parenthesis may be used to change the order of evaluation.
633The boolean operator
634.Ql Ic \&!
635may be used to logically negate an entire
636conditional.
637It is of higher precedence than
638.Ql Ic \&&& .
639.Pp
640The value of
641.Ar expression
642may be any of the following:
643.Bl -tag -width Ic defined
644.It Ic defined
645Takes a variable name as an argument and evaluates to true if the variable
646has been defined.
647.It Ic make
648Takes a target name as an argument and evaluates to true if the target
649was specified as part of
650.Nm make Ns 's
651command line or was declared the default target (either implicitly or
652explicitly, see
653.Va .MAIN )
654before the line containing the conditional.
655.It Ic empty
656Takes a variable, with possible modifiers, and evaluates to true if
657the expansion of the variable would result in an empty string.
658.It Ic exists
659Takes a file name as an argument and evaluates to true if the file exists.
660The file is searched for on the system search path (see
661.Va .PATH ) .
662.It Ic target
663Takes a target name as an argument and evaluates to true if the target
664has been defined.
665.El
666.Pp
667.Ar Expression
668may also be an arithmetic or string comparison.  Variable expansion is
669performed on both sides of the comparison, after which the integral
670values are compared.  A value is interpreted as hexadecimal if it is
671preceded by 0x, otherwise it is decimal; octal numbers are not supported.
672The standard C relational operators are all supported.  If after
673variable expansion, either the left or right hand side of a
674.Ql Ic ==
675or
676.Ql Ic "!="
677operator is not an integral value, then
678string comparison is performed between the expanded
679variables.
680If no relational operator is given, it is assumed that the expanded
681variable is being compared against 0.
682.Pp
683When
684.Nm make
685is evaluating one of these conditional expression, and it encounters
686a word it doesn't recognize, either the ``make'' or ``defined''
687expression is applied to it, depending on the form of the conditional.
688If the form is
689.Ql Ic .ifdef
690or
691.Ql Ic .ifndef ,
692the ``defined'' expression
693is applied.
694Similarly, if the form is
695.Ql Ic .ifmake
696or
697.Ql Ic .ifnmake , the ``make''
698expression is applied.
699.Pp
700If the conditional evaluates to true the parsing of the makefile continues
701as before.
702If it evaluates to false, the following lines are skipped.
703In both cases this continues until a
704.Ql Ic .else
705or
706.Ql Ic .endif
707is found.
708.Pp
709For loops are typically used to apply a set of rules to a list of files.
710The syntax of a for loop is:
711.Bl -tag -width Ds
712.It Xo
713.Ic \&.for
714.Ar variable
715.Ic in
716.Ar expression
717.Xc
718.It Xo
719<make-rules>
720.Xc
721.It Xo
722.Ic \&.endfor
723.Xc
724.El
725After the for
726.Ic expression
727is evaluated, it is split into words. The
728iteration
729.Ic variable
730is successively set to each word, and substituted in the
731.Ic make-rules
732inside the body of the for loop.
733.Sh COMMENTS
734Comments begin with a hash
735.Pq Ql \&#
736character, anywhere but in a shell
737command line, and continue to the end of the line.
738.Sh SPECIAL SOURCES
739.Bl -tag -width Ic .IGNORE
740.It Ic .IGNORE
741Ignore any errors from the commands associated with this target, exactly
742as if they all were preceded by a dash
743.Pq Ql \- .
744.It Ic .MAKE
745Execute the commands associated with this target even if the
746.Fl n
747or
748.Fl t
749options were specified.
750Normally used to mark recursive
751.Nm make Ns 's .
752.It Ic .NOTMAIN
753Normally
754.Nm make
755selects the first target it encounters as the default target to be built
756if no target was specified.
757This source prevents this target from being selected.
758.It Ic .OPTIONAL
759If a target is marked with this attribute and
760.Nm make
761can't figure out how to create it, it will ignore this fact and assume
762the file isn't needed or already exists.
763.It Ic .PRECIOUS
764When
765.Nm make
766is interrupted, it removes any partially made targets.
767This source prevents the target from being removed.
768.It Ic .SILENT
769Do not echo any of the commands associated with this target, exactly
770as if they all were preceded by an at sign
771.Pq Ql @ .
772.It Ic .USE
773Turn the target into
774.Nm make Ns 's .
775version of a macro.
776When the target is used as a source for another target, the other target
777acquires the commands, sources, and attributes (except for
778.Ic .USE )
779of the
780source.
781If the target already has commands, the
782.Ic .USE
783target's commands are appended
784to them.
785.El
786.Sh "SPECIAL TARGETS"
787Special targets may not be included with other targets, i.e. they must be
788the only target specified.
789.Bl -tag -width Ic .BEGIN
790.It Ic .BEGIN
791Any command lines attached to this target are executed before anything
792else is done.
793.It Ic .DEFAULT
794This is sort of a
795.Ic .USE
796rule for any target (that was used only as a
797source) that
798.Nm make
799can't figure out any other way to create.
800Only the shell script is used.
801The
802.Ic .IMPSRC
803variable of a target that inherits
804.Ic .DEFAULT Ns 's
805commands is set
806to the target's own name.
807.It Ic .END
808Any command lines attached to this target are executed after everything
809else is done.
810.It Ic .IGNORE
811Mark each of the sources with the
812.Ic .IGNORE
813attribute.
814If no sources are specified, this is the equivalent of specifying the
815.Fl i
816option.
817.It Ic .INTERRUPT
818If
819.Nm make
820is interrupted, the commands for this target will be executed.
821.It Ic .MAIN
822If no target is specified when
823.Nm make
824is invoked, this target will be built.
825.It Ic .MAKEFLAGS
826This target provides a way to specify flags for
827.Nm make
828when the makefile is used.
829The flags are as if typed to the shell, though the
830.Fl f
831option will have
832no effect.
833.It Ic .PATH
834The sources are directories which are to be searched for files not
835found in the current directory.
836If no sources are specified, any previously specified directories are
837deleted.
838.It Ic .PRECIOUS
839Apply the
840.Ic .PRECIOUS
841attribute to any specified sources.
842If no sources are specified, the
843.Ic .PRECIOUS
844attribute is applied to every
845target in the file.
846.It Ic .SILENT
847Apply the
848.Ic .SILENT
849attribute to any specified sources.
850If no sources are specified, the
851.Ic .SILENT
852attribute is applied to every
853command in the file.
854.It Ic .SUFFIXES
855Each source specifies a suffix to
856.Nm make .
857If no sources are specified, any previous specified suffices are deleted.
858.Sh ENVIRONMENT
859.Nm Make
860utilizes the following environment variables, if they exist:
861.Ev MAKE ,
862.Ev MAKEFLAGS
863and
864.Ev MAKEOBJDIR .
865.Sh FILES
866.Bl -tag -width /usr/share/mk -compact
867.It .depend
868list of dependencies
869.It Makefile
870list of dependencies
871.It makefile
872list of dependencies
873.It sys.mk
874system makefile
875.It /usr/share/mk
876system makefile directory
877.El
878.Sh SEE ALSO
879.Xr mkdep 1
880.Sh HISTORY
881A
882.Nm Make
883command appeared in
884.At v7 .
885