public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* Usefulness of make -t
@ 2023-04-02 12:20 Alejandro Colomar
  2023-04-02 13:16 ` Alejandro Colomar
  0 siblings, 1 reply; 2+ messages in thread
From: Alejandro Colomar @ 2023-04-02 12:20 UTC (permalink / raw)
  To: bug-make@gnu.org, Paul Smith; +Cc: Sergei Trofimovich, linux-man


[-- Attachment #1.1: Type: text/plain, Size: 975 bytes --]

Hi Paul,

Yesterday I found another use of make's -t flag: It helps make sure
that the logic in the Makefile is correct.  You could run the target
without -t, but then you risk seeing warnings and errors from the
commands run by the target before make's own ones, which would hide
Makefile problems.

If you run `make -kstj [target(s)]` after modifying a Makefile, it
will show only and all^Wmost problems in the Makefile itself.  It
could be especially useful with 4.4's --shuffle, although I don't
have it yet in Debian Sid :(.  I should build from source and try it.

I'll start using that as a rule to check changes to Makefiles, and
hopefully will avoid introducing bugs that I need to fix in the next
commit :)

<https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/commit/?id=5bf82f50cf02ded2403666d6c1ee2878b8bd602e>

Cheers,
Alex


-- 
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Usefulness of make -t
  2023-04-02 12:20 Usefulness of make -t Alejandro Colomar
@ 2023-04-02 13:16 ` Alejandro Colomar
  0 siblings, 0 replies; 2+ messages in thread
From: Alejandro Colomar @ 2023-04-02 13:16 UTC (permalink / raw)
  To: bug-make@gnu.org, Paul Smith; +Cc: Sergei Trofimovich, linux-man


[-- Attachment #1.1: Type: text/plain, Size: 1203 bytes --]

On 4/2/23 14:20, Alejandro Colomar wrote:
> Hi Paul,
> 
> Yesterday I found another use of make's -t flag: It helps make sure
> that the logic in the Makefile is correct.  You could run the target
> without -t, but then you risk seeing warnings and errors from the
> commands run by the target before make's own ones, which would hide
> Makefile problems.
> 
> If you run `make -kstj [target(s)]` after modifying a Makefile, it
> will show only and all^Wmost problems in the Makefile itself.  It
> could be especially useful with 4.4's --shuffle, although I don't
> have it yet in Debian Sid :(.  I should build from source and try it.
> 
> I'll start using that as a rule to check changes to Makefiles, and
> hopefully will avoid introducing bugs that I need to fix in the next
> commit :)
> 
> <https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/commit/?id=5bf82f50cf02ded2403666d6c1ee2878b8bd602e>

Running this a few times works like a charm:

    $ make -kstj --shuffle >/dev/null; make clean >/dev/null

Very recommended :)

> 
> Cheers,
> Alex
> 
> 

-- 
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-04-02 13:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-02 12:20 Usefulness of make -t Alejandro Colomar
2023-04-02 13:16 ` Alejandro Colomar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox