Re: [PATCH] Makefile: Use standard features (IMPORTANT: default prefix changed)

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

 



Hi Michael,

On 5/10/21 1:39 AM, Michael Kerrisk (man-pages) wrote:
- Specify shebang

Why? It's not quite obvious to me, and the commit message
should really explain...

Hmmm.  I have some minor reasons to add it, but not a really good one.

* Some editors don't recognize 'Makefile' as a special name, so the shebang helps detecting which language the file is using (e.g., for coloring).

* I tend to subdivide a big Makefile into a small Makefile and many submakefiles stored in <./libexec/>. Those obviously need different names, and given that the makefile extension is not very standard (I use .mk), having a shebang helps knowing what the file is. After that, I also have it on the main Makefile for consistency. But here we only have one Makefile, so it doesn apply very much.

And some similar reasons.


Thanks,

Alex

--
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux