Maybe a bug in make manual. https://www.gnu.org/software/make/manual/make.html#Overriding-Makefiles

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Maybe a bug in make manual. https://www.gnu.org/software/make/manual/make.html#Overriding-Makefiles

牛啊

The last 2 paragraph of chapter [3.5 How Makefiles are Remade ]

>>>> Original Manul >>>>>>>>>>>>
However, on occasion you might actually wish to prevent updating of even the makefiles. You can do this by specifying the makefiles as goals in the command line as well as specifying them as makefiles. When the makefile name is specified explicitly as a goal, the options -tand so on do apply to them.

Thus, ‘make -f mfile -n mfile foo’ would read the makefile mfile, print the recipe needed to update it without actually running it, and then print the recipe needed to update foo without running that. The recipe for foo will be the one specified by the existing contents of mfile.

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

I think the option you want to explain is '-n', rather than '-t'. So the sentance should be:

 >>>> When the makefile name is specified explicitly as a goal, the options -n’ and so on do apply to them. <<<<<<<


I'm not sure whether I'm right , thank you for your time, that's all.

Best regards!

Reply | Threaded
Open this post in threaded view
|

Re: Maybe a bug in make manual. https://www.gnu.org/software/make/manual/make.html#Overriding-Makefiles

Martin Dorey-2
I think the text is as intended.  The previous paragraph talks about the -t, -n and -q switches as being treated similarly.  The example could use any but has to pick one.


From: Bug-make <bug-make-bounces+martin.dorey=[hidden email]> on behalf of 牛啊 <[hidden email]>
Sent: Sunday, May 24, 2020 07:26
To: bug-make
Subject: Maybe a bug in make manual. https://www.gnu.org/software/make/manual/make.html#Overriding-Makefiles
 
***** EXTERNAL EMAIL *****

The last 2 paragraph of chapter [3.5 How Makefiles are Remade ]

>>>> Original Manul >>>>>>>>>>>>
However, on occasion you might actually wish to prevent updating of even the makefiles. You can do this by specifying the makefiles as goals in the command line as well as specifying them as makefiles. When the makefile name is specified explicitly as a goal, the options -tand so on do apply to them.

Thus, ‘make -f mfile -n mfile foo’ would read the makefile mfile, print the recipe needed to update it without actually running it, and then print the recipe needed to update foo without running that. The recipe for foo will be the one specified by the existing contents of mfile.

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

I think the option you want to explain is '-n', rather than '-t'. So the sentance should be:

 >>>> When the makefile name is specified explicitly as a goal, the options -n’ and so on do apply to them. <<<<<<<


I'm not sure whether I'm right , thank you for your time, that's all.

Best regards!