problem with Makefile files
Posted: 26 Jun 2023 19:53
I use a version of the 'make' utility, which requires hard tabs (not spaces) on all indented lines...
I have the editor set to replace hard tabs with spaces, which I *want* in source files, but not in the Makefile ...
How do I set 'Makefile' (with no extension), and nothing else, to use hard tabs ??
//*****************************************************************************************
I tried Tools -> Configure Tools -> Editor -> Fonts and tabs
Selected language: makefiles
cleared "Tab inserts spaces"
set "Preserve tab characters"
Apply, save, reload file...
That did nothing, and I think I see why...
In Environment > Add-ons > Highlighters > %lang% > File extensions
There is no way to specify files without extensions, such as Makefile
Is there some way to apply rules to Makefile??
//*****************************************************************************************
Well, I found a hack that solves the problem; rename Makefile to Makefile.mak, edit the file, then rename back.
That works, but is hardly a generic solution...
I have the editor set to replace hard tabs with spaces, which I *want* in source files, but not in the Makefile ...
How do I set 'Makefile' (with no extension), and nothing else, to use hard tabs ??
//*****************************************************************************************
I tried Tools -> Configure Tools -> Editor -> Fonts and tabs
Selected language: makefiles
cleared "Tab inserts spaces"
set "Preserve tab characters"
Apply, save, reload file...
That did nothing, and I think I see why...
In Environment > Add-ons > Highlighters > %lang% > File extensions
There is no way to specify files without extensions, such as Makefile
Is there some way to apply rules to Makefile??
//*****************************************************************************************
Well, I found a hack that solves the problem; rename Makefile to Makefile.mak, edit the file, then rename back.
That works, but is hardly a generic solution...