bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Usefulness of make -t


From: Alejandro Colomar
Subject: Usefulness of make -t
Date: Sun, 2 Apr 2023 14:20:11 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0

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: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]