Re:Show HN: Minimal build system using just /bin/sh
by Symbiote on Friday August 18, 2017 @03:35AM
(#15044273)
Put this in ~/.editorconfig
[Makefile]
indent_style = tab
And install the plugin, which is available for most editors and IDEs.
Re:Show HN: Minimal build system using just /bin/sh
by falcolas on Friday August 18, 2017 @07:59AM
(#15045363)
It's not a requirement - I give you: .RECIPEPREFIX
> If you prefer to prefix your recipes with a character other than tab, you can set the .RECIPEPREFIX variable to an alternate character
That said, how hard is it really to disable tab expansion in your editor? I have a block of configuration dedicated to the different indentation requirements of different programming and configuration languages. In more modern editors, I don't even have to do anything at all to edit Makefiles with tabs - they come pre-configured to do the right thing.
So yes, eliminating tabs (or rather the execrable requirement of using tabs) was absolutely a prime goal.