mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2025-01-30 16:41:44 +00:00
(How Make Works): Clearify that default goal is only first target.
This commit is contained in:
parent
9da3bccd89
commit
692858922f
1 changed files with 12 additions and 5 deletions
17
make.texinfo
17
make.texinfo
|
@ -632,11 +632,10 @@ from @code{rm} or any other command.
|
|||
@cindex processing a makefile
|
||||
@cindex makefile, how @code{make} processes
|
||||
|
||||
By default, @code{make} starts with the first rule (not counting rules
|
||||
whose target names start with @samp{.}). This is called the
|
||||
@dfn{default goal}. (@dfn{Goals} are the targets that @code{make}
|
||||
strives ultimately to update. @xref{Goals, , Arguments to Specify the
|
||||
Goals}.)
|
||||
By default, @code{make} starts with the first target (not targets whose
|
||||
names start with @samp{.}). This is called the @dfn{default goal}.
|
||||
(@dfn{Goals} are the targets that @code{make} strives ultimately to
|
||||
update. @xref{Goals, , Arguments to Specify the Goals}.)
|
||||
@cindex default goal
|
||||
@cindex goal, default
|
||||
@cindex goal
|
||||
|
@ -3565,6 +3564,14 @@ from getting implicit commands (from implicit rules or the
|
|||
@code{.DEFAULT} special target; @pxref{Implicit Rules} and
|
||||
@pxref{Last Resort, ,Defining Last-Resort Default Rules}).@refill
|
||||
|
||||
@c !!! another reason is for canonical stamp files:
|
||||
@ignore
|
||||
foo: stamp-foo ;
|
||||
stamp-foo: foo.in
|
||||
create foo frm foo.in
|
||||
touch $@
|
||||
@end ignore
|
||||
|
||||
You may be inclined to define empty command strings for targets that are
|
||||
not actual files, but only exist so that their dependencies can be
|
||||
remade. However, this is not the best way to do that, because the
|
||||
|
|
Loading…
Reference in a new issue